| 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 8d171172df60bbcb6a278e30b024ec6b3fa7e043..4405aff3319e6bb98765d810bf6dda4377eb0377 100644
|
| --- a/content/common/gpu/gpu_command_buffer_stub.cc
|
| +++ b/content/common/gpu/gpu_command_buffer_stub.cc
|
| @@ -249,6 +249,10 @@ void GpuCommandBufferStub::OnInitialize(
|
| decoder_->set_debug(true);
|
| }
|
|
|
| + decoder_->SetMsgCallback(
|
| + base::Bind(&GpuCommandBufferStub::SendConsoleMessage,
|
| + base::Unretained(this)));
|
| +
|
| SetSwapInterval();
|
|
|
| command_buffer_->SetPutOffsetChangeCallback(
|
| @@ -474,4 +478,16 @@ void GpuCommandBufferStub::OnSetSurfaceVisible(bool visible) {
|
| surface_->SetVisible(visible);
|
| }
|
|
|
| +void GpuCommandBufferStub::SendConsoleMessage(
|
| + int32 id,
|
| + const std::string& message) {
|
| + GPUCommandBufferConsoleMessage console_message;
|
| + console_message.id = id;
|
| + console_message.message = message;
|
| + IPC::Message* msg = new GpuCommandBufferMsg_ConsoleMsg(
|
| + route_id_, console_message);
|
| + msg->set_unblock(true);
|
| + Send(msg);
|
| +}
|
| +
|
| #endif // defined(ENABLE_GPU)
|
|
|