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/layers/draw_properties.h

Issue 2105673003: cc: Compute animation scale on demand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit changes Created 4 years, 5 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/draw_properties.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 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // the layer's coordinate space. 49 // the layer's coordinate space.
50 gfx::Rect visible_layer_rect; 50 gfx::Rect visible_layer_rect;
51 51
52 // In target surface space, the rect that encloses the clipped, drawable 52 // In target surface space, the rect that encloses the clipped, drawable
53 // content of the layer. 53 // content of the layer.
54 gfx::Rect drawable_content_rect; 54 gfx::Rect drawable_content_rect;
55 55
56 // In target surface space, the original rect that clipped this layer. This 56 // In target surface space, the original rect that clipped this layer. This
57 // value is used to avoid unnecessarily changing GL scissor state. 57 // value is used to avoid unnecessarily changing GL scissor state.
58 gfx::Rect clip_rect; 58 gfx::Rect clip_rect;
59
60 // The maximum scale during the layers current animation at which content
61 // should be rastered at to be crisp.
62 float maximum_animation_contents_scale;
63
64 // The scale during the layer animation start at which content should be
65 // rastered at to be crisp.
66 float starting_animation_contents_scale;
67 }; 59 };
68 60
69 } // namespace cc 61 } // namespace cc
70 62
71 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ 63 #endif // CC_LAYERS_DRAW_PROPERTIES_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/draw_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698