diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-01 11:52:34 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-01 11:52:34 +0000 |
commit | b796c34f3ff3ff161acb7e36665225f6807ad4c1 (patch) | |
tree | 2230e49ef883b46ff50923610c335403b870af4a /cc/test/test_web_graphics_context_3d.h | |
parent | e6791fd4692027e86635adf84b918757eebade45 (diff) | |
download | chromium_src-b796c34f3ff3ff161acb7e36665225f6807ad4c1.zip chromium_src-b796c34f3ff3ff161acb7e36665225f6807ad4c1.tar.gz chromium_src-b796c34f3ff3ff161acb7e36665225f6807ad4c1.tar.bz2 |
cc: Reduce command buffer flushes related to creating texture ids.
This significantly reduces command buffer flushes by allocating
texture ids in chunks of 64.
BUG=309455
TEST=cc_unittests --gtest_filter=ResourceProviderTest.TextureAllocationChunk
Review URL: https://codereview.chromium.org/49163004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232332 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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/test/test_web_graphics_context_3d.h b/cc/test/test_web_graphics_context_3d.h index 796e34d..0d3c122 100644 --- a/cc/test/test_web_graphics_context_3d.h +++ b/cc/test/test_web_graphics_context_3d.h @@ -215,10 +215,13 @@ class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D { static const WebKit::WebGLId kExternalTextureId; virtual WebKit::WebGLId NextTextureId(); + virtual void RetireTextureId(WebKit::WebGLId id); virtual WebKit::WebGLId NextBufferId(); + virtual void RetireBufferId(WebKit::WebGLId id); virtual WebKit::WebGLId NextImageId(); + virtual void RetireImageId(WebKit::WebGLId id); size_t GetTransferBufferMemoryUsedBytes() const; void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes); |