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

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

Issue 953093002: cc: Derive draw opacity from property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make opacity tree-building optional Created 5 years, 10 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/layers/layer.cc ('k') | cc/trees/draw_property_utils.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_DRAW_PROPERTY_UTILS_H_ 5 #ifndef CC_TREES_DRAW_PROPERTY_UTILS_H_
6 #define CC_TREES_DRAW_PROPERTY_UTILS_H_ 6 #define CC_TREES_DRAW_PROPERTY_UTILS_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 class Rect; 11 class Rect;
12 class Transform; 12 class Transform;
13 } // namespace gfx 13 } // namespace gfx
14 14
15 namespace cc { 15 namespace cc {
16 16
17 class ClipTree; 17 class ClipTree;
18 class Layer; 18 class Layer;
19 class OpacityTree;
19 class TransformTree; 20 class TransformTree;
20 21
21 // Computes combined clips for every node in |clip_tree|. This function requires 22 // Computes combined clips for every node in |clip_tree|. This function requires
22 // that |transform_tree| has been updated via |ComputeTransforms|. 23 // that |transform_tree| has been updated via |ComputeTransforms|.
23 // TODO(vollick): ComputeClips and ComputeTransforms will eventually need to be 24 // TODO(vollick): ComputeClips and ComputeTransforms will eventually need to be
24 // done on both threads. 25 // done on both threads.
25 void CC_EXPORT 26 void CC_EXPORT
26 ComputeClips(ClipTree* clip_tree, const TransformTree& transform_tree); 27 ComputeClips(ClipTree* clip_tree, const TransformTree& transform_tree);
27 28
28 // Computes combined (screen space) transforms for every node in the transform 29 // Computes combined (screen space) transforms for every node in the transform
29 // tree. This must be done prior to calling |ComputeClips|. 30 // tree. This must be done prior to calling |ComputeClips|.
30 void CC_EXPORT ComputeTransforms(TransformTree* transform_tree); 31 void CC_EXPORT ComputeTransforms(TransformTree* transform_tree);
31 32
32 // Computes the visible content rect for every layer under |root_layer|. The 33 // Computes the visible content rect for every layer under |root_layer|. The
33 // visible content rect is the clipped content space rect that will be used for 34 // visible content rect is the clipped content space rect that will be used for
34 // recording. 35 // recording.
35 void CC_EXPORT 36 void CC_EXPORT
36 ComputeVisibleRectsUsingPropertyTrees(Layer* root_layer, 37 ComputeVisibleRectsUsingPropertyTrees(Layer* root_layer,
37 const Layer* page_scale_layer, 38 const Layer* page_scale_layer,
38 float page_scale_factor, 39 float page_scale_factor,
39 float device_scale_factor, 40 float device_scale_factor,
40 const gfx::Rect& viewport, 41 const gfx::Rect& viewport,
41 const gfx::Transform& device_transform, 42 const gfx::Transform& device_transform,
42 TransformTree* transform_tree, 43 TransformTree* transform_tree,
43 ClipTree* clip_tree); 44 ClipTree* clip_tree,
45 OpacityTree* opacity_tree);
44 46
45 } // namespace cc 47 } // namespace cc
46 48
47 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ 49 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698