Mailbox support for texture layers.
[chromium-blink-merge.git] / cc / video_layer.cc
blob886a3130b14b447cc979bbb08094c96796db73de
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"
9 namespace cc {
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)
19 DCHECK(m_provider);
22 VideoLayer::~VideoLayer()
26 scoped_ptr<LayerImpl> VideoLayer::createLayerImpl(LayerTreeImpl* treeImpl)
28 return VideoLayerImpl::create(treeImpl, m_layerId, m_provider).PassAs<LayerImpl>();
31 } // namespace cc