Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Unified Diff: ui/compositor/compositor.cc

Issue 2260943002: Move default begin frame sources out to mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert SingleThreadProxy changes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/public/cpp/output_surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index f36e09d59ce8851e2f2ed873b1dd4fe98bacca6c..7e7b109a09d10ec2ed88bd14313d2cc37cf5c9d4 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -45,11 +45,6 @@ namespace {
const double kDefaultRefreshRate = 60.0;
const double kTestRefreshRate = 200.0;
-bool IsRunningInMojoShell(base::CommandLine* command_line) {
- const char kMojoShellFlag[] = "mojo-platform-channel-handle";
- return command_line->HasSwitch(kMojoShellFlag);
-}
-
} // namespace
namespace ui {
@@ -188,10 +183,7 @@ Compositor::Compositor(ui::ContextFactory* context_factory,
// thread.
settings.image_decode_tasks_enabled = false;
- // TODO(crbug.com/603600): This should always be turned on once mus tells its
- // clients about BeginFrame.
- settings.use_output_surface_begin_frame_source =
- !IsRunningInMojoShell(command_line);
+ settings.use_output_surface_begin_frame_source = true;
#if !defined(OS_ANDROID)
// TODO(sohanjg): Revisit this memory usage in tile manager.
« no previous file with comments | « services/ui/public/cpp/output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698