| 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/media/android/stream_texture_factory_android.h" | 10 #include "webkit/media/android/stream_texture_factory_android.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context, | 23 StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context, |
| 24 GpuChannelHost* channel, | 24 GpuChannelHost* channel, |
| 25 int view_id); | 25 int view_id); |
| 26 virtual ~StreamTextureFactoryImpl(); | 26 virtual ~StreamTextureFactoryImpl(); |
| 27 | 27 |
| 28 // webkit_media::StreamTextureFactory implementation: | 28 // webkit_media::StreamTextureFactory implementation: |
| 29 virtual webkit_media::StreamTextureProxy* CreateProxy() OVERRIDE; | 29 virtual webkit_media::StreamTextureProxy* CreateProxy() OVERRIDE; |
| 30 | 30 |
| 31 virtual void EstablishPeer(int stream_id, int player_id) OVERRIDE; | 31 virtual void EstablishPeer(int stream_id, int player_id) OVERRIDE; |
| 32 | 32 |
| 33 virtual unsigned CreateStreamTexture(unsigned* texture_id) OVERRIDE; | 33 virtual unsigned CreateStreamTexture( |
| 34 unsigned texture_target, |
| 35 unsigned* texture_id, |
| 36 gpu::Mailbox* texture_mailbox, |
| 37 unsigned* texture_mailbox_sync_point) OVERRIDE; |
| 34 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE; | 38 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE; |
| 35 | 39 |
| 36 private: | 40 private: |
| 37 WebKit::WebGraphicsContext3D* context_; | 41 WebKit::WebGraphicsContext3D* context_; |
| 38 scoped_refptr<GpuChannelHost> channel_; | 42 scoped_refptr<GpuChannelHost> channel_; |
| 39 int view_id_; | 43 int view_id_; |
| 40 DISALLOW_COPY_AND_ASSIGN(StreamTextureFactoryImpl); | 44 DISALLOW_COPY_AND_ASSIGN(StreamTextureFactoryImpl); |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 } // namespace content | 47 } // namespace content |
| 44 | 48 |
| 45 #endif // CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ | 49 #endif // CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_ |
| OLD | NEW |