| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 // Temporary forwarding header |
| 6 #ifndef VideoLayerChromium_h | 6 #include "cc/video_layer.h" |
| 7 #define VideoLayerChromium_h | |
| 8 | |
| 9 #if USE(ACCELERATED_COMPOSITING) | |
| 10 | |
| 11 #include "LayerChromium.h" | |
| 12 | |
| 13 namespace WebKit { | |
| 14 class WebVideoFrameProvider; | |
| 15 } | |
| 16 | |
| 17 namespace cc { | |
| 18 | |
| 19 class CCVideoLayerImpl; | |
| 20 | |
| 21 // A Layer that contains a Video element. | |
| 22 class VideoLayerChromium : public LayerChromium { | |
| 23 public: | |
| 24 static scoped_refptr<VideoLayerChromium> create(WebKit::WebVideoFrameProvide
r*); | |
| 25 | |
| 26 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 explicit VideoLayerChromium(WebKit::WebVideoFrameProvider*); | |
| 30 virtual ~VideoLayerChromium(); | |
| 31 | |
| 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; | |
| 34 }; | |
| 35 | |
| 36 } | |
| 37 #endif // USE(ACCELERATED_COMPOSITING) | |
| 38 | |
| 39 #endif | |
| OLD | NEW |