summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gl/gl.gyp
diff options
context:
space:
mode:
authorkbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-09 23:08:56 +0000
committerkbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-09 23:08:56 +0000
commitc777de5b0773fad970c88b748c237120e5d6d563 (patch)
tree9eac25d954ce3d7b8ac39b2de428546d3350da94 /ui/gfx/gl/gl.gyp
parentc257d0561bfaf52c37fcbc3cc2f9b457836b8db5 (diff)
downloadchromium_src-c777de5b0773fad970c88b748c237120e5d6d563.zip
chromium_src-c777de5b0773fad970c88b748c237120e5d6d563.tar.gz
chromium_src-c777de5b0773fad970c88b748c237120e5d6d563.tar.bz2
Keep track of the current per-thread context and surface. Add
ScopedMakeCurrent to make it easier to briefly make another context current. Use it in AcceleratedSurface implementation and verify in the caller that it is working. This infrastructure would have made it possible to catch http://crbug.com/95492 and similar bugs where the wrong context was current. BUG=95962 TEST=ran CSS 3D example poster-circle; no assertion failures Review URL: http://codereview.chromium.org/7787022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/gl/gl.gyp')
-rw-r--r--ui/gfx/gl/gl.gyp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gfx/gl/gl.gyp b/ui/gfx/gl/gl.gyp
index 65b949e..3a9ad6d 100644
--- a/ui/gfx/gl/gl.gyp
+++ b/ui/gfx/gl/gl.gyp
@@ -69,6 +69,8 @@
'gl_surface_osmesa.h',
'gl_switches.cc',
'gl_switches.h',
+ 'scoped_make_current.cc',
+ 'scoped_make_current.h',
'<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc',
'<(gl_binding_output_dir)/gl_bindings_autogen_gl.h',
'<(gl_binding_output_dir)/gl_bindings_autogen_mock.cc',