| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BASE_H_ | 5 #ifndef CC_RESOURCES_PICTURE_PILE_BASE_H_ |
| 6 #define CC_RESOURCES_PICTURE_PILE_BASE_H_ | 6 #define CC_RESOURCES_PICTURE_PILE_BASE_H_ |
| 7 | 7 |
| 8 #include <bitset> | 8 #include <bitset> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 bool is_mask() const { return is_mask_; } | 58 bool is_mask() const { return is_mask_; } |
| 59 | 59 |
| 60 static void ComputeTileGridInfo(const gfx::Size& tile_grid_size, | 60 static void ComputeTileGridInfo(const gfx::Size& tile_grid_size, |
| 61 SkTileGridFactory::TileGridInfo* info); | 61 SkTileGridFactory::TileGridInfo* info); |
| 62 | 62 |
| 63 void SetTileGridSize(const gfx::Size& tile_grid_size); | 63 void SetTileGridSize(const gfx::Size& tile_grid_size); |
| 64 TilingData& tiling() { return tiling_; } | 64 TilingData& tiling() { return tiling_; } |
| 65 | 65 |
| 66 void AsValueInto(base::debug::TracedValue* array) const; | 66 void AsValueInto(base::debug::TracedValue* array) const; |
| 67 | 67 |
| 68 SkTileGridFactory::TileGridInfo GetTileGridInfoForTesting() const { |
| 69 return tile_grid_info_; |
| 70 } |
| 71 |
| 68 protected: | 72 protected: |
| 69 class CC_EXPORT PictureInfo { | 73 class CC_EXPORT PictureInfo { |
| 70 public: | 74 public: |
| 71 enum { | 75 enum { |
| 72 INVALIDATION_FRAMES_TRACKED = 32 | 76 INVALIDATION_FRAMES_TRACKED = 32 |
| 73 }; | 77 }; |
| 74 | 78 |
| 75 PictureInfo(); | 79 PictureInfo(); |
| 76 ~PictureInfo(); | 80 ~PictureInfo(); |
| 77 | 81 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 private: | 136 private: |
| 133 void SetBufferPixels(int buffer_pixels); | 137 void SetBufferPixels(int buffer_pixels); |
| 134 | 138 |
| 135 friend class base::RefCounted<PicturePileBase>; | 139 friend class base::RefCounted<PicturePileBase>; |
| 136 DISALLOW_COPY_AND_ASSIGN(PicturePileBase); | 140 DISALLOW_COPY_AND_ASSIGN(PicturePileBase); |
| 137 }; | 141 }; |
| 138 | 142 |
| 139 } // namespace cc | 143 } // namespace cc |
| 140 | 144 |
| 141 #endif // CC_RESOURCES_PICTURE_PILE_BASE_H_ | 145 #endif // CC_RESOURCES_PICTURE_PILE_BASE_H_ |
| OLD | NEW |