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

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: address nits 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 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,
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698