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 #include <vector> |
11 | 11 |
12 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
13 #include "cc/resources/picture_pile_base.h" | 13 #include "cc/resources/picture_pile_base.h" |
14 #include "skia/ext/analysis_canvas.h" | 14 #include "skia/ext/analysis_canvas.h" |
15 #include "skia/ext/refptr.h" | 15 #include "skia/ext/refptr.h" |
16 #include "third_party/skia/include/core/SkPicture.h" | 16 #include "third_party/skia/include/core/SkPicture.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 struct RenderingStats; | |
20 | 19 |
21 class CC_EXPORT PicturePileImpl : public PicturePileBase { | 20 class CC_EXPORT PicturePileImpl : public PicturePileBase { |
22 public: | 21 public: |
23 static scoped_refptr<PicturePileImpl> Create(bool enable_lcd_text); | 22 static scoped_refptr<PicturePileImpl> Create(bool enable_lcd_text); |
24 static scoped_refptr<PicturePileImpl> CreateFromOther( | 23 static scoped_refptr<PicturePileImpl> CreateFromOther( |
25 const PicturePileBase* other, | 24 const PicturePileBase* other, |
26 bool enable_lcd_text); | 25 bool enable_lcd_text); |
27 | 26 |
28 // Get paint-safe version of this picture for a specific thread. | 27 // Get paint-safe version of this picture for a specific thread. |
29 PicturePileImpl* GetCloneForDrawingOnThread(unsigned thread_index) const; | 28 PicturePileImpl* GetCloneForDrawingOnThread(unsigned thread_index) const; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // instance. This member variable must be last so that other member | 88 // instance. This member variable must be last so that other member |
90 // variables have already been initialized and can be clonable. | 89 // variables have already been initialized and can be clonable. |
91 const ClonesForDrawing clones_for_drawing_; | 90 const ClonesForDrawing clones_for_drawing_; |
92 | 91 |
93 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 92 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
94 }; | 93 }; |
95 | 94 |
96 } // namespace cc | 95 } // namespace cc |
97 | 96 |
98 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 97 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
OLD | NEW |