-
Notifications
You must be signed in to change notification settings - Fork 130
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
base: main
Are you sure you want to change the base?
Conversation
@@ -6,15 +6,50 @@ | |||
#include "base/compiler_specific.h" | |||
#include "third_party/abseil-cpp/absl/base/attributes.h" | |||
|
|||
#if defined(STARBOARD) |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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") \ |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave out for now
I need to bring in base/message_loop/message_pump_io_starboard.cc and base/message_loop/message_pump_ui_starboard.cc |
No description provided.