OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 | 5 |
6 #ifndef VideoLayerChromium_h | 6 #ifndef VideoLayerChromium_h |
7 #define VideoLayerChromium_h | 7 #define VideoLayerChromium_h |
8 | 8 |
9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
11 #include "LayerChromium.h" | 11 #include "LayerChromium.h" |
12 | 12 |
13 namespace WebKit { | 13 namespace WebKit { |
14 class WebVideoFrameProvider; | 14 class WebVideoFrameProvider; |
15 } | 15 } |
16 | 16 |
17 namespace WebCore { | 17 namespace cc { |
18 | 18 |
19 class CCVideoLayerImpl; | 19 class CCVideoLayerImpl; |
20 | 20 |
21 // A Layer that contains a Video element. | 21 // A Layer that contains a Video element. |
22 class VideoLayerChromium : public LayerChromium { | 22 class VideoLayerChromium : public LayerChromium { |
23 public: | 23 public: |
24 | 24 |
25 static PassRefPtr<VideoLayerChromium> create(WebKit::WebVideoFrameProvider*)
; | 25 static PassRefPtr<VideoLayerChromium> create(WebKit::WebVideoFrameProvider*)
; |
26 virtual ~VideoLayerChromium(); | 26 virtual ~VideoLayerChromium(); |
27 | 27 |
28 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; | 28 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; |
29 | 29 |
30 private: | 30 private: |
31 explicit VideoLayerChromium(WebKit::WebVideoFrameProvider*); | 31 explicit VideoLayerChromium(WebKit::WebVideoFrameProvider*); |
32 | 32 |
33 // This pointer is only for passing to CCVideoLayerImpl's constructor. It sh
ould never be dereferenced by this class. | 33 // This pointer is only for passing to CCVideoLayerImpl's constructor. It sh
ould never be dereferenced by this class. |
34 WebKit::WebVideoFrameProvider* m_provider; | 34 WebKit::WebVideoFrameProvider* m_provider; |
35 }; | 35 }; |
36 | 36 |
37 } | 37 } |
38 #endif // USE(ACCELERATED_COMPOSITING) | 38 #endif // USE(ACCELERATED_COMPOSITING) |
39 | 39 |
40 #endif | 40 #endif |
OLD | NEW |