summaryrefslogtreecommitdiffstats
path: root/cc/test/pixel_test.cc
diff options
context:
space:
mode:
authoraelias@chromium.org <aelias@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-03 02:41:07 +0000
committeraelias@chromium.org <aelias@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-03 02:41:07 +0000
commit3f2ff115793c21854acf80b50532a6b03dd172a0 (patch)
tree90b8fb95da57adfe7e8d1855af231a0074118206 /cc/test/pixel_test.cc
parentd600df7d219890dd9a101922b25d3bff9f4195c3 (diff)
downloadchromium_src-3f2ff115793c21854acf80b50532a6b03dd172a0.zip
chromium_src-3f2ff115793c21854acf80b50532a6b03dd172a0.tar.gz
chromium_src-3f2ff115793c21854acf80b50532a6b03dd172a0.tar.bz2
Add memory policy limit by number of resources.
Currently, MemoryPolicy only limits by number of bytes allocated. For resources like Android gralloc buffers which also have a process or system-wide limit, we also need to limit by count of the resource. This patch implements this and sets a limit of 100 from the AndroidWebView OutputSurface. As additional cleanup, I also moved the ignore-0-memory-policy logic to OutputSurface as it doesn't seem appropriate in CC. New test parametrization for TileManagerTests. NOTRY=true BUG=266619 Review URL: https://chromiumcodereview.appspot.com/20843007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/pixel_test.cc')
-rw-r--r--cc/test/pixel_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/test/pixel_test.cc b/cc/test/pixel_test.cc
index 5ec7a5c..266af36 100644
--- a/cc/test/pixel_test.cc
+++ b/cc/test/pixel_test.cc
@@ -71,8 +71,8 @@ class PixelTest::PixelTestRendererClient
virtual void SetExternalStencilTest(bool enable) OVERRIDE {
stencil_enabled_ = enable;
}
- virtual void SetMemoryPolicy(
- const ManagedMemoryPolicy& policy, bool discard) OVERRIDE {}
+ virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE {}
+ virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE {}
virtual void SetTreeActivationCallback(const base::Closure&) OVERRIDE {}
private: