diff options
Diffstat (limited to 'chromium/content/renderer/media/android/stream_texture_factory_android_synchronous_impl.h')
-rw-r--r-- | chromium/content/renderer/media/android/stream_texture_factory_android_synchronous_impl.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/chromium/content/renderer/media/android/stream_texture_factory_android_synchronous_impl.h b/chromium/content/renderer/media/android/stream_texture_factory_android_synchronous_impl.h deleted file mode 100644 index 51c77e5666e..00000000000 --- a/chromium/content/renderer/media/android/stream_texture_factory_android_synchronous_impl.h +++ /dev/null @@ -1,67 +0,0 @@ -// 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_SYNCHRONOUS_IMPL_H_ -#define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_SYNCHRONOUS_IMPL_H_ - -#include "base/callback.h" -#include "base/memory/ref_counted.h" -#include "content/renderer/media/android/stream_texture_factory_android.h" - -namespace gfx { -class SurfaceTexture; -} - -namespace blink { -class WebGraphicsContext3D; -} - -namespace content { - -// Factory for when using synchronous compositor in Android WebView. -class StreamTextureFactorySynchronousImpl : public StreamTextureFactory { - public: - class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> { - public: - virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( - uint32 stream_id) = 0; - - virtual blink::WebGraphicsContext3D* Context3d() = 0; - - protected: - friend class base::RefCountedThreadSafe<ContextProvider>; - virtual ~ContextProvider() {} - }; - - typedef base::Callback<scoped_refptr<ContextProvider>(void)> - CreateContextProviderCallback; - - StreamTextureFactorySynchronousImpl( - const CreateContextProviderCallback& try_create_callback, - int view_id); - virtual ~StreamTextureFactorySynchronousImpl(); - - 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 stream_id, - const gfx::Size& size) OVERRIDE; - virtual blink::WebGraphicsContext3D* Context3d() OVERRIDE; - - private: - CreateContextProviderCallback create_context_provider_callback_; - scoped_refptr<ContextProvider> context_provider_; - int view_id_; - - DISALLOW_COPY_AND_ASSIGN(StreamTextureFactorySynchronousImpl); -}; - -} // namespace content - -#endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_SYNCHRONOUS_IMPL_H_ |