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.
5 #include "cc/video_layer.h"
7 #include "cc/video_layer_impl.h"
11 scoped_refptr
<VideoLayer
> VideoLayer::create(
12 WebKit::WebVideoFrameProvider
* provider
,
13 const FrameUnwrapper
& unwrapper
)
15 return make_scoped_refptr(new VideoLayer(provider
, unwrapper
));
18 VideoLayer::VideoLayer(WebKit::WebVideoFrameProvider
* provider
,
19 const FrameUnwrapper
& unwrapper
)
20 : m_provider(provider
)
21 , m_unwrapper(unwrapper
)
26 VideoLayer::~VideoLayer()
30 scoped_ptr
<LayerImpl
> VideoLayer::createLayerImpl()
32 return VideoLayerImpl::create(m_layerId
, m_provider
, m_unwrapper
).PassAs
<LayerImpl
>();