OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 // measured value over all runs. | 39 // measured value over all runs. |
40 void RasterDirect( | 40 void RasterDirect( |
41 SkCanvas* canvas, | 41 SkCanvas* canvas, |
42 const gfx::Rect& canvas_rect, | 42 const gfx::Rect& canvas_rect, |
43 float contents_scale, | 43 float contents_scale, |
44 RenderingStatsInstrumentation* rendering_stats_instrumentation); | 44 RenderingStatsInstrumentation* rendering_stats_instrumentation); |
45 | 45 |
46 // Similar to the above RasterDirect method, but this is a convenience method | 46 // Similar to the above RasterDirect method, but this is a convenience method |
47 // for when it is known that the raster is going to an intermediate bitmap | 47 // for when it is known that the raster is going to an intermediate bitmap |
48 // that itself will then be blended and thus that a canvas clear is required. | 48 // that itself will then be blended and thus that a canvas clear is required. |
| 49 // Note that this function may write outside the canvas_rect. |
49 void RasterToBitmap( | 50 void RasterToBitmap( |
50 SkCanvas* canvas, | 51 SkCanvas* canvas, |
51 const gfx::Rect& canvas_rect, | 52 const gfx::Rect& canvas_rect, |
52 float contents_scale, | 53 float contents_scale, |
53 RenderingStatsInstrumentation* stats_instrumentation); | 54 RenderingStatsInstrumentation* stats_instrumentation); |
54 | 55 |
55 // Called when analyzing a tile. We can use AnalysisCanvas as | 56 // Called when analyzing a tile. We can use AnalysisCanvas as |
56 // SkDrawPictureCallback, which allows us to early out from analysis. | 57 // SkDrawPictureCallback, which allows us to early out from analysis. |
57 void RasterForAnalysis( | 58 void RasterForAnalysis( |
58 skia::AnalysisCanvas* canvas, | 59 skia::AnalysisCanvas* canvas, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // instance. This member variable must be last so that other member | 148 // instance. This member variable must be last so that other member |
148 // variables have already been initialized and can be clonable. | 149 // variables have already been initialized and can be clonable. |
149 const ClonesForDrawing clones_for_drawing_; | 150 const ClonesForDrawing clones_for_drawing_; |
150 | 151 |
151 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 152 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
152 }; | 153 }; |
153 | 154 |
154 } // namespace cc | 155 } // namespace cc |
155 | 156 |
156 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 157 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
OLD | NEW |