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 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "VideoLayerChromium.h" | 7 #include "cc/video_layer.h" |
8 | 8 |
9 #include "CCVideoLayerImpl.h" | 9 #include "CCVideoLayerImpl.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 scoped_refptr<VideoLayerChromium> VideoLayerChromium::create(WebKit::WebVideoFra
meProvider* provider) | 13 scoped_refptr<VideoLayerChromium> VideoLayerChromium::create(WebKit::WebVideoFra
meProvider* provider) |
14 { | 14 { |
15 return make_scoped_refptr(new VideoLayerChromium(provider)); | 15 return make_scoped_refptr(new VideoLayerChromium(provider)); |
16 } | 16 } |
17 | 17 |
18 VideoLayerChromium::VideoLayerChromium(WebKit::WebVideoFrameProvider* provider) | 18 VideoLayerChromium::VideoLayerChromium(WebKit::WebVideoFrameProvider* provider) |
19 : LayerChromium() | 19 : LayerChromium() |
20 , m_provider(provider) | 20 , m_provider(provider) |
21 { | 21 { |
22 ASSERT(m_provider); | 22 ASSERT(m_provider); |
23 } | 23 } |
24 | 24 |
25 VideoLayerChromium::~VideoLayerChromium() | 25 VideoLayerChromium::~VideoLayerChromium() |
26 { | 26 { |
27 } | 27 } |
28 | 28 |
29 scoped_ptr<CCLayerImpl> VideoLayerChromium::createCCLayerImpl() | 29 scoped_ptr<CCLayerImpl> VideoLayerChromium::createCCLayerImpl() |
30 { | 30 { |
31 return CCVideoLayerImpl::create(m_layerId, m_provider).PassAs<CCLayerImpl>()
; | 31 return CCVideoLayerImpl::create(m_layerId, m_provider).PassAs<CCLayerImpl>()
; |
32 } | 32 } |
33 | 33 |
34 } // namespace cc | 34 } // namespace cc |
OLD | NEW |