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

Unified Diff: cc/video_layer.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_frame_provider.h ('k') | cc/video_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/video_layer.h
diff --git a/cc/video_layer.h b/cc/video_layer.h
index 25250792540ee758ae54eac2b9d786fc06c4bf41..898b442c137c6b0763011295cde1716b813e72b9 100644
--- a/cc/video_layer.h
+++ b/cc/video_layer.h
@@ -9,36 +9,28 @@
#include "cc/cc_export.h"
#include "cc/layer.h"
-namespace WebKit {
-class WebVideoFrame;
-class WebVideoFrameProvider;
-}
-
namespace media {
class VideoFrame;
}
namespace cc {
+class VideoFrameProvider;
class VideoLayerImpl;
// A Layer that contains a Video element.
class CC_EXPORT VideoLayer : public Layer {
public:
- typedef base::Callback<media::VideoFrame* (WebKit::WebVideoFrame*)> FrameUnwrapper;
-
- static scoped_refptr<VideoLayer> create(WebKit::WebVideoFrameProvider*,
- const FrameUnwrapper&);
+ static scoped_refptr<VideoLayer> create(VideoFrameProvider*);
virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERRIDE;
private:
- VideoLayer(WebKit::WebVideoFrameProvider*, const FrameUnwrapper&);
+ explicit VideoLayer(VideoFrameProvider*);
virtual ~VideoLayer();
// This pointer is only for passing to VideoLayerImpl's constructor. It should never be dereferenced by this class.
- WebKit::WebVideoFrameProvider* m_provider;
- FrameUnwrapper m_unwrapper;
+ VideoFrameProvider* m_provider;
};
} // namespace cc
« no previous file with comments | « cc/video_frame_provider.h ('k') | cc/video_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698