| 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 "config.h" | |
| 6 #include "webkit/compositor_bindings/web_video_layer_impl.h" | 5 #include "webkit/compositor_bindings/web_video_layer_impl.h" |
| 7 | 6 |
| 8 #include "base/bind.h" | 7 #include "base/bind.h" |
| 9 #include "cc/video_layer.h" | 8 #include "cc/video_layer.h" |
| 10 #include "webkit/compositor_bindings/web_layer_impl.h" | 9 #include "webkit/compositor_bindings/web_layer_impl.h" |
| 11 #include "webkit/media/webvideoframe_impl.h" | 10 #include "webkit/media/webvideoframe_impl.h" |
| 12 | 11 |
| 13 namespace WebKit { | 12 namespace WebKit { |
| 14 | 13 |
| 15 WebVideoLayer* WebVideoLayer::create(WebVideoFrameProvider* provider) | 14 WebVideoLayer* WebVideoLayer::create(WebVideoFrameProvider* provider) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 33 { | 32 { |
| 34 return m_layer.get(); | 33 return m_layer.get(); |
| 35 } | 34 } |
| 36 | 35 |
| 37 bool WebVideoLayerImpl::active() const | 36 bool WebVideoLayerImpl::active() const |
| 38 { | 37 { |
| 39 return m_layer->layer()->layerTreeHost(); | 38 return m_layer->layer()->layerTreeHost(); |
| 40 } | 39 } |
| 41 | 40 |
| 42 } // namespace WebKit | 41 } // namespace WebKit |
| OLD | NEW |