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

Side by Side 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: 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 unified diff | Download patch
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_RESOURCES_PICTURE_PILE_IMPL_H_ 5 #ifndef CC_RESOURCES_PICTURE_PILE_IMPL_H_
6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_ 6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Called when analyzing a tile. We can use AnalysisCanvas as 51 // Called when analyzing a tile. We can use AnalysisCanvas as
52 // SkDrawPictureCallback, which allows us to early out from analysis. 52 // SkDrawPictureCallback, which allows us to early out from analysis.
53 void RasterForAnalysis( 53 void RasterForAnalysis(
54 skia::AnalysisCanvas* canvas, 54 skia::AnalysisCanvas* canvas,
55 const gfx::Rect& canvas_rect, 55 const gfx::Rect& canvas_rect,
56 float contents_scale, 56 float contents_scale,
57 RenderingStatsInstrumentation* stats_instrumentation) const; 57 RenderingStatsInstrumentation* stats_instrumentation) const;
58 58
59 skia::RefPtr<SkPicture> GetFlattenedPicture(); 59 skia::RefPtr<SkPicture> GetFlattenedPicture();
60 60
61 bool has_transform_animated() const { return has_transform_animated_; }
reveman 2014/10/15 17:34:09 "transform animated" is confusing here. what trans
62 void set_has_transform_animated(bool has_transform_animated) {
63 has_transform_animated_ = has_transform_animated;
64 }
65
61 struct CC_EXPORT Analysis { 66 struct CC_EXPORT Analysis {
62 Analysis(); 67 Analysis();
63 ~Analysis(); 68 ~Analysis();
64 69
65 bool is_solid_color; 70 bool is_solid_color;
66 SkColor solid_color; 71 SkColor solid_color;
67 }; 72 };
68 73
69 void AnalyzeInRect(const gfx::Rect& content_rect, 74 void AnalyzeInRect(const gfx::Rect& content_rect,
70 float contents_scale, 75 float contents_scale,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 PictureRegionMap* result) const; 122 PictureRegionMap* result) const;
118 123
119 void RasterCommon( 124 void RasterCommon(
120 SkCanvas* canvas, 125 SkCanvas* canvas,
121 SkDrawPictureCallback* callback, 126 SkDrawPictureCallback* callback,
122 const gfx::Rect& canvas_rect, 127 const gfx::Rect& canvas_rect,
123 float contents_scale, 128 float contents_scale,
124 RenderingStatsInstrumentation* rendering_stats_instrumentation, 129 RenderingStatsInstrumentation* rendering_stats_instrumentation,
125 bool is_analysis) const; 130 bool is_analysis) const;
126 131
132 bool has_transform_animated_;
133
127 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 134 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
128 }; 135 };
129 136
130 } // namespace cc 137 } // namespace cc
131 138
132 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ 139 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698