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

Side by Side Diff: cc/layers/draw_properties.h

Issue 271533011: cc: Move tiling management out of draw properties calculation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to TOT Created 6 years, 6 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 | « no previous file | cc/layers/picture_image_layer_impl.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_LAYERS_DRAW_PROPERTIES_H_ 5 #ifndef CC_LAYERS_DRAW_PROPERTIES_H_
6 #define CC_LAYERS_DRAW_PROPERTIES_H_ 6 #define CC_LAYERS_DRAW_PROPERTIES_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 #include "ui/gfx/transform.h" 10 #include "ui/gfx/transform.h"
(...skipping 18 matching lines...) Expand all
29 num_descendants_that_draw_content(0), 29 num_descendants_that_draw_content(0),
30 num_unclipped_descendants(0), 30 num_unclipped_descendants(0),
31 layer_or_descendant_has_copy_request(false), 31 layer_or_descendant_has_copy_request(false),
32 layer_or_descendant_has_input_handler(false), 32 layer_or_descendant_has_input_handler(false),
33 has_child_with_a_scroll_parent(false), 33 has_child_with_a_scroll_parent(false),
34 sorted_for_recursion(false), 34 sorted_for_recursion(false),
35 index_of_first_descendants_addition(0), 35 index_of_first_descendants_addition(0),
36 num_descendants_added(0), 36 num_descendants_added(0),
37 index_of_first_render_surface_layer_list_addition(0), 37 index_of_first_render_surface_layer_list_addition(0),
38 num_render_surfaces_added(0), 38 num_render_surfaces_added(0),
39 last_drawn_render_surface_layer_list_id(0) {} 39 last_drawn_render_surface_layer_list_id(0),
40 ideal_contents_scale(0.f),
41 maximum_animation_contents_scale(0.f),
42 page_scale_factor(0.f),
43 device_scale_factor(0.f) {}
40 44
41 // Transforms objects from content space to target surface space, where 45 // Transforms objects from content space to target surface space, where
42 // this layer would be drawn. 46 // this layer would be drawn.
43 gfx::Transform target_space_transform; 47 gfx::Transform target_space_transform;
44 48
45 // Transforms objects from content space to screen space (viewport space). 49 // Transforms objects from content space to screen space (viewport space).
46 gfx::Transform screen_space_transform; 50 gfx::Transform screen_space_transform;
47 51
48 // DrawProperties::opacity may be different than LayerType::opacity, 52 // DrawProperties::opacity may be different than LayerType::opacity,
49 // particularly in the case when a RenderSurface re-parents the layer's 53 // particularly in the case when a RenderSurface re-parents the layer's
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 size_t num_render_surfaces_added; 129 size_t num_render_surfaces_added;
126 130
127 // Each time we generate a new render surface layer list, an ID is used to 131 // Each time we generate a new render surface layer list, an ID is used to
128 // identify it. |last_drawn_render_surface_layer_list_id| is set to the ID 132 // identify it. |last_drawn_render_surface_layer_list_id| is set to the ID
129 // that marked the render surface layer list generation which last updated 133 // that marked the render surface layer list generation which last updated
130 // these draw properties and determined that this layer will draw itself. 134 // these draw properties and determined that this layer will draw itself.
131 // If these draw properties are not a part of the render surface layer list, 135 // If these draw properties are not a part of the render surface layer list,
132 // or the layer doesn't contribute anything, then this ID will be either out 136 // or the layer doesn't contribute anything, then this ID will be either out
133 // of date or 0. 137 // of date or 0.
134 int last_drawn_render_surface_layer_list_id; 138 int last_drawn_render_surface_layer_list_id;
139
140 // The scale at which content for the layer should be rastered in order to be
141 // perfectly crisp.
142 float ideal_contents_scale;
143
144 // The maximum scale during the layers current animation at which content
145 // should be rastered at to be crisp.
146 float maximum_animation_contents_scale;
147
148 // The page scale factor that is applied to the layer. Since some layers may
149 // have page scale applied and others not, this may differ between layers.
150 float page_scale_factor;
151
152 // The device scale factor that is applied to the layer.
153 float device_scale_factor;
135 }; 154 };
136 155
137 } // namespace cc 156 } // namespace cc
138 157
139 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ 158 #endif // CC_LAYERS_DRAW_PROPERTIES_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_image_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698