Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_STREAM_TEXTURE_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/renderer/gpu/stream_texture_host_android.h" | 9 #include "content/renderer/gpu/stream_texture_host_android.h" |
| 10 #include "webkit/renderer/media/android/stream_texture_factory_android.h" | 10 #include "content/renderer/media/android/stream_texture_factory_android.h" |
| 11 | 11 |
| 12 namespace WebKit { | 12 namespace WebKit { |
| 13 class WebGraphicsContext3D; | 13 class WebGraphicsContext3D; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class GpuChannelHost; | 17 class GpuChannelHost; |
| 18 | 18 |
| 19 // The acutal implementation of StreamTextureFactory class. | 19 // The acutal implementation of StreamTextureFactory class. |
| 20 class StreamTextureFactoryImpl | 20 class StreamTextureFactoryImpl : public content::StreamTextureFactory { |
|
jamesr
2013/06/21 04:55:35
this is in namespace content, no need for the "con
scherkus (not reviewing)
2013/06/21 21:37:59
Folded like my laundry.
| |
| 21 : public webkit_media::StreamTextureFactory { | |
| 22 public: | 21 public: |
| 23 StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context, | 22 StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context, |
| 24 GpuChannelHost* channel, | 23 GpuChannelHost* channel, |
| 25 int view_id); | 24 int view_id); |
| 26 virtual ~StreamTextureFactoryImpl(); | 25 virtual ~StreamTextureFactoryImpl(); |
| 27 | 26 |
| 28 // webkit_media::StreamTextureFactory implementation: | 27 // webkit_media::StreamTextureFactory implementation: |
| 29 virtual webkit_media::StreamTextureProxy* CreateProxy() OVERRIDE; | 28 virtual StreamTextureProxy* CreateProxy() OVERRIDE; |
| 30 | 29 |
| 31 virtual void EstablishPeer(int stream_id, int player_id) OVERRIDE; | 30 virtual void EstablishPeer(int stream_id, int player_id) OVERRIDE; |
| 32 | 31 |
| 33 virtual unsigned CreateStreamTexture(unsigned* texture_id) OVERRIDE; | 32 virtual unsigned CreateStreamTexture(unsigned* texture_id) OVERRIDE; |
| 34 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE; | 33 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE; |
| 35 | 34 |
| 36 private: | 35 private: |
| 37 WebKit::WebGraphicsContext3D* context_; | 36 WebKit::WebGraphicsContext3D* context_; |
| 38 scoped_refptr<GpuChannelHost> channel_; | 37 scoped_refptr<GpuChannelHost> channel_; |
| 39 int view_id_; | 38 int view_id_; |
| 40 DISALLOW_COPY_AND_ASSIGN(StreamTextureFactoryImpl); | 39 DISALLOW_COPY_AND_ASSIGN(StreamTextureFactoryImpl); |
| 41 }; | 40 }; |
| 42 | 41 |
| 43 } // namespace content | 42 } // namespace content |
| 44 | 43 |
| 45 #endif // CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ | 44 #endif // CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ |
| OLD | NEW |