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

Unified Diff: cc/layer.h

Issue 11360093: Mark layers that can use LCD text based on layer transform and opacity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reverted whitespace change Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/draw_properties.h ('k') | cc/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer.h
diff --git a/cc/layer.h b/cc/layer.h
index 641800bc81270a9a3a7900ca7f3b72a4b8f2c285..48d6a755a5ce4581045bb95f7d04f5d51ad27798 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -140,6 +140,8 @@ public:
bool drawOpacityIsAnimating() const { return m_drawProperties.opacity_is_animating; }
bool drawTransformIsAnimating() const { return m_drawProperties.target_space_transform_is_animating; }
bool screenSpaceTransformIsAnimating() const { return m_drawProperties.screen_space_transform_is_animating; }
+ bool screenSpaceOpacityIsAnimating() const { return m_drawProperties.screen_space_opacity_is_animating; }
+ bool canUseLCDText() const { return m_drawProperties.can_use_lcd_text; }
bool isClipped() const { return m_drawProperties.is_clipped; }
const gfx::Rect& clipRect() const { return m_drawProperties.clip_rect; }
const gfx::Rect& drawableContentRect() const { return m_drawProperties.drawable_content_rect; }
@@ -193,9 +195,6 @@ public:
void setUseParentBackfaceVisibility(bool useParentBackfaceVisibility) { m_useParentBackfaceVisibility = useParentBackfaceVisibility; }
bool useParentBackfaceVisibility() const { return m_useParentBackfaceVisibility; }
- void setUseLCDText(bool);
- bool useLCDText() const { return m_useLCDText; }
-
virtual void setLayerTreeHost(LayerTreeHost*);
bool hasContributingDelegatedRenderPasses() const { return false; }
@@ -368,7 +367,6 @@ private:
bool m_masksToBounds;
bool m_contentsOpaque;
bool m_doubleSided;
- bool m_useLCDText;
bool m_preserves3D;
bool m_useParentBackfaceVisibility;
bool m_drawCheckerboardForMissingTiles;
« no previous file with comments | « cc/draw_properties.h ('k') | cc/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698