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

Side by Side Diff: cc/trees/property_tree_builder.h

Issue 1097583002: cc: Commit property trees to the compositor thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win bool conversion compile fix Created 5 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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_PROPERTY_TREE_BUILDER_H_ 5 #ifndef CC_TREES_PROPERTY_TREE_BUILDER_H_
6 #define CC_TREES_PROPERTY_TREE_BUILDER_H_ 6 #define CC_TREES_PROPERTY_TREE_BUILDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/trees/layer_tree_host_common.h" 10 #include "cc/trees/layer_tree_host_common.h"
11 #include "cc/trees/property_tree.h" 11 #include "cc/trees/property_tree.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class LayerTreeHost; 15 class LayerTreeHost;
16 16
17 class PropertyTreeBuilder { 17 class PropertyTreeBuilder {
18 public: 18 public:
19 // Building an opacity tree is optional, and can be skipped by passing 19 // Building an opacity tree is optional, and can be skipped by passing
20 // in a null |opacity_tree|. 20 // in a null |opacity_tree|.
21 static void BuildPropertyTrees(Layer* root_layer, 21 static void BuildPropertyTrees(Layer* root_layer,
22 const Layer* page_scale_layer, 22 const Layer* page_scale_layer,
23 float page_scale_factor, 23 float page_scale_factor,
24 float device_scale_factor, 24 float device_scale_factor,
25 const gfx::Rect& viewport, 25 const gfx::Rect& viewport,
26 const gfx::Transform& device_transform, 26 const gfx::Transform& device_transform,
27 PropertyTrees* property_trees); 27 PropertyTrees* property_trees);
28 static void BuildPropertyTrees(LayerImpl* root_layer,
29 const LayerImpl* page_scale_layer,
30 float page_scale_factor,
31 float device_scale_factor,
32 const gfx::Rect& viewport,
33 const gfx::Transform& device_transform,
34 PropertyTrees* property_trees);
28 }; 35 };
29 36
30 } // namespace cc 37 } // namespace cc
31 38
32 #endif // CC_TREES_PROPERTY_TREE_BUILDER_H_ 39 #endif // CC_TREES_PROPERTY_TREE_BUILDER_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698