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

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

Issue 9192014: Replace WGC3D visibility extension with resource_usage extension. [Part 2 of 3] (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Clarifying a comment Created 8 years, 11 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 7df674c7580482f16c71aef037bf961e8319ab87..c888f75d6547c3ecffb532388cb9d42a2cd84169 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -108,8 +108,8 @@ bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) {
OnCreateVideoDecoder)
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_DestroyVideoDecoder,
OnDestroyVideoDecoder)
- IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SetSurfaceVisible,
- OnSetSurfaceVisible)
+ IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SetResourceUsage,
+ OnSetResourceUsage)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -499,8 +499,9 @@ void GpuCommandBufferStub::OnDestroyVideoDecoder(int decoder_route_id) {
video_decoders_.Remove(decoder_route_id);
}
-void GpuCommandBufferStub::OnSetSurfaceVisible(bool visible) {
- surface_->SetVisible(visible);
+void GpuCommandBufferStub::OnSetResourceUsage(
+ gfx::GLSurface::ResourceUsage resourceUsage) {
+ surface_->SetResourceUsage(resourceUsage);
}
void GpuCommandBufferStub::SendConsoleMessage(

Powered by Google App Engine
This is Rietveld 408576698