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/pixel_test.cc | |
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/pixel_test.cc')
-rw-r--r-- | cc/test/pixel_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/test/pixel_test.cc b/cc/test/pixel_test.cc index 17c3aeb..0e09d8a 100644 --- a/cc/test/pixel_test.cc +++ b/cc/test/pixel_test.cc @@ -167,7 +167,7 @@ void PixelTest::SetUpGLRenderer(bool use_skia_gpu_backend) { output_surface_->BindToClient(fake_client_.get()); resource_provider_ = - ResourceProvider::Create(output_surface_.get(), NULL, 0, false); + ResourceProvider::Create(output_surface_.get(), NULL, 0, false, 1); texture_mailbox_deleter_ = make_scoped_ptr(new TextureMailboxDeleter); @@ -210,7 +210,7 @@ void PixelTest::SetUpSoftwareRenderer() { output_surface_.reset(new PixelTestOutputSurface(device.Pass())); output_surface_->BindToClient(fake_client_.get()); resource_provider_ = - ResourceProvider::Create(output_surface_.get(), NULL, 0, false); + ResourceProvider::Create(output_surface_.get(), NULL, 0, false, 1); renderer_ = SoftwareRenderer::Create(fake_client_.get(), &settings_, output_surface_.get(), |