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_IMPL_H_ | |
6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_ | |
7 | |
8 #include "content/renderer/media/android/stream_texture_factory_android.h" | |
9 | |
10 namespace WebKit { | |
11 class WebGraphicsContext3D; | |
12 } | |
13 | |
14 namespace content { | |
15 | |
16 class GpuChannelHost; | |
17 | |
18 class StreamTextureFactoryImpl : public StreamTextureFactory { | |
19 public: | |
20 StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context, | |
21 GpuChannelHost* channel, | |
no sievers
2013/08/10 02:08:46
nit: indent
boliu
2013/08/10 04:17:04
Done.
| |
22 int view_id); | |
23 virtual ~StreamTextureFactoryImpl(); | |
24 | |
25 // StreamTextureFactory implementation. | |
26 virtual StreamTextureProxy* CreateProxy() OVERRIDE; | |
27 virtual void EstablishPeer(int32 stream_id, int player_id) OVERRIDE; | |
28 virtual unsigned CreateStreamTexture( | |
29 unsigned texture_target, | |
30 unsigned* texture_id, | |
31 gpu::Mailbox* texture_mailbox, | |
32 unsigned* texture_mailbox_sync_point) OVERRIDE; | |
33 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE; | |
34 virtual void SetStreamTextureSize(int32 texture_id, | |
35 const gfx::Size& size) OVERRIDE; | |
36 | |
37 private: | |
38 WebKit::WebGraphicsContext3D* context_; | |
39 scoped_refptr<GpuChannelHost> channel_; | |
40 int view_id_; | |
41 | |
42 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactoryImpl); | |
43 }; | |
44 | |
45 } // namespace content | |
46 | |
47 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_ | |
OLD | NEW |