Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: content/renderer/media/android/stream_texture_factory_android_impl.h

Issue 22766004: Fullscreen video in Android WebView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 content {
11
12 class GpuChannelHost;
13
14 // Factory class for managing stream textures.
15 class StreamTextureFactoryImpl : public StreamTextureFactory {
16 public:
17 StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context,
18 GpuChannelHost* channel,
19 int view_id);
20 virtual ~StreamTextureFactoryImpl();
21
22 virtual StreamTextureProxy* CreateProxy() OVERRIDE;
23 virtual void EstablishPeer(int32 stream_id, int player_id) OVERRIDE;
24 virtual unsigned CreateStreamTexture(
25 unsigned texture_target,
26 unsigned* texture_id,
27 gpu::Mailbox* texture_mailbox,
28 unsigned* texture_mailbox_sync_point) OVERRIDE;
29 virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE;
30 virtual void SetStreamTextureSize(int32 texture_id,
31 const gfx::Size& size) OVERRIDE;
32
33 private:
34 WebKit::WebGraphicsContext3D* context_;
35 scoped_refptr<GpuChannelHost> channel_;
36 int view_id_;
37
38 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactoryImpl);
39 };
40
41 } // namespace content
42
43 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698