| 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 6f72157e4369183898cc185b6f169118f9ff6ce7..ea9428d9db13605de1e14fde886e6c5bff516e44 100644
|
| --- a/content/common/gpu/gpu_command_buffer_stub.cc
|
| +++ b/content/common/gpu/gpu_command_buffer_stub.cc
|
| @@ -538,12 +538,8 @@ void GpuCommandBufferStub::OnInitialize(
|
| return;
|
| }
|
|
|
| - gpu_control_.reset(
|
| - new gpu::GpuControlService(context_group_->image_manager(),
|
| - NULL,
|
| - context_group_->mailbox_manager(),
|
| - NULL,
|
| - decoder_->GetCapabilities()));
|
| + gpu_control_service_.reset(
|
| + new gpu::GpuControlService(context_group_->image_manager(), NULL));
|
|
|
| if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kEnableGPUServiceLogging)) {
|
| @@ -587,7 +583,7 @@ void GpuCommandBufferStub::OnInitialize(
|
| shared_state_shm.Pass(), kSharedStateSize));
|
|
|
| GpuCommandBufferMsg_Initialize::WriteReplyParams(
|
| - reply_message, true, gpu_control_->GetCapabilities());
|
| + reply_message, true, decoder_->GetCapabilities());
|
| Send(reply_message);
|
|
|
| if (handle_.is_null() && !active_url_.is_empty()) {
|
| @@ -942,19 +938,16 @@ void GpuCommandBufferStub::OnRegisterGpuMemoryBuffer(
|
| return;
|
| }
|
| #endif
|
| - if (gpu_control_) {
|
| - gpu_control_->RegisterGpuMemoryBuffer(id,
|
| - gpu_memory_buffer,
|
| - width,
|
| - height,
|
| - internalformat);
|
| + if (gpu_control_service_) {
|
| + gpu_control_service_->RegisterGpuMemoryBuffer(
|
| + id, gpu_memory_buffer, width, height, internalformat);
|
| }
|
| }
|
|
|
| void GpuCommandBufferStub::OnDestroyGpuMemoryBuffer(int32 id) {
|
| TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnDestroyGpuMemoryBuffer");
|
| - if (gpu_control_)
|
| - gpu_control_->DestroyGpuMemoryBuffer(id);
|
| + if (gpu_control_service_)
|
| + gpu_control_service_->UnregisterGpuMemoryBuffer(id);
|
| }
|
|
|
| void GpuCommandBufferStub::SendConsoleMessage(
|
|
|