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

Unified Diff: content/renderer/media/stream_texture_factory_impl_android.h

Issue 10695181: [Android] Upstream all the IPC communications/handlings for stream texture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove #pragma once Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
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..925841465389cf65c21ba3b6e778bb9ebe9b1b8d
--- /dev/null
+++ b/content/renderer/media/stream_texture_factory_impl_android.h
@@ -0,0 +1,46 @@
+// 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_
+
+#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();
+
+ // 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_
« no previous file with comments | « content/renderer/gpu/stream_texture_host_android.cc ('k') | content/renderer/media/stream_texture_factory_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698