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

Unified Diff: gpu/ipc/service/gpu_command_buffer_stub.cc

Issue 2378583003: Ping watchdog thread during GpuChannel destruction (Closed)
Patch Set: revert to passing via destructor Created 4 years, 2 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
Index: gpu/ipc/service/gpu_command_buffer_stub.cc
diff --git a/gpu/ipc/service/gpu_command_buffer_stub.cc b/gpu/ipc/service/gpu_command_buffer_stub.cc
index 412d9a97182600dd249a90304302123b615ba887..5f9390b21c649f39b53548c37019edbdd9049d57 100644
--- a/gpu/ipc/service/gpu_command_buffer_stub.cc
+++ b/gpu/ipc/service/gpu_command_buffer_stub.cc
@@ -275,6 +275,12 @@ bool GpuCommandBufferStub::Send(IPC::Message* message) {
return channel_->Send(message);
}
+void GpuCommandBufferStub::ReportProgress() {
+ if (auto* watchdog = channel_->watchdog()) {
+ watchdog->CheckArmed();
+ }
+}
+
bool GpuCommandBufferStub::IsScheduled() {
return (!executor_.get() || executor_->scheduled());
}
@@ -469,7 +475,7 @@ bool GpuCommandBufferStub::Initialize(
manager->shader_translator_cache(),
manager->framebuffer_completeness_cache(), feature_info,
init_params.attribs.bind_generates_resource,
- gmb_factory ? gmb_factory->AsImageFactory() : nullptr);
+ gmb_factory ? gmb_factory->AsImageFactory() : nullptr, this);
danakj 2016/10/05 21:36:15 Can you /* progress_reporter */ on the |this|
ericrk 2016/10/05 22:36:17 Done.
}
#if defined(OS_MACOSX)
« gpu/ipc/service/gpu_command_buffer_stub.h ('K') | « gpu/ipc/service/gpu_command_buffer_stub.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698