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

Unified Diff: cc/resources/picture_pile_impl.h

Issue 648293006: cc: turn on distance field text on animated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/picture_pile_impl.h
diff --git a/cc/resources/picture_pile_impl.h b/cc/resources/picture_pile_impl.h
index 75ee5363cfdd7dd569298825affcc388c22f4cdf..632ad8a4b4a20c6888e768660a46160d3a61b67b 100644
--- a/cc/resources/picture_pile_impl.h
+++ b/cc/resources/picture_pile_impl.h
@@ -58,6 +58,16 @@ class CC_EXPORT PicturePileImpl : public PicturePileBase {
skia::RefPtr<SkPicture> GetFlattenedPicture();
+ // If the layer had ever animated, this will be set to true.
+ bool will_be_used_for_transform_animation() const {
+ return will_be_used_for_transform_animation_;
+ }
+ void set_will_be_used_for_transform_animation(
+ bool will_be_used_for_transform_animation) {
+ will_be_used_for_transform_animation_ =
+ will_be_used_for_transform_animation;
+ }
+
struct CC_EXPORT Analysis {
Analysis();
~Analysis();
@@ -124,6 +134,8 @@ class CC_EXPORT PicturePileImpl : public PicturePileBase {
RenderingStatsInstrumentation* rendering_stats_instrumentation,
bool is_analysis) const;
+ bool will_be_used_for_transform_animation_;
+
DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
};

Powered by Google App Engine
This is Rietveld 408576698