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

Unified Diff: webkit/renderer/media/android/stream_texture_factory_android.h

Issue 17502007: Move webkit/renderer/media/android/ to content/renderer/media/android/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix shared lib Created 7 years, 6 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: webkit/renderer/media/android/stream_texture_factory_android.h
diff --git a/webkit/renderer/media/android/stream_texture_factory_android.h b/webkit/renderer/media/android/stream_texture_factory_android.h
deleted file mode 100644
index a9aab0e6f4e58aa301fe8ff025a2848d80b93738..0000000000000000000000000000000000000000
--- a/webkit/renderer/media/android/stream_texture_factory_android.h
+++ /dev/null
@@ -1,64 +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 WEBKIT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_H_
-#define WEBKIT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "cc/layers/video_frame_provider.h"
-
-namespace webkit_media {
-
-// The proxy class for the gpu thread to notify the compositor thread
-// when a new video frame is available.
-class StreamTextureProxy {
- public:
- // Initialize and bind to the current thread, which becomes the thread that
- // a connected client will receive callbacks on.
- virtual void BindToCurrentThread(int stream_id, int width, int height) = 0;
-
- virtual bool IsBoundToThread() = 0;
-
- // Setting the target for callback when a frame is available. This function
- // could be called on both the main thread and the compositor thread.
- virtual void SetClient(cc::VideoFrameProvider::Client* client) = 0;
-
- struct Deleter {
- inline void operator()(StreamTextureProxy* ptr) const { ptr->Release(); }
- };
-
- protected:
- virtual ~StreamTextureProxy() {}
-
- // Causes this instance to be deleted on the thread it is bound to.
- virtual void Release() = 0;
-};
-
-typedef scoped_ptr<StreamTextureProxy, StreamTextureProxy::Deleter>
- ScopedStreamTextureProxy;
-
-// Factory class for managing the stream texture.
-class StreamTextureFactory {
- public:
- virtual ~StreamTextureFactory() {}
-
- // Create the StreamTextureProxy object.
- virtual StreamTextureProxy* CreateProxy() = 0;
-
- // Send an IPC message to the browser process to request a java surface
- // object for the given stream_id. After the the surface is created,
- // it will be passed back to the WebMediaPlayerAndroid object identified by
- // the player_id.
- virtual void EstablishPeer(int stream_id, int player_id) = 0;
-
- // Create the streamTexture and return the stream Id and set the texture id.
- virtual unsigned CreateStreamTexture(unsigned* texture_id) = 0;
-
- // Destroy the streamTexture for the given texture Id.
- virtual void DestroyStreamTexture(unsigned texture_id) = 0;
-};
-
-} // namespace webkit_media
-
-#endif // WEBKIT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_H_
« no previous file with comments | « webkit/renderer/media/android/proxy_media_keys.cc ('k') | webkit/renderer/media/android/webmediaplayer_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698