Reenable NullOpenerRedirectForksProcess, as the offending patch has been reverted
[chromium-blink-merge.git] / cc / video_layer.cc
blobe8a9fad462be13c461fcbcf2add679bbddc60831
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(
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)
23 DCHECK(m_provider);
26 VideoLayer::~VideoLayer()
30 scoped_ptr<LayerImpl> VideoLayer::createLayerImpl()
32 return VideoLayerImpl::create(m_layerId, m_provider, m_unwrapper).PassAs<LayerImpl>();
35 } // namespace cc