summaryrefslogtreecommitdiffstats
path: root/cc/test/test_web_graphics_context_3d.h
diff options
context:
space:
mode:
authorepenner@chromium.org <epenner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-08 00:50:31 +0000
committerepenner@chromium.org <epenner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-08 00:50:31 +0000
commitb466414072b1bf7d4775ae7bcd9d66b090d91cf9 (patch)
treec686a617c3a55ebe4207963e32ca35b81a183b50 /cc/test/test_web_graphics_context_3d.h
parent4cd6b84559e7e03224d7bb1be6aa161e0b7d185c (diff)
downloadchromium_src-b466414072b1bf7d4775ae7bcd9d66b090d91cf9.zip
chromium_src-b466414072b1bf7d4775ae7bcd9d66b090d91cf9.tar.gz
chromium_src-b466414072b1bf7d4775ae7bcd9d66b090d91cf9.tar.bz2
CC: Account for memory assigned to raster tasks.
Rasters are already throttled by a transfer buffer limit. This applies the same limit in TileManager which should have several advantages: - We keep more content cached (raster tasks take from cache) - The memory spike due to priority changes is minimized. - Time spent in ScheduleTasks is much reduced. BUG=303397 Review URL: https://codereview.chromium.org/26654008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233731 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_web_graphics_context_3d.h')
-rw-r--r--cc/test/test_web_graphics_context_3d.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/test/test_web_graphics_context_3d.h b/cc/test/test_web_graphics_context_3d.h
index a559f06..5e876ef 100644
--- a/cc/test/test_web_graphics_context_3d.h
+++ b/cc/test/test_web_graphics_context_3d.h
@@ -226,6 +226,9 @@ class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
size_t GetTransferBufferMemoryUsedBytes() const;
void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes);
+ size_t GetPeakTransferBufferMemoryUsedBytes() const {
+ return peak_transfer_buffer_memory_used_bytes_;
+ }
void set_test_support(TestContextSupport* test_support) {
test_support_ = test_support;
@@ -341,6 +344,8 @@ class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
unsigned bound_buffer_;
TextureTargets texture_targets_;
+ size_t peak_transfer_buffer_memory_used_bytes_;
+
scoped_refptr<Namespace> namespace_;
static Namespace* shared_namespace_;