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

Unified Diff: content/public/browser/android/synchronous_compositor.h

Issue 361073002: Add switch to disable recording whole document (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 6 years, 6 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
Index: content/public/browser/android/synchronous_compositor.h
diff --git a/content/public/browser/android/synchronous_compositor.h b/content/public/browser/android/synchronous_compositor.h
index 6aaa2130c6691f814bb264c38642fef9f8b9f0ce..2bec50fa949874465c82d01315904d50ceacc33e 100644
--- a/content/public/browser/android/synchronous_compositor.h
+++ b/content/public/browser/android/synchronous_compositor.h
@@ -63,6 +63,11 @@ class CONTENT_EXPORT SynchronousCompositor {
static void SetGpuService(
scoped_refptr<gpu::InProcessCommandBuffer::Service> service);
+ // By default, synchronous compopsitor records the full layer, not only
+ // what is inside and around the view port. Call this on start up to revert
+ // to default behavior when synchronous compositor is not used.
+ static void DisableRecordFullLayer();
+
// Synchronously initialize compositor for hardware draw. Can only be called
// while compositor is in software only mode, either after compositor is
// first created or after ReleaseHwDraw is called. It is invalid to

Powered by Google App Engine
This is Rietveld 408576698