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

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

Issue 1827123002: Move content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 8 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_impl.h" 5 #include "content/renderer/media/android/stream_texture_factory_impl.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 "content/common/gpu/client/gpu_channel_host.h"
11 #include "content/renderer/gpu/stream_texture_host_android.h" 10 #include "content/renderer/gpu/stream_texture_host_android.h"
12 #include "gpu/command_buffer/client/gles2_interface.h" 11 #include "gpu/command_buffer/client/gles2_interface.h"
12 #include "gpu/ipc/client/gpu_channel_host.h"
13 #include "gpu/ipc/common/gpu_messages.h" 13 #include "gpu/ipc/common/gpu_messages.h"
14 #include "ui/gfx/geometry/size.h" 14 #include "ui/gfx/geometry/size.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 namespace { 18 namespace {
19 19
20 class StreamTextureProxyImpl : public StreamTextureProxy, 20 class StreamTextureProxyImpl : public StreamTextureProxy,
21 public StreamTextureHost::Listener { 21 public StreamTextureHost::Listener {
22 public: 22 public:
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 base::AutoLock lock(lock_); 99 base::AutoLock lock(lock_);
100 if (client_) 100 if (client_)
101 client_->DidReceiveFrame(); 101 client_->DidReceiveFrame();
102 } 102 }
103 103
104 } // namespace 104 } // namespace
105 105
106 // static 106 // static
107 scoped_refptr<StreamTextureFactoryImpl> StreamTextureFactoryImpl::Create( 107 scoped_refptr<StreamTextureFactoryImpl> StreamTextureFactoryImpl::Create(
108 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, 108 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
109 GpuChannelHost* channel) { 109 gpu::GpuChannelHost* channel) {
110 return new StreamTextureFactoryImpl(context_provider, channel); 110 return new StreamTextureFactoryImpl(context_provider, channel);
111 } 111 }
112 112
113 StreamTextureFactoryImpl::StreamTextureFactoryImpl( 113 StreamTextureFactoryImpl::StreamTextureFactoryImpl(
114 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, 114 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
115 GpuChannelHost* channel) 115 gpu::GpuChannelHost* channel)
116 : context_provider_(context_provider), channel_(channel) { 116 : context_provider_(context_provider), channel_(channel) {
117 DCHECK(channel); 117 DCHECK(channel);
118 } 118 }
119 119
120 StreamTextureFactoryImpl::~StreamTextureFactoryImpl() {} 120 StreamTextureFactoryImpl::~StreamTextureFactoryImpl() {}
121 121
122 StreamTextureProxy* StreamTextureFactoryImpl::CreateProxy() { 122 StreamTextureProxy* StreamTextureFactoryImpl::CreateProxy() {
123 DCHECK(channel_.get()); 123 DCHECK(channel_.get());
124 StreamTextureHost* host = new StreamTextureHost(channel_.get()); 124 StreamTextureHost* host = new StreamTextureHost(channel_.get());
125 return new StreamTextureProxyImpl(host); 125 return new StreamTextureProxyImpl(host);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 void StreamTextureFactoryImpl::AddObserver( 161 void StreamTextureFactoryImpl::AddObserver(
162 StreamTextureFactoryContextObserver* obs) { 162 StreamTextureFactoryContextObserver* obs) {
163 } 163 }
164 164
165 void StreamTextureFactoryImpl::RemoveObserver( 165 void StreamTextureFactoryImpl::RemoveObserver(
166 StreamTextureFactoryContextObserver* obs) { 166 StreamTextureFactoryContextObserver* obs) {
167 } 167 }
168 168
169 } // namespace content 169 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698