| Index: content/renderer/media/stream_texture_factory_impl_android.h
|
| diff --git a/content/renderer/media/stream_texture_factory_impl_android.h b/content/renderer/media/stream_texture_factory_impl_android.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2f3068b7bc6a1f460af503160aebf6f3d0d684b8
|
| --- /dev/null
|
| +++ b/content/renderer/media/stream_texture_factory_impl_android.h
|
| @@ -0,0 +1,47 @@
|
| +// Copyright (c) 2012 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_STREAM_TEXTURE_IMPL_ANDROID_H_
|
| +#define CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_
|
| +#pragma once
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "content/renderer/gpu/stream_texture_host_android.h"
|
| +#include "webkit/media/android/stream_texture_factory_android.h"
|
| +
|
| +class GpuChannelHost;
|
| +
|
| +namespace WebKit {
|
| +class WebGraphicsContext3D;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +// The acutal implementation of StreamTextureFactory class.
|
| +class StreamTextureFactoryImpl
|
| + : public webkit_media::StreamTextureFactory {
|
| + public:
|
| + StreamTextureFactoryImpl(WebKit::WebGraphicsContext3D* context,
|
| + GpuChannelHost* channel,
|
| + int view_id);
|
| + virtual ~StreamTextureFactoryImpl() OVERRIDE;
|
| +
|
| + // webkit_media::StreamTextureFactory implementation:
|
| + virtual webkit_media::StreamTextureProxy* CreateProxy() OVERRIDE;
|
| +
|
| + virtual void EstablishPeer(int stream_id, int player_id) OVERRIDE;
|
| +
|
| + virtual unsigned CreateStreamTexture(unsigned* texture_id) OVERRIDE;
|
| + virtual void DestroyStreamTexture(unsigned texture_id) OVERRIDE;
|
| +
|
| + private:
|
| + WebKit::WebGraphicsContext3D* context_;
|
| + scoped_refptr<GpuChannelHost> channel_;
|
| + int view_id_;
|
| + DISALLOW_COPY_AND_ASSIGN(StreamTextureFactoryImpl);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_MEDIA_STREAM_TEXTURE_IMPL_ANDROID_H_
|
|
|