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