summaryrefslogtreecommitdiffstats
path: root/cc/draw_properties.h
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-13 09:18:59 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-13 09:18:59 +0000
commit10aabcc348711dc3544ceb20773ddd2fb6ceb773 (patch)
tree0b94311df1dfca512e6775273a39dfb341b7c260 /cc/draw_properties.h
parent27036a1728b42e82bb461f4c54270c29e7a181fc (diff)
downloadchromium_src-10aabcc348711dc3544ceb20773ddd2fb6ceb773.zip
chromium_src-10aabcc348711dc3544ceb20773ddd2fb6ceb773.tar.gz
chromium_src-10aabcc348711dc3544ceb20773ddd2fb6ceb773.tar.bz2
Mark layers that can use LCD text based on layer transform and opacity.
- Text AA settings are not adjusted during animation to avoid repaints. - Renamed Layer::useLCDText to Layer::canUseLCDText. BUG=100666 Review URL: https://chromiumcodereview.appspot.com/11360093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172842 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/draw_properties.h')
-rw-r--r--cc/draw_properties.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cc/draw_properties.h b/cc/draw_properties.h
index e1c8165..3895ef0 100644
--- a/cc/draw_properties.h
+++ b/cc/draw_properties.h
@@ -18,8 +18,10 @@ struct CC_EXPORT DrawProperties {
DrawProperties()
: opacity(0)
, opacity_is_animating(false)
+ , screen_space_opacity_is_animating(false)
, target_space_transform_is_animating(false)
, screen_space_transform_is_animating(false)
+ , can_use_lcd_text(false)
, is_clipped(false)
, render_target(0)
, num_descendants_that_draw_content(0)
@@ -43,9 +45,13 @@ struct CC_EXPORT DrawProperties {
// animating, the main thread may not have the same values that are used
// to draw.
bool opacity_is_animating;
+ bool screen_space_opacity_is_animating;
bool target_space_transform_is_animating;
bool screen_space_transform_is_animating;
+ // True if the layer can use LCD text.
+ bool can_use_lcd_text;
+
// True if the layer needs to be clipped by clipRect.
bool is_clipped;