1 // Copyright 2012 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/delegated_renderer_layer.h"
7 #include "cc/delegated_renderer_layer_impl.h"
11 scoped_refptr
<DelegatedRendererLayer
> DelegatedRendererLayer::create()
13 return scoped_refptr
<DelegatedRendererLayer
>(new DelegatedRendererLayer());
16 DelegatedRendererLayer::DelegatedRendererLayer()
20 setMasksToBounds(true);
23 DelegatedRendererLayer::~DelegatedRendererLayer()
27 scoped_ptr
<LayerImpl
> DelegatedRendererLayer::createLayerImpl(LayerTreeHostImpl
* hostImpl
)
29 return DelegatedRendererLayerImpl::create(hostImpl
, m_layerId
).PassAs
<LayerImpl
>();