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

Unified Diff: cc/thread_proxy.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: Rebase 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 | « cc/output_surface.h ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index e3c48c33159dfdd70098bd1a08d172bba1e946bf..41d6d90e8dbc3bbbac7ee03a084431df85d8912e 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -1121,7 +1121,10 @@ void ThreadProxy::InitializeRendererOnImplThread(
scheduler_on_impl_thread_->setSwapBuffersCompleteSupported(
capabilities->using_swap_complete_callback);
- int maxFramesPending = FrameRateController::kDefaultMaxFramesPending;
+ int maxFramesPending = layer_tree_host_impl_->output_surface()->
+ capabilities().max_frames_pending;
+ if (maxFramesPending <= 0)
+ maxFramesPending = FrameRateController::kDefaultMaxFramesPending;
if (layer_tree_host_impl_->output_surface()->capabilities().
has_parent_compositor)
maxFramesPending = 1;
« no previous file with comments | « cc/output_surface.h ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698