| 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 cc { | 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 static scoped_refptr<VideoLayerChromium> create(WebKit::WebVideoFrameProvide
r*); | 24 static scoped_refptr<VideoLayerChromium> create(WebKit::WebVideoFrameProvide
r*); |
| 25 | 25 |
| 26 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; | 26 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 explicit VideoLayerChromium(WebKit::WebVideoFrameProvider*); | 29 explicit VideoLayerChromium(WebKit::WebVideoFrameProvider*); |
| 30 virtual ~VideoLayerChromium(); | 30 virtual ~VideoLayerChromium(); |
| 31 | 31 |
| 32 // This pointer is only for passing to CCVideoLayerImpl's constructor. It sh
ould never be dereferenced by this class. | 32 // This pointer is only for passing to CCVideoLayerImpl's constructor. It sh
ould never be dereferenced by this class. |
| 33 WebKit::WebVideoFrameProvider* m_provider; | 33 WebKit::WebVideoFrameProvider* m_provider; |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 } | 36 } |
| 37 #endif // USE(ACCELERATED_COMPOSITING) | 37 #endif // USE(ACCELERATED_COMPOSITING) |
| 38 | 38 |
| 39 #endif | 39 #endif |
| OLD | NEW |