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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 1262163004: android: Change OutputSurfaceWithoutParent max swaps to 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also change ui max pending swaps Created 5 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index a75b5ccacdab4d94023b84af9c43a95457f3cd1f..05e121390193db3bb72a2257fc542bc1f16fc41a 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -67,7 +67,7 @@ namespace content {
namespace {
-const unsigned int kMaxSwapBuffers = 2U;
+const unsigned int kMaxSwapBuffers = 1U;
// Used to override capabilities_.adjust_deadline_for_parent to false
class OutputSurfaceWithoutParent : public cc::OutputSurface,
@@ -85,7 +85,7 @@ class OutputSurfaceWithoutParent : public cc::OutputSurface,
base::Bind(&OutputSurfaceWithoutParent::OnSwapBuffersCompleted,
base::Unretained(this))) {
capabilities_.adjust_deadline_for_parent = false;
- capabilities_.max_frames_pending = 2;
+ capabilities_.max_frames_pending = 1;
no sievers 2015/09/30 22:20:25 nit: kMaxSwapBuffers?
brianderson 2015/10/01 00:20:12 This refers to a different setting that will be us
}
~OutputSurfaceWithoutParent() override { compositor_->RemoveObserver(this); }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698