| 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).
|
|
|