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

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: "removed test code" 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 will_be_used_for_transform_animation() const {
reveman 2014/10/20 18:38:29 is it guaranteed that this will be used for a tran
62 return will_be_used_for_transform_animation_;
63 }
64 void set_will_be_used_for_transform_animation(
65 bool will_be_used_for_transform_animation) {
reveman 2014/10/20 18:38:29 I don't see 'false' ever being passed to this func
66 will_be_used_for_transform_animation_ =
67 will_be_used_for_transform_animation;
68 }
69
61 struct CC_EXPORT Analysis { 70 struct CC_EXPORT Analysis {
62 Analysis(); 71 Analysis();
63 ~Analysis(); 72 ~Analysis();
64 73
65 bool is_solid_color; 74 bool is_solid_color;
66 SkColor solid_color; 75 SkColor solid_color;
67 }; 76 };
68 77
69 void AnalyzeInRect(const gfx::Rect& content_rect, 78 void AnalyzeInRect(const gfx::Rect& content_rect,
70 float contents_scale, 79 float contents_scale,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 PictureRegionMap* result) const; 126 PictureRegionMap* result) const;
118 127
119 void RasterCommon( 128 void RasterCommon(
120 SkCanvas* canvas, 129 SkCanvas* canvas,
121 SkDrawPictureCallback* callback, 130 SkDrawPictureCallback* callback,
122 const gfx::Rect& canvas_rect, 131 const gfx::Rect& canvas_rect,
123 float contents_scale, 132 float contents_scale,
124 RenderingStatsInstrumentation* rendering_stats_instrumentation, 133 RenderingStatsInstrumentation* rendering_stats_instrumentation,
125 bool is_analysis) const; 134 bool is_analysis) const;
126 135
136 bool will_be_used_for_transform_animation_;
137
127 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 138 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
128 }; 139 };
129 140
130 } // namespace cc 141 } // namespace cc
131 142
132 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ 143 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698