| 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_base.h" | 16 #include "cc/resources/picture_pile_base.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 #include "third_party/skia/include/core/SkPicture.h" |
| 21 | 21 |
| 22 class SkCanvas; |
| 23 class SkPicture; |
| 24 class SkPixelRef; |
| 25 |
| 26 namespace gfx { |
| 27 class Rect; |
| 28 } |
| 29 |
| 22 namespace cc { | 30 namespace cc { |
| 23 | 31 |
| 24 // TODO(vmpstr): Clean up PicturePileBase and make it a member. | 32 // TODO(vmpstr): Clean up PicturePileBase and make it a member. |
| 25 class CC_EXPORT PicturePileImpl : public RasterSource { | 33 class CC_EXPORT PicturePileImpl : public RasterSource { |
| 26 public: | 34 public: |
| 27 static scoped_refptr<PicturePileImpl> Create(); | 35 static scoped_refptr<PicturePileImpl> Create(); |
| 28 static scoped_refptr<PicturePileImpl> CreateFromOther( | 36 static scoped_refptr<PicturePileImpl> CreateFromOther( |
| 29 const PicturePileBase* other); | 37 const PicturePileBase* other); |
| 30 | 38 |
| 31 // RasterSource overrides. See RasterSource header for full description. | 39 // RasterSource overrides. See RasterSource header for full description. |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 gfx::Rect PaddedRect(const PictureMapKey& key) const; | 157 gfx::Rect PaddedRect(const PictureMapKey& key) const; |
| 150 | 158 |
| 151 bool likely_to_be_used_for_transform_animation_; | 159 bool likely_to_be_used_for_transform_animation_; |
| 152 | 160 |
| 153 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 161 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
| 154 }; | 162 }; |
| 155 | 163 |
| 156 } // namespace cc | 164 } // namespace cc |
| 157 | 165 |
| 158 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 166 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
| OLD | NEW |