summaryrefslogtreecommitdiffstats
path: root/gpu/gles2_conform_support
diff options
context:
space:
mode:
authorsievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-29 22:14:12 +0000
committersievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-29 22:14:12 +0000
commit9d0c7166ac20ae639b25eee7a9ffc0e96308c25c (patch)
treee897ede4e52d3358cf1db2a43a64f41e12e722ac /gpu/gles2_conform_support
parent71ac98bb2e70213e4ee3a9b24b7dbc315d652949 (diff)
downloadchromium_src-9d0c7166ac20ae639b25eee7a9ffc0e96308c25c.zip
chromium_src-9d0c7166ac20ae639b25eee7a9ffc0e96308c25c.tar.gz
chromium_src-9d0c7166ac20ae639b25eee7a9ffc0e96308c25c.tar.bz2
WGC3DCommandBufferImpl: Acquire lock when accessing share group.
Grab the share group lock when accessing the list and also to assure that ShareGroup creation is not racy. Also do not use an existing ShareGroup is we are not sharing resources. Remove the nowadays unused share_resources flag that was still being passed around. On a related note, remove the non-threadsafe SetGLES2ImplementationForDestruction() which is fortunately unused. (It was used by StrictSharedIdHandler once, but the current handlers don't need to talk to the commandbuffer during destruction.) TBR=brettw@chromium.org NOTRY=True Review URL: https://chromiumcodereview.appspot.com/20826002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214242 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/gles2_conform_support')
-rw-r--r--gpu/gles2_conform_support/egl/display.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc
index 3c06259..66934bb 100644
--- a/gpu/gles2_conform_support/egl/display.cc
+++ b/gpu/gles2_conform_support/egl/display.cc
@@ -224,12 +224,10 @@ EGLContext Display::CreateContext(EGLConfig config,
DCHECK(command_buffer_ != NULL);
DCHECK(transfer_buffer_.get());
- bool share_resources = share_ctx != NULL;
context_.reset(new gpu::gles2::GLES2Implementation(
gles2_cmd_helper_.get(),
NULL,
transfer_buffer_.get(),
- share_resources,
true,
NULL));