| Index: content/common/gpu/gpu_channel.cc
|
| diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
|
| index fe5a7756d58a4c8fb420c00a58a81265e0d3e85f..bdf53c2f60d69d599d8b95bdb69d07eef4229cd2 100644
|
| --- a/content/common/gpu/gpu_channel.cc
|
| +++ b/content/common/gpu/gpu_channel.cc
|
| @@ -30,7 +30,9 @@
|
| #include "base/trace_event/process_memory_dump.h"
|
| #include "base/trace_event/trace_event.h"
|
| #include "build/build_config.h"
|
| +#include "content/common/gpu/gpu_browser_messages.h"
|
| #include "content/common/gpu/gpu_channel_manager.h"
|
| +#include "content/common/gpu/gpu_channel_manager_delegate.h"
|
| #include "content/common/gpu/gpu_memory_buffer_factory.h"
|
| #include "content/common/gpu/gpu_messages.h"
|
| #include "content/common/gpu/media/gpu_jpeg_decode_accelerator.h"
|
| @@ -596,13 +598,11 @@ bool GpuChannel::Send(IPC::Message* message) {
|
| }
|
|
|
| void GpuChannel::OnAddSubscription(unsigned int target) {
|
| - gpu_channel_manager()->Send(
|
| - new GpuHostMsg_AddSubscription(client_id_, target));
|
| + gpu_channel_manager()->delegate()->AddSubscription(client_id_, target);
|
| }
|
|
|
| void GpuChannel::OnRemoveSubscription(unsigned int target) {
|
| - gpu_channel_manager()->Send(
|
| - new GpuHostMsg_RemoveSubscription(client_id_, target));
|
| + gpu_channel_manager()->delegate()->RemoveSubscription(client_id_, target);
|
| }
|
|
|
| void GpuChannel::OnStubSchedulingChanged(GpuCommandBufferStub* stub,
|
| @@ -894,8 +894,7 @@ void GpuChannel::OnCreateJpegDecoder(int32_t route_id,
|
|
|
| void GpuChannel::CacheShader(const std::string& key,
|
| const std::string& shader) {
|
| - gpu_channel_manager_->Send(
|
| - new GpuHostMsg_CacheShader(client_id_, key, shader));
|
| + gpu_channel_manager_->delegate()->CacheShader(client_id_, key, shader);
|
| }
|
|
|
| void GpuChannel::AddFilter(IPC::MessageFilter* filter) {
|
|
|