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

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

Issue 1366473002: Move WakeUpGpu logic to GpuChannelManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index 5a71d11120bb32791f8da028f470ef226f056c56..731c5fd2b9923c29352ce4bcb227a52700f31a37 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -861,6 +861,11 @@ void GpuCommandBufferStub::OnAsyncFlush(
if (pre_state.get_offset != post_state.get_offset)
ReportState();
+
+#if defined(OS_ANDROID)
+ GpuChannelManager* manager = channel_->gpu_channel_manager();
+ manager->DidAccessGpu();
+#endif
}
void GpuCommandBufferStub::OnRegisterTransferBuffer(

Powered by Google App Engine
This is Rietveld 408576698