Chromium Code Reviews| Index: content/renderer/media/android/stream_texture_factory_android_impl.h |
| diff --git a/content/renderer/media/android/stream_texture_factory_android_impl.h b/content/renderer/media/android/stream_texture_factory_android_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f4b493ab12e4692f351e22c22d57968ccab7da07 |
| --- /dev/null |
| +++ b/content/renderer/media/android/stream_texture_factory_android_impl.h |
| @@ -0,0 +1,47 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_ |
| +#define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_ |
| + |
| +#include "content/renderer/media/android/stream_texture_factory_android.h" |
| + |
| +namespace WebKit { |
| +class WebGraphicsContext3D; |
| +} |
| + |
| +namespace content { |
| + |
| +class GpuChannelHost; |
| + |
| +class StreamTextureFactoryImpl : public StreamTextureFactory { |
| + public: |
| + StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context, |
| + GpuChannelHost* channel, |
|
no sievers
2013/08/10 02:08:46
nit: indent
boliu
2013/08/10 04:17:04
Done.
|
| + int view_id); |
| + virtual ~StreamTextureFactoryImpl(); |
| + |
| + // StreamTextureFactory implementation. |
| + virtual StreamTextureProxy* CreateProxy() OVERRIDE; |
| + virtual void EstablishPeer(int32 stream_id, int player_id) OVERRIDE; |
| + virtual unsigned CreateStreamTexture( |
| + unsigned texture_target, |
| + unsigned* texture_id, |
| + gpu::Mailbox* texture_mailbox, |
| + unsigned* texture_mailbox_sync_point) OVERRIDE; |
| + virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE; |
| + virtual void SetStreamTextureSize(int32 texture_id, |
| + const gfx::Size& size) OVERRIDE; |
| + |
| + private: |
| + WebKit::WebGraphicsContext3D* context_; |
| + scoped_refptr<GpuChannelHost> channel_; |
| + int view_id_; |
| + |
| + DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactoryImpl); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_ |