| 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_PLAYBACK_PICTURE_PILE_IMPL_H_ | 5 #ifndef CC_PLAYBACK_PICTURE_PILE_IMPL_H_ |
| 6 #define CC_PLAYBACK_PICTURE_PILE_IMPL_H_ | 6 #define CC_PLAYBACK_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 21 matching lines...) Expand all Loading... |
| 32 public: | 32 public: |
| 33 static scoped_refptr<PicturePileImpl> CreateFromPicturePile( | 33 static scoped_refptr<PicturePileImpl> CreateFromPicturePile( |
| 34 const PicturePile* other, | 34 const PicturePile* other, |
| 35 bool can_use_lcd_text); | 35 bool can_use_lcd_text); |
| 36 | 36 |
| 37 // RasterSource overrides. See RasterSource header for full description. | 37 // RasterSource overrides. See RasterSource header for full description. |
| 38 // When slow-down-raster-scale-factor is set to a value greater than 1, the | 38 // When slow-down-raster-scale-factor is set to a value greater than 1, the |
| 39 // reported rasterize time (in stats_instrumentation) is the minimum measured | 39 // reported rasterize time (in stats_instrumentation) is the minimum measured |
| 40 // value over all runs. | 40 // value over all runs. |
| 41 void PlaybackToCanvas(SkCanvas* canvas, | 41 void PlaybackToCanvas(SkCanvas* canvas, |
| 42 const gfx::Rect& canvas_rect, | 42 const gfx::Rect& canvas_bitmap_rect, |
| 43 const gfx::Rect& canvas_playback_rect, |
| 43 float contents_scale) const override; | 44 float contents_scale) const override; |
| 44 void PlaybackToSharedCanvas(SkCanvas* canvas, | 45 void PlaybackToSharedCanvas(SkCanvas* canvas, |
| 45 const gfx::Rect& canvas_rect, | 46 const gfx::Rect& canvas_rect, |
| 46 float contents_scale) const override; | 47 float contents_scale) const override; |
| 47 void PerformSolidColorAnalysis( | 48 void PerformSolidColorAnalysis( |
| 48 const gfx::Rect& content_rect, | 49 const gfx::Rect& content_rect, |
| 49 float contents_scale, | 50 float contents_scale, |
| 50 RasterSource::SolidColorAnalysis* analysis) const override; | 51 RasterSource::SolidColorAnalysis* analysis) const override; |
| 51 void GatherPixelRefs(const gfx::Rect& content_rect, | 52 void GatherPixelRefs(const gfx::Rect& content_rect, |
| 52 float contents_scale, | 53 float contents_scale, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; | 151 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; |
| 151 | 152 |
| 152 gfx::Rect PaddedRect(const PictureMapKey& key) const; | 153 gfx::Rect PaddedRect(const PictureMapKey& key) const; |
| 153 | 154 |
| 154 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 155 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 } // namespace cc | 158 } // namespace cc |
| 158 | 159 |
| 159 #endif // CC_PLAYBACK_PICTURE_PILE_IMPL_H_ | 160 #endif // CC_PLAYBACK_PICTURE_PILE_IMPL_H_ |
| OLD | NEW |