OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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. | |
4 | |
5 #include "content/browser/android/layer_tree_build_helper_impl.h" | |
6 | |
7 #include "cc/layers/layer.h" | |
8 #include "cc/layers/solid_color_layer.h" | |
9 | |
10 namespace content { | |
11 | |
12 LayerTreeBuildHelperImpl::LayerTreeBuildHelperImpl() { | |
13 root_layer_ = cc::SolidColorLayer::Create(); | |
14 root_layer_->SetIsDrawable(true); | |
15 root_layer_->SetBackgroundColor(SK_ColorWHITE); | |
no sievers
2014/05/05 20:04:00
This layer does not do anything since the bounds a
| |
16 } | |
17 | |
18 LayerTreeBuildHelperImpl::~LayerTreeBuildHelperImpl() { | |
19 } | |
20 | |
21 scoped_refptr<cc::Layer> LayerTreeBuildHelperImpl::GetLayerTree( | |
22 scoped_refptr<cc::Layer> content_root_layer) { | |
23 if (content_root_layer) | |
24 root_layer_ = content_root_layer; | |
25 else | |
26 root_layer_ = cc::Layer::Create(); | |
27 | |
28 return root_layer_; | |
29 } | |
30 } // namespace content | |
OLD | NEW |