Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 7021014: GLContext no longer holds a pointer to a GLSurface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/gpu/gpu_info_collector.cc » ('j') | ui/gfx/gl/gl_context.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.cc
===================================================================
--- content/common/gpu/gpu_command_buffer_stub.cc (revision 86168)
+++ content/common/gpu/gpu_command_buffer_stub.cc (working copy)
@@ -414,8 +414,8 @@
// Recreate the view surface to match the window size. TODO(apatrick): this is
// likely not necessary on all platforms.
gfx::GLContext* context = scheduler_->decoder()->GetGLContext();
- context->ReleaseCurrent();
- gfx::GLSurface* surface = context->GetSurface();
+ gfx::GLSurface* surface = scheduler_->decoder()->GetGLSurface();
+ context->ReleaseCurrent(surface);
if (surface) {
surface->Destroy();
surface->Initialize();
« no previous file with comments | « no previous file | content/gpu/gpu_info_collector.cc » ('j') | ui/gfx/gl/gl_context.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698