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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 }; | 99 }; |
100 | 100 |
101 void DidBeginTracing(); | 101 void DidBeginTracing(); |
102 | 102 |
103 protected: | 103 protected: |
104 friend class PicturePile; | 104 friend class PicturePile; |
105 friend class PixelRefIterator; | 105 friend class PixelRefIterator; |
106 | 106 |
107 PicturePileImpl(); | 107 PicturePileImpl(); |
108 explicit PicturePileImpl(const PicturePileBase* other); | 108 explicit PicturePileImpl(const PicturePileBase* other); |
109 virtual ~PicturePileImpl(); | 109 ~PicturePileImpl() override; |
110 | 110 |
111 private: | 111 private: |
112 typedef std::map<const Picture*, Region> PictureRegionMap; | 112 typedef std::map<const Picture*, Region> PictureRegionMap; |
113 | 113 |
114 void CoalesceRasters(const gfx::Rect& canvas_rect, | 114 void CoalesceRasters(const gfx::Rect& canvas_rect, |
115 const gfx::Rect& content_rect, | 115 const gfx::Rect& content_rect, |
116 float contents_scale, | 116 float contents_scale, |
117 PictureRegionMap* result) const; | 117 PictureRegionMap* result) const; |
118 | 118 |
119 void RasterCommon( | 119 void RasterCommon( |
120 SkCanvas* canvas, | 120 SkCanvas* canvas, |
121 SkDrawPictureCallback* callback, | 121 SkDrawPictureCallback* callback, |
122 const gfx::Rect& canvas_rect, | 122 const gfx::Rect& canvas_rect, |
123 float contents_scale, | 123 float contents_scale, |
124 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 124 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
125 bool is_analysis) const; | 125 bool is_analysis) const; |
126 | 126 |
127 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 127 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
128 }; | 128 }; |
129 | 129 |
130 } // namespace cc | 130 } // namespace cc |
131 | 131 |
132 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 132 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
OLD | NEW |