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
3 // found in the LICENSE file.
6 #ifndef VideoLayerChromium_h
7 #define VideoLayerChromium_h
9 #if USE(ACCELERATED_COMPOSITING)
11 #include "LayerChromium.h"
14 class WebVideoFrameProvider
;
19 class CCVideoLayerImpl
;
21 // A Layer that contains a Video element.
22 class VideoLayerChromium
: public LayerChromium
{
25 static PassRefPtr
<VideoLayerChromium
> create(WebKit::WebVideoFrameProvider
*);
26 virtual ~VideoLayerChromium();
28 virtual PassOwnPtr
<CCLayerImpl
> createCCLayerImpl() OVERRIDE
;
31 explicit VideoLayerChromium(WebKit::WebVideoFrameProvider
*);
33 // This pointer is only for passing to CCVideoLayerImpl's constructor. It should never be dereferenced by this class.
34 WebKit::WebVideoFrameProvider
* m_provider
;
38 #endif // USE(ACCELERATED_COMPOSITING)