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 23 matching lines...) Expand all Loading... |
34 // It's only safe to call paint on a cloned version. | 34 // It's only safe to call paint on a cloned version. |
35 // It is assumed that contentsScale has already been applied to this canvas. | 35 // It is assumed that contentsScale has already been applied to this canvas. |
36 void Raster( | 36 void Raster( |
37 SkCanvas* canvas, | 37 SkCanvas* canvas, |
38 gfx::Rect content_rect, | 38 gfx::Rect content_rect, |
39 float contents_scale, | 39 float contents_scale, |
40 RenderingStats* stats); | 40 RenderingStats* stats); |
41 | 41 |
42 void GatherPixelRefs(const gfx::Rect&, std::list<skia::LazyPixelRef*>&); | 42 void GatherPixelRefs(const gfx::Rect&, std::list<skia::LazyPixelRef*>&); |
43 | 43 |
| 44 gfx::Rect LayerRect() const; |
| 45 |
44 private: | 46 private: |
45 friend class PicturePile; | 47 friend class PicturePile; |
46 | 48 |
47 PicturePileImpl(); | 49 PicturePileImpl(); |
48 ~PicturePileImpl(); | 50 ~PicturePileImpl(); |
49 | 51 |
50 PicturePile::Pile pile_; | 52 PicturePile::Pile pile_; |
51 | 53 |
52 typedef std::map<base::PlatformThreadId, scoped_refptr<PicturePileImpl> > | 54 typedef std::map<base::PlatformThreadId, scoped_refptr<PicturePileImpl> > |
53 CloneMap; | 55 CloneMap; |
54 CloneMap clones_; | 56 CloneMap clones_; |
55 | 57 |
56 friend class base::RefCounted<PicturePileImpl>; | 58 friend class base::RefCounted<PicturePileImpl>; |
57 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 59 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
58 }; | 60 }; |
59 | 61 |
60 } // namespace cc | 62 } // namespace cc |
61 | 63 |
62 #endif // CC_PICTURE_PILE_IMPL_H_ | 64 #endif // CC_PICTURE_PILE_IMPL_H_ |
OLD | NEW |