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 <vector> |
10 | 11 |
11 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
12 #include "cc/resources/picture_pile_base.h" | 13 #include "cc/resources/picture_pile_base.h" |
13 #include "skia/ext/analysis_canvas.h" | 14 #include "skia/ext/analysis_canvas.h" |
14 #include "skia/ext/refptr.h" | 15 #include "skia/ext/refptr.h" |
15 #include "third_party/skia/include/core/SkPicture.h" | 16 #include "third_party/skia/include/core/SkPicture.h" |
16 | 17 |
17 namespace cc { | 18 namespace cc { |
18 struct RenderingStats; | 19 struct RenderingStats; |
19 | 20 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 skia::AnalysisCanvas::LazyPixelRefList lazy_pixel_refs; | 56 skia::AnalysisCanvas::LazyPixelRefList lazy_pixel_refs; |
56 }; | 57 }; |
57 | 58 |
58 void AnalyzeInRect(const gfx::Rect& content_rect, | 59 void AnalyzeInRect(const gfx::Rect& content_rect, |
59 float contents_scale, | 60 float contents_scale, |
60 Analysis* analysis); | 61 Analysis* analysis); |
61 | 62 |
62 protected: | 63 protected: |
63 friend class PicturePile; | 64 friend class PicturePile; |
64 | 65 |
65 PicturePileImpl(bool enable_lcd_text); | 66 explicit PicturePileImpl(bool enable_lcd_text); |
66 PicturePileImpl(const PicturePileBase* other, bool enable_lcd_text); | 67 PicturePileImpl(const PicturePileBase* other, bool enable_lcd_text); |
67 virtual ~PicturePileImpl(); | 68 virtual ~PicturePileImpl(); |
68 | 69 |
69 private: | 70 private: |
70 class ClonesForDrawing { | 71 class ClonesForDrawing { |
71 public: | 72 public: |
72 ClonesForDrawing(const PicturePileImpl* pile, int num_threads); | 73 ClonesForDrawing(const PicturePileImpl* pile, int num_threads); |
73 ~ClonesForDrawing(); | 74 ~ClonesForDrawing(); |
74 | 75 |
75 typedef std::vector<scoped_refptr<PicturePileImpl> > PicturePileVector; | 76 typedef std::vector<scoped_refptr<PicturePileImpl> > PicturePileVector; |
(...skipping 12 matching lines...) Expand all Loading... |
88 // instance. This member variable must be last so that other member | 89 // instance. This member variable must be last so that other member |
89 // variables have already been initialized and can be clonable. | 90 // variables have already been initialized and can be clonable. |
90 const ClonesForDrawing clones_for_drawing_; | 91 const ClonesForDrawing clones_for_drawing_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 93 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace cc | 96 } // namespace cc |
96 | 97 |
97 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 98 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
OLD | NEW |