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

Side by Side Diff: cc/resources/picture_pile_impl.h

Issue 664803003: Update from chromium a8e7c94b1b79a0948d05a1fcfff53391d22ce37a (Closed) Base URL: git@github.com:domokit/mojo.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
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/picture_pile_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 likely_to_be_used_for_transform_animation() const {
62 return likely_to_be_used_for_transform_animation_;
63 }
64 void set_likely_to_be_used_for_transform_animation() {
65 likely_to_be_used_for_transform_animation_ = true;
66 }
67
61 struct CC_EXPORT Analysis { 68 struct CC_EXPORT Analysis {
62 Analysis(); 69 Analysis();
63 ~Analysis(); 70 ~Analysis();
64 71
65 bool is_solid_color; 72 bool is_solid_color;
66 SkColor solid_color; 73 SkColor solid_color;
67 }; 74 };
68 75
69 void AnalyzeInRect(const gfx::Rect& content_rect, 76 void AnalyzeInRect(const gfx::Rect& content_rect,
70 float contents_scale, 77 float contents_scale,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 PictureRegionMap* result) const; 124 PictureRegionMap* result) const;
118 125
119 void RasterCommon( 126 void RasterCommon(
120 SkCanvas* canvas, 127 SkCanvas* canvas,
121 SkDrawPictureCallback* callback, 128 SkDrawPictureCallback* callback,
122 const gfx::Rect& canvas_rect, 129 const gfx::Rect& canvas_rect,
123 float contents_scale, 130 float contents_scale,
124 RenderingStatsInstrumentation* rendering_stats_instrumentation, 131 RenderingStatsInstrumentation* rendering_stats_instrumentation,
125 bool is_analysis) const; 132 bool is_analysis) const;
126 133
134 bool likely_to_be_used_for_transform_animation_;
135
127 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 136 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
128 }; 137 };
129 138
130 } // namespace cc 139 } // namespace cc
131 140
132 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ 141 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698