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

Unified Diff: gpu/gles2_conform_support/egl/display.cc

Issue 8947016: Fix standalone gl demos and conformance tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/demos/framework/window.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/display.cc
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc
index 928d5fd2245b9c501d4eb626378d9aca0e328af5..82c60135ecb075338e7545935f3e0786f1a1554d 100644
--- a/gpu/gles2_conform_support/egl/display.cc
+++ b/gpu/gles2_conform_support/egl/display.cc
@@ -138,6 +138,9 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config,
command_buffer_->SetPutOffsetChangeCallback(
base::Bind(&gpu::GpuScheduler::PutChanged,
base::Unretained(gpu_scheduler_.get())));
+ command_buffer_->SetGetBufferChangeCallback(
+ base::Bind(&gpu::GpuScheduler::SetGetBuffer,
+ base::Unretained(gpu_scheduler_.get())));
surface_.reset(new Surface(win));
@@ -147,6 +150,9 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config,
void Display::DestroySurface(EGLSurface surface) {
DCHECK(IsValidSurface(surface));
gpu_scheduler_.reset();
+ if (decoder_.get()) {
+ decoder_->Destroy();
+ }
decoder_.reset();
gl_surface_ = NULL;
gl_context_ = NULL;
« no previous file with comments | « gpu/demos/framework/window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698