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

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: WIP - review 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
« no previous file with comments | « no previous file | cc/layers/layer_impl.h » ('j') | cc/layers/layer_impl.h » ('J')
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 size_t num_render_surfaces_added; 121 size_t num_render_surfaces_added;
122 122
123 // Each time we generate a new render surface layer list, an ID is used to 123 // Each time we generate a new render surface layer list, an ID is used to
124 // identify it. |last_drawn_render_surface_layer_list_id| is set to the ID 124 // identify it. |last_drawn_render_surface_layer_list_id| is set to the ID
125 // that marked the render surface layer list generation which last updated 125 // that marked the render surface layer list generation which last updated
126 // these draw properties and determined that this layer will draw itself. 126 // these draw properties and determined that this layer will draw itself.
127 // If these draw properties are not a part of the render surface layer list, 127 // If these draw properties are not a part of the render surface layer list,
128 // or the layer doesn't contribute anything, then this ID will be either out 128 // or the layer doesn't contribute anything, then this ID will be either out
129 // of date or 0. 129 // of date or 0.
130 int last_drawn_render_surface_layer_list_id; 130 int last_drawn_render_surface_layer_list_id;
131
132 // Content scales for the layer, used to set scales for tiling and raster.
danakj 2014/05/16 14:49:05 how about "The scale at which content for the lay
133 // Draw transform scales.
134 float ideal_contents_scale;
danakj 2014/05/16 14:49:05 empty line between each one
135 // Max animation scale.
danakj 2014/05/16 14:49:05 "The maximum scale during the layers current anima
136 float maximum_animation_contents_scale;
137 // Page scale factor.
danakj 2014/05/16 14:49:05 "The page scale factor that is applied to the laye
138 float page_scale;
131 }; 139 };
132 140
133 } // namespace cc 141 } // namespace cc
134 142
135 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ 143 #endif // CC_LAYERS_DRAW_PROPERTIES_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.h » ('j') | cc/layers/layer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698