| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // SkDrawPictureCallback, which allows us to early out from analysis. | 133 // SkDrawPictureCallback, which allows us to early out from analysis. |
| 134 void RasterForAnalysis(skia::AnalysisCanvas* canvas, | 134 void RasterForAnalysis(skia::AnalysisCanvas* canvas, |
| 135 const gfx::Rect& canvas_rect, | 135 const gfx::Rect& canvas_rect, |
| 136 float contents_scale) const; | 136 float contents_scale) const; |
| 137 | 137 |
| 138 void CoalesceRasters(const gfx::Rect& canvas_rect, | 138 void CoalesceRasters(const gfx::Rect& canvas_rect, |
| 139 const gfx::Rect& content_rect, | 139 const gfx::Rect& content_rect, |
| 140 float contents_scale, | 140 float contents_scale, |
| 141 PictureRegionMap* result) const; | 141 PictureRegionMap* result) const; |
| 142 | 142 |
| 143 void RasterCommon( | 143 void RasterCommon(SkCanvas* canvas, |
| 144 SkCanvas* canvas, | 144 SkDrawPictureCallback* callback, |
| 145 SkDrawPictureCallback* callback, | 145 const gfx::Rect& canvas_rect, |
| 146 const gfx::Rect& canvas_rect, | 146 float contents_scale) const; |
| 147 float contents_scale, | |
| 148 bool is_analysis) const; | |
| 149 | 147 |
| 150 // An internal CanRaster check that goes to the picture_map rather than | 148 // An internal CanRaster check that goes to the picture_map rather than |
| 151 // using the recorded_viewport hint. | 149 // using the recorded_viewport hint. |
| 152 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; | 150 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; |
| 153 | 151 |
| 154 gfx::Rect PaddedRect(const PictureMapKey& key) const; | 152 gfx::Rect PaddedRect(const PictureMapKey& key) const; |
| 155 | 153 |
| 156 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 154 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
| 157 }; | 155 }; |
| 158 | 156 |
| 159 } // namespace cc | 157 } // namespace cc |
| 160 | 158 |
| 161 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 159 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
| OLD | NEW |