OLD | NEW |
| (Empty) |
1 // Copyright 2011 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. | |
4 | |
5 #include "config.h" | |
6 #include "WebVideoLayerImpl.h" | |
7 | |
8 #include "VideoLayerChromium.h" | |
9 #include "WebLayerImpl.h" | |
10 | |
11 namespace WebKit { | |
12 | |
13 WebVideoLayer* WebVideoLayer::create(WebVideoFrameProvider* provider) | |
14 { | |
15 return new WebVideoLayerImpl(provider); | |
16 } | |
17 | |
18 WebVideoLayerImpl::WebVideoLayerImpl(WebVideoFrameProvider* provider) | |
19 : m_layer(adoptPtr(new WebLayerImpl(WebCore::VideoLayerChromium::create(prov
ider)))) | |
20 { | |
21 } | |
22 | |
23 WebVideoLayerImpl::~WebVideoLayerImpl() | |
24 { | |
25 } | |
26 | |
27 WebLayer* WebVideoLayerImpl::layer() | |
28 { | |
29 return m_layer.get(); | |
30 } | |
31 | |
32 bool WebVideoLayerImpl::active() const | |
33 { | |
34 return m_layer->layer()->layerTreeHost(); | |
35 } | |
36 | |
37 } // namespace WebKit | |
OLD | NEW |