OLD | NEW |
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/webkit_compositor_bindings_export.h" | 10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" |
11 | 11 |
| 12 namespace webkit { |
| 13 class WebToCCVideoFrameProvider; |
| 14 } |
| 15 |
12 namespace WebKit { | 16 namespace WebKit { |
13 class WebLayerImpl; | 17 class WebLayerImpl; |
14 | 18 |
15 class WebVideoLayerImpl : public WebVideoLayer { | 19 class WebVideoLayerImpl : public WebVideoLayer { |
16 public: | 20 public: |
17 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebVideoLayerImpl( | 21 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebVideoLayerImpl( |
18 WebVideoFrameProvider*); | 22 WebVideoFrameProvider*); |
19 virtual ~WebVideoLayerImpl(); | 23 virtual ~WebVideoLayerImpl(); |
20 | 24 |
21 // WebVideoLayer implementation. | 25 // WebVideoLayer implementation. |
22 virtual WebLayer* layer() OVERRIDE; | 26 virtual WebLayer* layer() OVERRIDE; |
23 virtual bool active() const OVERRIDE; | 27 virtual bool active() const OVERRIDE; |
24 | 28 |
25 private: | 29 private: |
| 30 scoped_ptr<webkit::WebToCCVideoFrameProvider> m_providerAdapter; |
26 scoped_ptr<WebLayerImpl> m_layer; | 31 scoped_ptr<WebLayerImpl> m_layer; |
27 }; | 32 }; |
28 | 33 |
29 } | 34 } |
30 | 35 |
31 #endif // WebVideoLayerImpl_h | 36 #endif // WebVideoLayerImpl_h |
OLD | NEW |