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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "cc/base/cc_export.h" | 14 #include "cc/base/cc_export.h" |
15 #include "cc/debug/rendering_stats_instrumentation.h" | 15 #include "cc/debug/rendering_stats_instrumentation.h" |
16 #include "cc/resources/picture_pile.h" | 16 #include "cc/resources/picture_pile.h" |
17 #include "cc/resources/raster_source.h" | 17 #include "cc/resources/raster_source.h" |
18 #include "skia/ext/analysis_canvas.h" | 18 #include "skia/ext/analysis_canvas.h" |
19 #include "skia/ext/refptr.h" | 19 #include "skia/ext/refptr.h" |
20 #include "third_party/skia/include/core/SkPicture.h" | 20 |
| 21 class SkCanvas; |
| 22 class SkPicture; |
| 23 class SkPixelRef; |
| 24 |
| 25 namespace gfx { |
| 26 class Rect; |
| 27 } |
21 | 28 |
22 namespace cc { | 29 namespace cc { |
23 | 30 |
24 class CC_EXPORT PicturePileImpl : public RasterSource { | 31 class CC_EXPORT PicturePileImpl : public RasterSource { |
25 public: | 32 public: |
26 static scoped_refptr<PicturePileImpl> Create(); | 33 static scoped_refptr<PicturePileImpl> Create(); |
27 static scoped_refptr<PicturePileImpl> CreateFromPicturePile( | 34 static scoped_refptr<PicturePileImpl> CreateFromPicturePile( |
28 const PicturePile* other); | 35 const PicturePile* other); |
29 | 36 |
30 // RasterSource overrides. See RasterSource header for full description. | 37 // RasterSource overrides. See RasterSource header for full description. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 gfx::Rect PaddedRect(const PictureMapKey& key) const; | 147 gfx::Rect PaddedRect(const PictureMapKey& key) const; |
141 | 148 |
142 bool should_attempt_to_use_distance_field_text_; | 149 bool should_attempt_to_use_distance_field_text_; |
143 | 150 |
144 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 151 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
145 }; | 152 }; |
146 | 153 |
147 } // namespace cc | 154 } // namespace cc |
148 | 155 |
149 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 156 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
OLD | NEW |