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

Side by Side Diff: content/renderer/media/android/stream_texture_factory_android_synchronous_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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698