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