diff options
author | sievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-29 09:24:10 +0000 |
---|---|---|
committer | sievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-29 09:24:10 +0000 |
commit | ee1e6aac01990666814653f6d14be4c048e792aa (patch) | |
tree | cc9aba9f3c237ae821a029c6d4c55946b06fd9ca /gpu/command_buffer/service/gl_state_restorer_impl.cc | |
parent | 3b93eb0024027bf9cfb862a7ecdb84c9fecceac2 (diff) | |
download | chromium_src-ee1e6aac01990666814653f6d14be4c048e792aa.zip chromium_src-ee1e6aac01990666814653f6d14be4c048e792aa.tar.gz chromium_src-ee1e6aac01990666814653f6d14be4c048e792aa.tar.bz2 |
Support creating virtual contexts.
This creates virtual contexts within a GLShareGroup, when
'--enable-virtual-gl-contexts' is given on the command line.
It requires the shared real GL context, which is created
from the default offscreen surface configuration, to be compatible
with any surface that is made current with a virtual context.
BUG=160710
Review URL: https://chromiumcodereview.appspot.com/11308151
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/gl_state_restorer_impl.cc')
-rw-r--r-- | gpu/command_buffer/service/gl_state_restorer_impl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/command_buffer/service/gl_state_restorer_impl.cc b/gpu/command_buffer/service/gl_state_restorer_impl.cc index 486d95b..0290c9a 100644 --- a/gpu/command_buffer/service/gl_state_restorer_impl.cc +++ b/gpu/command_buffer/service/gl_state_restorer_impl.cc @@ -8,7 +8,8 @@ namespace gpu { -GLStateRestorerImpl::GLStateRestorerImpl(gles2::GLES2Decoder* decoder) +GLStateRestorerImpl::GLStateRestorerImpl( + base::WeakPtr<gles2::GLES2Decoder> decoder) : decoder_(decoder) { } @@ -16,9 +17,8 @@ GLStateRestorerImpl::~GLStateRestorerImpl() { } void GLStateRestorerImpl::RestoreState() { + DCHECK(decoder_.get()); decoder_->RestoreState(); } } // namespace gpu - - |