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