Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back necessary c25 base changes #4752

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

andrewsavage1
Copy link
Contributor

No description provided.

@@ -6,15 +6,50 @@
#include "base/compiler_specific.h"
#include "third_party/abseil-cpp/absl/base/attributes.h"

#if defined(STARBOARD)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would have to change this to BUILDFLAG(IS_STARBOARD)

@@ -502,9 +585,17 @@ class TraceLog::ThreadLocalEventBuffer
int generation_;
};

void ThreadLocalEventBufferDestructor(void* buffer) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing a guard?

@@ -458,6 +534,14 @@ inline FuchsiaLogSeverity LogSeverityToFuchsiaLogSeverity(
#endif // BUILDFLAG(IS_FUCHSIA)

void WriteToFd(int fd, const char* data, size_t length) {
#if defined(STARBOARD)
if (length > 0) {
SbLogRaw(data);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to keep SbLog APIs and keep a custom base/logging.cc.

return base::TestSuite(argc, argv).Run();
}

STARBOARD_WRAP_SIMPLE_MAIN(TestSuiteRun);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would need the wrapper for 3P.

@@ -288,7 +288,38 @@
X(TRACE_DISABLED_BY_DEFAULT("webgpu")) \
X(TRACE_DISABLED_BY_DEFAULT("webrtc")) \
X(TRACE_DISABLED_BY_DEFAULT("worker.scheduler")) \
X(TRACE_DISABLED_BY_DEFAULT("xr.debug"))
X(TRACE_DISABLED_BY_DEFAULT("xr.debug")) \
X("cobalt::cssom") \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those seem custom events from Cobalt. Probably most would not be needed. There could be something about media to keep around.

@@ -14,6 +14,7 @@
#include <type_traits>
#include <unordered_map>
#include <utility>
#include <limits>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe not needed
Also there is not #ifdef guard.

@@ -6,6 +6,7 @@

#if defined(ADDRESS_SANITIZER)
#include <sanitizer/asan_interface.h>
#include <string.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@@ -38,6 +38,7 @@
#include "base/time/time_override.h"
#include "build/build_config.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "starboard/configuration_constants.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs #ifdef check

@@ -687,6 +687,11 @@ TEST(JSONReaderTest, LiteralRoots) {
TEST(JSONReaderTest, ReadFromFile) {
FilePath path;
ASSERT_TRUE(PathService::Get(base::DIR_TEST_DATA, &path));
#if defined(STARBOARD)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave out for now

@andrewsavage1
Copy link
Contributor Author

I need to bring in base/message_loop/message_pump_io_starboard.cc and base/message_loop/message_pump_ui_starboard.cc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants