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

Unified Diff: services/gles2/command_buffer_impl.cc

Issue 1123623003: Automatically redraw the display on resume. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Response to review Created 5 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 | « services/gles2/command_buffer_impl.h ('k') | services/native_viewport/onscreen_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gles2/command_buffer_impl.cc
diff --git a/services/gles2/command_buffer_impl.cc b/services/gles2/command_buffer_impl.cc
index c370068924bee2e900bfcc102247688d758955d0..29a772c010d3f327ebedc2b20e5d6e69bf660acf 100644
--- a/services/gles2/command_buffer_impl.cc
+++ b/services/gles2/command_buffer_impl.cc
@@ -57,6 +57,7 @@ CommandBufferImpl::CommandBufferImpl(
driver_(driver.Pass()),
viewport_parameter_listener_(listener.Pass()),
binding_(this),
+ observer_(nullptr),
weak_factory_(this) {
driver_->set_client(make_scoped_ptr(new CommandBufferDriverClientImpl(
weak_factory_.GetWeakPtr(), control_task_runner)));
@@ -67,6 +68,9 @@ CommandBufferImpl::CommandBufferImpl(
}
CommandBufferImpl::~CommandBufferImpl() {
+ if (observer_) {
+ observer_->OnCommandBufferImplDestroyed();
+ }
driver_task_runner_->PostTask(
FROM_HERE, base::Bind(&DestroyDriver, base::Passed(&driver_)));
}
« no previous file with comments | « services/gles2/command_buffer_impl.h ('k') | services/native_viewport/onscreen_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698