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

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

Issue 9910004: Implement Discard and EnsureBackbufferCHROMIUM using command buffer instead of IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 6d92774ef954b76d22ce95dd44f8cce85fc5f59f..0a01a3b5a9830bb70adef3a72b0af9b3484c49b2 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -123,10 +123,6 @@ bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) {
OnDestroyVideoDecoder)
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SetSurfaceVisible,
OnSetSurfaceVisible)
- IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_DiscardBackbuffer,
- OnDiscardBackbuffer)
- IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_EnsureBackbuffer,
- OnEnsureBackbuffer)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -309,6 +305,12 @@ void GpuCommandBufferStub::OnInitialize(
decoder_->SetMsgCallback(
base::Bind(&GpuCommandBufferStub::SendConsoleMessage,
base::Unretained(this)));
+ decoder_->SetDiscardBackbufferCallback(
+ base::Bind(&GpuCommandBufferStub::OnDiscardBackbuffer,
+ base::Unretained(this)));
+ decoder_->SetEnsureBackbufferCallback(
+ base::Bind(&GpuCommandBufferStub::OnEnsureBackbuffer,
+ base::Unretained(this)));
command_buffer_->SetPutOffsetChangeCallback(
base::Bind(&gpu::GpuScheduler::PutChanged,
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698