| 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 <list> | 8 #include <list> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 void UpdateRecordedRegion(); | 35 void UpdateRecordedRegion(); |
| 36 const Region& recorded_region() const { return recorded_region_; } | 36 const Region& recorded_region() const { return recorded_region_; } |
| 37 | 37 |
| 38 int num_tiles_x() const { return tiling_.num_tiles_x(); } | 38 int num_tiles_x() const { return tiling_.num_tiles_x(); } |
| 39 int num_tiles_y() const { return tiling_.num_tiles_y(); } | 39 int num_tiles_y() const { return tiling_.num_tiles_y(); } |
| 40 gfx::Rect tile_bounds(int x, int y) const { return tiling_.TileBounds(x, y); } | 40 gfx::Rect tile_bounds(int x, int y) const { return tiling_.TileBounds(x, y); } |
| 41 bool HasRecordingAt(int x, int y); | 41 bool HasRecordingAt(int x, int y); |
| 42 bool CanRaster(float contents_scale, gfx::Rect content_rect); | 42 bool CanRaster(float contents_scale, gfx::Rect content_rect); |
| 43 | 43 |
| 44 static void ComputeTileGridInfo(gfx::Size tile_grid_size, |
| 45 SkTileGridPicture::TileGridInfo* info); |
| 46 |
| 44 void SetTileGridSize(gfx::Size tile_grid_size); | 47 void SetTileGridSize(gfx::Size tile_grid_size); |
| 45 TilingData& tiling() { return tiling_; } | 48 TilingData& tiling() { return tiling_; } |
| 46 | 49 |
| 47 scoped_ptr<base::Value> AsValue() const; | 50 scoped_ptr<base::Value> AsValue() const; |
| 48 | 51 |
| 49 protected: | 52 protected: |
| 50 struct CC_EXPORT PictureInfo { | 53 struct CC_EXPORT PictureInfo { |
| 51 PictureInfo(); | 54 PictureInfo(); |
| 52 ~PictureInfo(); | 55 ~PictureInfo(); |
| 53 | 56 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 private: | 88 private: |
| 86 void SetBufferPixels(int buffer_pixels); | 89 void SetBufferPixels(int buffer_pixels); |
| 87 | 90 |
| 88 friend class base::RefCounted<PicturePileBase>; | 91 friend class base::RefCounted<PicturePileBase>; |
| 89 DISALLOW_COPY_AND_ASSIGN(PicturePileBase); | 92 DISALLOW_COPY_AND_ASSIGN(PicturePileBase); |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 } // namespace cc | 95 } // namespace cc |
| 93 | 96 |
| 94 #endif // CC_RESOURCES_PICTURE_PILE_BASE_H_ | 97 #endif // CC_RESOURCES_PICTURE_PILE_BASE_H_ |
| OLD | NEW |