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

Unified Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 10388131: Allow GLES2CmdDecoder to change the GLSurface associated with the default FBO. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/demos/demos.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_manager.cc
===================================================================
--- gpu/command_buffer/tests/gl_manager.cc (revision 137438)
+++ gpu/command_buffer/tests/gl_manager.cc (working copy)
@@ -116,6 +116,8 @@
gpu_preference);
ASSERT_TRUE(context_.get() != NULL) << "could not create GL context";
+ ASSERT_TRUE(context_->MakeCurrent(surface_.get()));
+
ASSERT_TRUE(decoder_->Initialize(
surface_.get(),
context_.get(),
@@ -168,7 +170,8 @@
gles2_helper_.reset();
command_buffer_.reset();
if (decoder_.get()) {
- decoder_->Destroy();
+ decoder_->MakeCurrent();
+ decoder_->Destroy(true);
}
}
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/demos/demos.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698