blob: 721630dcc01e3f9982e2f41186a7444235c647be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// 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 "config.h"
#include "DelegatedRendererLayerChromium.h"
#include "CCDelegatedRendererLayerImpl.h"
namespace cc {
scoped_refptr<DelegatedRendererLayerChromium> DelegatedRendererLayerChromium::create()
{
return scoped_refptr<DelegatedRendererLayerChromium>(new DelegatedRendererLayerChromium());
}
DelegatedRendererLayerChromium::DelegatedRendererLayerChromium()
: LayerChromium()
{
setIsDrawable(true);
setMasksToBounds(true);
}
DelegatedRendererLayerChromium::~DelegatedRendererLayerChromium()
{
}
scoped_ptr<CCLayerImpl> DelegatedRendererLayerChromium::createCCLayerImpl()
{
return CCDelegatedRendererLayerImpl::create(m_layerId).PassAs<CCLayerImpl>();
}
}
|