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

Unified Diff: content/browser/renderer_host/surface_texture_transport_client_android.h

Issue 11754003: Move VideoFrameProvider to, and remove all usage of WebVideoFrame from cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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
« no previous file with comments | « cc/video_layer_impl.cc ('k') | content/browser/renderer_host/surface_texture_transport_client_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/surface_texture_transport_client_android.h
diff --git a/content/browser/renderer_host/surface_texture_transport_client_android.h b/content/browser/renderer_host/surface_texture_transport_client_android.h
index 50374437465bbbc265315a5e0bb548b181cbcdbc..ca332d5cc55f99377f3e77eee3c8613feda8a3b9 100644
--- a/content/browser/renderer_host/surface_texture_transport_client_android.h
+++ b/content/browser/renderer_host/surface_texture_transport_client_android.h
@@ -7,8 +7,9 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebVideoFrameProvider.h"
+#include "cc/video_frame_provider.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/gfx/size.h"
struct ANativeWindow;
@@ -20,7 +21,7 @@ class VideoLayer;
namespace content {
class SurfaceTextureBridge;
-class SurfaceTextureTransportClient : public WebKit::WebVideoFrameProvider {
+class SurfaceTextureTransportClient : public cc::VideoFrameProvider {
public:
SurfaceTextureTransportClient();
virtual ~SurfaceTextureTransportClient();
@@ -29,10 +30,11 @@ class SurfaceTextureTransportClient : public WebKit::WebVideoFrameProvider {
gfx::GLSurfaceHandle GetCompositingSurface(int surface_id);
void SetSize(const gfx::Size& size);
- // WebKit::WebVideoFrameProvider implementation.
- virtual void setVideoFrameProviderClient(Client*) OVERRIDE {}
- virtual WebKit::WebVideoFrame* getCurrentFrame() OVERRIDE;
- virtual void putCurrentFrame(WebKit::WebVideoFrame* frame) OVERRIDE;
+ // cc::VideoFrameProvider implementation.
+ virtual void SetVideoFrameProviderClient(Client*) OVERRIDE {}
+ virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE;
+ virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame)
+ OVERRIDE;
private:
void OnSurfaceTextureFrameAvailable();
@@ -40,7 +42,7 @@ class SurfaceTextureTransportClient : public WebKit::WebVideoFrameProvider {
scoped_refptr<cc::VideoLayer> video_layer_;
scoped_refptr<SurfaceTextureBridge> surface_texture_;
ANativeWindow* window_;
- scoped_ptr<WebKit::WebVideoFrame> video_frame_;
+ scoped_refptr<media::VideoFrame> video_frame_;
uint32 texture_id_;
DISALLOW_COPY_AND_ASSIGN(SurfaceTextureTransportClient);
« no previous file with comments | « cc/video_layer_impl.cc ('k') | content/browser/renderer_host/surface_texture_transport_client_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698