// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cc/delegated_renderer_layer.h" #include "cc/delegated_renderer_layer_impl.h" namespace cc { scoped_refptr DelegatedRendererLayer::create() { return scoped_refptr(new DelegatedRendererLayer()); } DelegatedRendererLayer::DelegatedRendererLayer() : Layer() { setIsDrawable(true); setMasksToBounds(true); } DelegatedRendererLayer::~DelegatedRendererLayer() { } scoped_ptr DelegatedRendererLayer::createLayerImpl(LayerTreeImpl* treeImpl) { return DelegatedRendererLayerImpl::create(treeImpl, m_layerId).PassAs(); } } // namespace cc