-
Notifications
You must be signed in to change notification settings - Fork 131
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?
Changes from 1 commit
63f347f
ad6ac36
b809c8d
1c222d5
7512e26
1052f01
f4e8819
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
|
||
#include "base/debug/task_trace.h" | ||
#include "base/no_destructor.h" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. needs #ifdef check |
||
|
||
#if BUILDFLAG(IS_WIN) | ||
#include "base/win/scoped_com_initializer.h" | ||
|
@@ -51,7 +52,11 @@ namespace internal { | |
|
||
namespace { | ||
|
||
#ifdef STARBOARD | ||
const size_t kMaxNumberOfWorkers = kSbMaxThreads; | ||
#else | ||
constexpr size_t kMaxNumberOfWorkers = 256; | ||
#endif | ||
|
||
// In a background thread group: | ||
// - Blocking calls take more time than in a foreground thread group. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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. |
||
X("cobalt::storage") \ | ||
X("cobalt::script") \ | ||
X("cobalt::renderer") \ | ||
X("cobalt::renderer_sandbox") \ | ||
X("cobalt::network") \ | ||
X("cobalt::overlay_info") \ | ||
X("cobalt::css_parser") \ | ||
X("renderer::test::png_utils") \ | ||
X("base::task_runner_util") \ | ||
X("cobalt::audio") \ | ||
X("cobalt::browser") \ | ||
X("cobalt::dom::eme") \ | ||
X("cobalt::base") \ | ||
X("cobalt::dom") \ | ||
X("cobalt::worker") \ | ||
X("cobalt::loader") \ | ||
X("cobalt::layout") \ | ||
X("cobalt::Screencast") \ | ||
X("cobalt::web") \ | ||
X("cobalt::media") \ | ||
X("cobalt::loader::image") \ | ||
X("media") \ | ||
X("media_stream") \ | ||
X("cobalt::webdriver") \ | ||
X("cobalt::Webdriver") \ | ||
X("cobalt::WebDriver") \ | ||
X("media_stack") \ | ||
X("cobalt::loader::image_decoder") \ | ||
X("cobalt::h5vcc::trace_event") \ | ||
X("net::dial") | ||
|
||
#define INTERNAL_TRACE_LIST_BUILTIN_CATEGORY_GROUPS(X) \ | ||
X("android_webview,toplevel") \ | ||
|
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.