OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/media/android/stream_texture_factory.h" | 5 #include "content/renderer/media/android/stream_texture_factory.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "cc/output/context_provider.h" | 8 #include "cc/output/context_provider.h" |
9 #include "content/common/gpu/client/context_provider_command_buffer.h" | 9 #include "content/common/gpu/client/context_provider_command_buffer.h" |
10 #include "gpu/command_buffer/client/gles2_interface.h" | 10 #include "gpu/command_buffer/client/gles2_interface.h" |
| 11 #include "gpu/ipc/client/command_buffer_proxy_impl.h" |
11 #include "gpu/ipc/client/gpu_channel_host.h" | 12 #include "gpu/ipc/client/gpu_channel_host.h" |
12 #include "gpu/ipc/common/gpu_messages.h" | 13 #include "gpu/ipc/common/gpu_messages.h" |
13 #include "ui/gfx/geometry/size.h" | 14 #include "ui/gfx/geometry/size.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 | 17 |
17 StreamTextureProxy::StreamTextureProxy(StreamTextureHost* host) | 18 StreamTextureProxy::StreamTextureProxy(StreamTextureHost* host) |
18 : host_(host), client_(NULL) {} | 19 : host_(host), client_(NULL) {} |
19 | 20 |
20 StreamTextureProxy::~StreamTextureProxy() {} | 21 StreamTextureProxy::~StreamTextureProxy() {} |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void StreamTextureFactory::SetStreamTextureSize(int32_t stream_id, | 117 void StreamTextureFactory::SetStreamTextureSize(int32_t stream_id, |
117 const gfx::Size& size) { | 118 const gfx::Size& size) { |
118 channel_->Send(new GpuStreamTextureMsg_SetSize(stream_id, size)); | 119 channel_->Send(new GpuStreamTextureMsg_SetSize(stream_id, size)); |
119 } | 120 } |
120 | 121 |
121 gpu::gles2::GLES2Interface* StreamTextureFactory::ContextGL() { | 122 gpu::gles2::GLES2Interface* StreamTextureFactory::ContextGL() { |
122 return context_provider_->ContextGL(); | 123 return context_provider_->ContextGL(); |
123 } | 124 } |
124 | 125 |
125 } // namespace content | 126 } // namespace content |
OLD | NEW |