Index: content/common/gpu/client/gpu_channel_host.cc |
diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc |
index 475eeb1541f6a4a4cb402ff7034055f17549f5ff..5a16edfb4b66f879e57b5dfe2ebe01c65fbb24fb 100644 |
--- a/content/common/gpu/client/gpu_channel_host.cc |
+++ b/content/common/gpu/client/gpu_channel_host.cc |
@@ -13,6 +13,7 @@ |
#include "base/threading/thread_restrictions.h" |
#include "base/trace_event/trace_event.h" |
#include "content/common/gpu/client/command_buffer_proxy_impl.h" |
+#include "content/common/gpu/client/gpu_jpeg_decode_accelerator_host.h" |
#include "content/common/gpu/gpu_messages.h" |
#include "ipc/ipc_sync_message_filter.h" |
#include "url/gurl.h" |
@@ -263,6 +264,17 @@ scoped_ptr<media::VideoEncodeAccelerator> GpuChannelHost::CreateVideoEncoder( |
return it->second->CreateVideoEncoder(); |
} |
+scoped_ptr<media::JpegDecodeAccelerator> GpuChannelHost::CreateJpegDecoder() { |
+ TRACE_EVENT0("gpu", "GpuChannelHost::CreateJpegDecoder"); |
+ |
+ int32 route_id = GenerateRouteID(); |
+ GpuJpegDecodeAcceleratorHost* decoder( |
+ new GpuJpegDecodeAcceleratorHost(this, route_id)); |
+ AddRoute(route_id, decoder->AsWeakPtr()); |
+ |
+ return scoped_ptr<media::JpegDecodeAccelerator>(decoder); |
+} |
+ |
void GpuChannelHost::DestroyCommandBuffer( |
CommandBufferProxyImpl* command_buffer) { |
TRACE_EVENT0("gpu", "GpuChannelHost::DestroyCommandBuffer"); |