Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: content/browser/android/layer_tree_build_helper.cc

Issue 201583004: Add layerTreeBuildHelper to control layer tree in ContentViewRenderView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved setting up layer tree to a helper class Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698