Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 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 | 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 "webkit/compositor_bindings/web_video_layer_impl.h" | 5 #include "webkit/compositor_bindings/web_video_layer_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "cc/video_layer.h" | 8 #include "cc/video_layer.h" |
| 9 #include "webkit/compositor_bindings/web_layer_impl.h" | 9 #include "webkit/compositor_bindings/web_layer_impl.h" |
| 10 #include "webkit/compositor_bindings/web_to_ccvideo_frame_provider.h" | |
| 10 #include "webkit/media/webvideoframe_impl.h" | 11 #include "webkit/media/webvideoframe_impl.h" |
| 11 | 12 |
| 12 namespace WebKit { | 13 namespace WebKit { |
| 13 | 14 |
| 14 WebVideoLayerImpl::WebVideoLayerImpl(WebVideoFrameProvider* provider) | 15 WebVideoLayerImpl::WebVideoLayerImpl(WebVideoFrameProvider* web_provider) |
| 15 : m_layer(new WebLayerImpl( | 16 : m_providerAdapter(webkit::WebToCCVideoFrameProvider::Create(web_provider)) |
| 16 cc::VideoLayer::create( | 17 , m_layer(new WebLayerImpl(cc::VideoLayer::create(m_providerAdapter.get()))) |
|
jamesr
2013/01/04 18:39:40
chromium style is to put this comma at the end of
danakj
2013/01/04 19:47:34
None of this file is chromium style yet :/
| |
| 17 provider, | |
| 18 base::Bind(webkit_media::WebVideoFrameImpl::toVideoFrame)))) | |
| 19 { | 18 { |
| 20 } | 19 } |
| 21 | 20 |
| 22 WebVideoLayerImpl::~WebVideoLayerImpl() | 21 WebVideoLayerImpl::~WebVideoLayerImpl() |
| 23 { | 22 { |
| 24 } | 23 } |
| 25 | 24 |
| 26 WebLayer* WebVideoLayerImpl::layer() | 25 WebLayer* WebVideoLayerImpl::layer() |
| 27 { | 26 { |
| 28 return m_layer.get(); | 27 return m_layer.get(); |
| 29 } | 28 } |
| 30 | 29 |
| 31 bool WebVideoLayerImpl::active() const | 30 bool WebVideoLayerImpl::active() const |
| 32 { | 31 { |
| 33 return m_layer->layer()->layerTreeHost(); | 32 return m_layer->layer()->layerTreeHost(); |
| 34 } | 33 } |
| 35 | 34 |
| 36 } // namespace WebKit | 35 } // namespace WebKit |
| OLD | NEW |