Chromium Code Reviews| Index: content/common/gpu/client/command_buffer_proxy_impl.cc |
| diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc |
| index 1056939d8f0deeea7c5b8971c1fb13359fd9a939..c11be5eac1f790a73678758e94a42100413cb49c 100644 |
| --- a/content/common/gpu/client/command_buffer_proxy_impl.cc |
| +++ b/content/common/gpu/client/command_buffer_proxy_impl.cc |
| @@ -10,6 +10,7 @@ |
| #include "base/memory/shared_memory.h" |
| #include "base/stl_util.h" |
| #include "content/common/child_process_messages.h" |
| +#include "content/common/gpu/client/gl_surface_capturer_host.h" |
| #include "content/common/gpu/client/gpu_channel_host.h" |
| #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" |
| #include "content/common/gpu/gpu_memory_allocation.h" |
| @@ -500,6 +501,25 @@ CommandBufferProxyImpl::CreateVideoDecoder( |
| return vda.Pass(); |
| } |
| +scoped_ptr<SurfaceCapturer> CommandBufferProxyImpl::CreateSurfaceCapturer( |
| + SurfaceCapturer::Client* client) { |
| + int capturer_route_id; |
| + scoped_ptr<SurfaceCapturer> capturer; |
| + if (!Send(new GpuCommandBufferMsg_CreateSurfaceCapturer( |
| + route_id_, &capturer_route_id))) { |
|
Pawel Osciak
2013/08/24 01:29:31
Indent off?
sheu
2013/08/26 21:30:52
It's correct -- 4 from the starting opening '(' of
|
| + LOG(ERROR) << "Send(GpuCommandBufferMsg_CreateSurfaceCapturer) failed"; |
| + return capturer.Pass(); |
| + } |
| + |
| + if (capturer_route_id < 0) { |
| + DLOG(ERROR) << "Failed create surface capturer"; |
| + return capturer.Pass(); |
| + } |
| + |
| + capturer.reset(new GLSurfaceCapturerHost(capturer_route_id, client, this)); |
| + return capturer.Pass(); |
| +} |
| + |
| gpu::error::Error CommandBufferProxyImpl::GetLastError() { |
| return last_state_.error; |
| } |