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

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

Issue 201583004: Add layerTreeBuildHelper to control layer tree in ContentViewRenderView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final comments Created 6 years, 7 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
« no previous file with comments | « content/browser/android/layer_tree_build_helper_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
OLDNEW
« no previous file with comments | « content/browser/android/layer_tree_build_helper_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698