| Index: content/common/gpu/gpu_channel.cc
|
| diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
|
| index 2768eea2f41d3968ab8aec97ce446c4204ddcfca..7820f8c1d354f0ad0955746c9d740b0e7c0375f4 100644
|
| --- a/content/common/gpu/gpu_channel.cc
|
| +++ b/content/common/gpu/gpu_channel.cc
|
| @@ -666,6 +666,8 @@ bool GpuChannel::OnControlMessageReceived(const IPC::Message& msg) {
|
| OnCreateOffscreenCommandBuffer)
|
| IPC_MESSAGE_HANDLER(GpuChannelMsg_DestroyCommandBuffer,
|
| OnDestroyCommandBuffer)
|
| + IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuMsg_CreateJpegDecoder,
|
| + OnCreateJpegDecoder)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
| DCHECK(handled) << msg.type();
|
| @@ -787,6 +789,13 @@ void GpuChannel::OnDestroyCommandBuffer(int32 route_id) {
|
| }
|
| }
|
|
|
| +void GpuChannel::OnCreateJpegDecoder(int32 route_id, IPC::Message* reply_msg) {
|
| + if (!jpeg_decoder_) {
|
| + jpeg_decoder_.reset(new GpuJpegDecodeAccelerator(this, io_task_runner_));
|
| + }
|
| + jpeg_decoder_->AddClient(route_id, reply_msg);
|
| +}
|
| +
|
| void GpuChannel::MessageProcessed() {
|
| messages_processed_++;
|
| if (preempting_flag_.get()) {
|
|
|