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.h" | |
6 | |
7 #include "cc/layers/layer.h" | |
8 #include "cc/layers/solid_color_layer.h" | |
9 #include "content/browser/android/content_view_core_impl.h" | |
10 | |
11 | |
12 namespace content { | |
13 | |
14 | |
15 LayerTreeBuildHelper::LayerTreeBuildHelper() | |
16 : root_layer_(cc::SolidColorLayer::Create()) { | |
17 root_layer_->SetIsDrawable(true); | |
18 root_layer_->SetBackgroundColor(SK_ColorWHITE); | |
19 } | |
20 | |
21 LayerTreeBuildHelper::~LayerTreeBuildHelper() { | |
22 } | |
23 | |
24 cc::Layer* LayerTreeBuildHelper::GetLayerTree( | |
25 ContentViewCoreImpl* content_view) { | |
Yaron
2014/04/10 01:26:09
Does this need ContentViewCoreImpl? Seems like ups
Yusuf
2014/04/23 00:16:14
Done.
| |
26 if (content_view) | |
27 root_layer_ = content_view->GetLayer(); | |
Yaron
2014/04/10 01:26:09
I don't know if this is a real issue but if you ar
Yusuf
2014/04/23 00:16:14
Done.
| |
28 return root_layer_.get(); | |
29 } | |
30 } // namespace content | |
OLD | NEW |