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_PICTURE_PILE_IMPL_H_ | 5 #ifndef CC_PICTURE_PILE_IMPL_H_ |
6 #define CC_PICTURE_PILE_IMPL_H_ | 6 #define CC_PICTURE_PILE_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 PicturePileImpl* GetCloneForDrawingOnThread(base::Thread*); | 25 PicturePileImpl* GetCloneForDrawingOnThread(base::Thread*); |
26 | 26 |
27 // Clone a paint-safe version of this picture. | 27 // Clone a paint-safe version of this picture. |
28 scoped_refptr<PicturePileImpl> CloneForDrawing() const; | 28 scoped_refptr<PicturePileImpl> CloneForDrawing() const; |
29 | 29 |
30 // Raster a subrect of this PicturePileImpl into the given canvas. | 30 // Raster a subrect of this PicturePileImpl into the given canvas. |
31 // It's only safe to call paint on a cloned version. | 31 // It's only safe to call paint on a cloned version. |
32 // It is assumed that contentsScale has already been applied to this canvas. | 32 // It is assumed that contentsScale has already been applied to this canvas. |
33 void Raster( | 33 void Raster( |
34 SkCanvas* canvas, | 34 SkCanvas* canvas, |
35 gfx::Rect content_rect, | 35 gfx::Rect canvas_rect, |
36 float contents_scale, | 36 float contents_scale, |
37 int64* total_pixels_rasterized); | 37 int64* total_pixels_rasterized); |
38 | 38 |
39 void GatherPixelRefs( | 39 void GatherPixelRefs( |
40 gfx::Rect content_rect, | 40 gfx::Rect content_rect, |
41 float contents_scale, | 41 float contents_scale, |
42 std::list<skia::LazyPixelRef*>& pixel_refs); | 42 std::list<skia::LazyPixelRef*>& pixel_refs); |
43 | 43 |
44 void PushPropertiesTo(PicturePileImpl* other); | 44 void PushPropertiesTo(PicturePileImpl* other); |
45 | 45 |
(...skipping 16 matching lines...) Expand all Loading... |
62 CloneMap clones_; | 62 CloneMap clones_; |
63 | 63 |
64 int slow_down_raster_scale_factor_for_debug_; | 64 int slow_down_raster_scale_factor_for_debug_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 66 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace cc | 69 } // namespace cc |
70 | 70 |
71 #endif // CC_PICTURE_PILE_IMPL_H_ | 71 #endif // CC_PICTURE_PILE_IMPL_H_ |
OLD | NEW |