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

Side by Side Diff: webkit/compositor_bindings/web_video_layer_impl.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: Fixed crashes 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebVideoLayerImpl_h 5 #ifndef WebVideoLayerImpl_h
6 #define WebVideoLayerImpl_h 6 #define WebVideoLayerImpl_h
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoLayer.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoLayer.h"
10 #include "webkit/compositor_bindings/web_to_ccvideo_frame_provider.h"
sheu 2013/01/03 22:00:27 As a forward-declaration instead of a header inclu
danakj 2013/01/03 22:44:54 Done.
10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" 11 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
11 12
12 namespace WebKit { 13 namespace WebKit {
13 class WebLayerImpl; 14 class WebLayerImpl;
14 15
15 class WebVideoLayerImpl : public WebVideoLayer { 16 class WebVideoLayerImpl : public WebVideoLayer {
16 public: 17 public:
17 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebVideoLayerImpl( 18 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebVideoLayerImpl(
18 WebVideoFrameProvider*); 19 WebVideoFrameProvider*);
19 virtual ~WebVideoLayerImpl(); 20 virtual ~WebVideoLayerImpl();
20 21
21 // WebVideoLayer implementation. 22 // WebVideoLayer implementation.
22 virtual WebLayer* layer() OVERRIDE; 23 virtual WebLayer* layer() OVERRIDE;
23 virtual bool active() const OVERRIDE; 24 virtual bool active() const OVERRIDE;
24 25
25 private: 26 private:
27 scoped_ptr<webkit::WebToCCVideoFrameProvider> m_providerAdapter;
26 scoped_ptr<WebLayerImpl> m_layer; 28 scoped_ptr<WebLayerImpl> m_layer;
27 }; 29 };
28 30
29 } 31 }
30 32
31 #endif // WebVideoLayerImpl_h 33 #endif // WebVideoLayerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698