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

Unified Diff: content/renderer/gpu/compositor_output_surface.cc

Issue 12540003: CrOS: Set max frames pending for UI from command line. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « content/browser/renderer_host/image_transport_factory.cc ('k') | ui/compositor/compositor_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_output_surface.cc
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
index da0bd2a87607a19343181c0a9ad2ef1c38a8dcc9..942b3a182ab113a8fbbc80d11f74b96269c9e357 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -65,6 +65,8 @@ CompositorOutputSurface::CompositorOutputSurface(
CommandLine* command_line = CommandLine::ForCurrentProcess();
capabilities_.has_parent_compositor = command_line->HasSwitch(
switches::kEnableDelegatedRenderer);
+ if (capabilities_.has_parent_compositor)
+ capabilities_.max_frames_pending = 1;
piman 2013/03/13 15:55:22 This logic should stay inside the compositor. It's
jonathan.backer 2013/03/13 16:55:29 Done.
DetachFromThread();
}
« no previous file with comments | « content/browser/renderer_host/image_transport_factory.cc ('k') | ui/compositor/compositor_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698