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

Unified Diff: content/browser/android/in_process/synchronous_compositor_impl.h

Issue 226363004: Global GPU memory manager for android webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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/browser/android/in_process/synchronous_compositor_impl.h
diff --git a/content/browser/android/in_process/synchronous_compositor_impl.h b/content/browser/android/in_process/synchronous_compositor_impl.h
index 861afc14b9da23992d3313e830920ef895a00088..3b8ed42fa41fb335c6b48143629431d0745db71d 100644
--- a/content/browser/android/in_process/synchronous_compositor_impl.h
+++ b/content/browser/android/in_process/synchronous_compositor_impl.h
@@ -60,6 +60,8 @@ class SynchronousCompositorImpl
virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE;
virtual void SetMemoryPolicy(
const SynchronousCompositorMemoryPolicy& policy) OVERRIDE;
+ virtual const SynchronousCompositorMemoryPolicy&
+ GetMemoryPolicy() const OVERRIDE;
virtual void DidChangeRootLayerScrollOffset() OVERRIDE;
// SynchronousCompositorOutputSurfaceDelegate
@@ -101,6 +103,7 @@ class SynchronousCompositorImpl
SynchronousCompositorOutputSurface* output_surface_;
WebContents* contents_;
cc::InputHandler* input_handler_;
+ SynchronousCompositorMemoryPolicy memory_policy_;
boliu 2014/04/08 03:06:45 Why not keep this in HardwareRenderer? You shouldn
DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl);
};

Powered by Google App Engine
This is Rietveld 408576698