Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: content/renderer/media/android/stream_texture_factory.cc

Issue 1937313003: Hide WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: construct: . Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698