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(VideoFrameProvider
* provider
)
13 return make_scoped_refptr(new VideoLayer(provider
));
16 VideoLayer::VideoLayer(VideoFrameProvider
* provider
)
17 : m_provider(provider
)
22 VideoLayer::~VideoLayer()
26 scoped_ptr
<LayerImpl
> VideoLayer::createLayerImpl(LayerTreeImpl
* treeImpl
)
28 return VideoLayerImpl::create(treeImpl
, m_layerId
, m_provider
).PassAs
<LayerImpl
>();