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

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

Issue 643993005: Remove limit on number of resources in cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using MemoryUsage = int64_t; Created 6 years, 2 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 4db367fa13d420c9009a304caaf1dc052179a4da..69000e56639f3c67ce1c5541c40dba84b4c2d5af 100644
--- a/content/public/browser/android/synchronous_compositor.h
+++ b/content/public/browser/android/synchronous_compositor.h
@@ -31,19 +31,6 @@ namespace content {
class SynchronousCompositorClient;
class WebContents;
-struct CONTENT_EXPORT SynchronousCompositorMemoryPolicy {
- // Memory limit for rendering and pre-rendering.
- size_t bytes_limit;
-
- // Limit of number of GL resources used for rendering and pre-rendering.
- size_t num_resources_limit;
-
- SynchronousCompositorMemoryPolicy();
-
- bool operator==(const SynchronousCompositorMemoryPolicy& other) const;
- bool operator!=(const SynchronousCompositorMemoryPolicy& other) const;
-};
-
// Interface for embedders that wish to direct compositing operations
// synchronously under their own control. Only meaningful when the
// kEnableSyncrhonousRendererCompositor flag is specified.
@@ -99,8 +86,7 @@ class CONTENT_EXPORT SynchronousCompositor {
virtual bool DemandDrawSw(SkCanvas* canvas) = 0;
// Set the memory limit policy of this compositor.
- virtual void SetMemoryPolicy(
- const SynchronousCompositorMemoryPolicy& policy) = 0;
+ virtual void SetMemoryPolicy(size_t bytes_limit) = 0;
// Should be called by the embedder after the embedder had modified the
// scroll offset of the root layer (as returned by

Powered by Google App Engine
This is Rietveld 408576698