OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_SYNCHRONOU
S_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_SYNCHRONOU
S_IMPL_H_ |
| 7 |
| 8 #include "content/renderer/media/android/stream_texture_factory_android.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 // Factory for when using synchronous compositor in Android WebView. |
| 13 class StreamTextureFactorySynchronousImpl : public StreamTextureFactory { |
| 14 public: |
| 15 StreamTextureFactorySynchronousImpl(); |
| 16 virtual ~StreamTextureFactorySynchronousImpl(); |
| 17 |
| 18 virtual StreamTextureProxy* CreateProxy() OVERRIDE; |
| 19 virtual void EstablishPeer(int32 stream_id, int player_id) OVERRIDE; |
| 20 virtual unsigned CreateStreamTexture( |
| 21 unsigned texture_target, |
| 22 unsigned* texture_id, |
| 23 gpu::Mailbox* texture_mailbox, |
| 24 unsigned* texture_mailbox_sync_point) OVERRIDE; |
| 25 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE; |
| 26 virtual void SetStreamTextureSize(int32 texture_id, |
| 27 const gfx::Size& size) OVERRIDE; |
| 28 |
| 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(StreamTextureFactorySynchronousImpl); |
| 31 }; |
| 32 |
| 33 } // namespace content |
| 34 |
| 35 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_SYNCHRO
NOUS_IMPL_H_ |
OLD | NEW |