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

Unified Diff: content/public/browser/android/synchronous_compositor.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/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 1d03278d79b5d8b6a2e9454a7002a53f15afe0e7..f35e2729bd3dbd34ad9f043e961285da5fd18b43 100644
--- a/content/public/browser/android/synchronous_compositor.h
+++ b/content/public/browser/android/synchronous_compositor.h
@@ -33,6 +33,8 @@ struct CONTENT_EXPORT SynchronousCompositorMemoryPolicy {
SynchronousCompositorMemoryPolicy();
+ SynchronousCompositorMemoryPolicy(size_t bytes, size_t num_resources);
+
bool operator==(const SynchronousCompositorMemoryPolicy& other) const;
bool operator!=(const SynchronousCompositorMemoryPolicy& other) const;
};
@@ -86,6 +88,9 @@ class CONTENT_EXPORT SynchronousCompositor {
virtual void SetMemoryPolicy(
const SynchronousCompositorMemoryPolicy& policy) = 0;
+ // Get the memory limit policy of this compositor.
+ virtual const SynchronousCompositorMemoryPolicy& GetMemoryPolicy() const = 0;
+
// Should be called by the embedder after the embedder had modified the
// scroll offset of the root layer (as returned by
// SynchronousCompositorClient::GetTotalRootLayerScrollOffset).

Powered by Google App Engine
This is Rietveld 408576698