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

Side by Side Diff: content/renderer/media/android/stream_texture_factory_android_impl.h

Issue 132163004: Remove WebGraphicsContext3D getter from cc::ContextProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_
7 7
8 #include "content/renderer/media/android/stream_texture_factory_android.h" 8 #include "content/renderer/media/android/stream_texture_factory_android.h"
9 9
10 namespace blink { 10 namespace gpu {
11 class WebGraphicsContext3D; 11 namespace gles2 {
12 } 12 class GLES2Interface;
13 } // namespace gles2
14 } // namespace gpu
15
13 16
14 namespace content { 17 namespace content {
15 18
16 class GpuChannelHost; 19 class GpuChannelHost;
17 20
18 class StreamTextureFactoryImpl : public StreamTextureFactory { 21 class StreamTextureFactoryImpl : public StreamTextureFactory {
19 public: 22 public:
20 StreamTextureFactoryImpl(blink::WebGraphicsContext3D* context, 23 StreamTextureFactoryImpl(gpu::gles2::GLES2Interface* gl,
21 GpuChannelHost* channel, 24 GpuChannelHost* channel,
22 int view_id); 25 int view_id);
23 virtual ~StreamTextureFactoryImpl(); 26 virtual ~StreamTextureFactoryImpl();
24 27
25 // StreamTextureFactory implementation. 28 // StreamTextureFactory implementation.
26 virtual StreamTextureProxy* CreateProxy() OVERRIDE; 29 virtual StreamTextureProxy* CreateProxy() OVERRIDE;
27 virtual void EstablishPeer(int32 stream_id, int player_id) OVERRIDE; 30 virtual void EstablishPeer(int32 stream_id, int player_id) OVERRIDE;
28 virtual unsigned CreateStreamTexture( 31 virtual unsigned CreateStreamTexture(
29 unsigned texture_target, 32 unsigned texture_target,
30 unsigned* texture_id, 33 unsigned* texture_id,
31 gpu::Mailbox* texture_mailbox, 34 gpu::Mailbox* texture_mailbox,
32 unsigned* texture_mailbox_sync_point) OVERRIDE; 35 unsigned* texture_mailbox_sync_point) OVERRIDE;
33 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE; 36 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE;
34 virtual void SetStreamTextureSize(int32 texture_id, 37 virtual void SetStreamTextureSize(int32 texture_id,
35 const gfx::Size& size) OVERRIDE; 38 const gfx::Size& size) OVERRIDE;
36 virtual blink::WebGraphicsContext3D* Context3d() OVERRIDE; 39 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE;
37 40
38 private: 41 private:
39 blink::WebGraphicsContext3D* context_; 42 gpu::gles2::GLES2Interface* gl_;
40 scoped_refptr<GpuChannelHost> channel_; 43 scoped_refptr<GpuChannelHost> channel_;
41 int view_id_; 44 int view_id_;
42 45
43 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactoryImpl); 46 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactoryImpl);
44 }; 47 };
45 48
46 } // namespace content 49 } // namespace content
47 50
48 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_ 51 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698