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_PICTURE_PILE_BASE_H_ | 5 #ifndef CC_PICTURE_PILE_BASE_H_ |
6 #define CC_PICTURE_PILE_BASE_H_ | 6 #define CC_PICTURE_PILE_BASE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 typedef std::list<scoped_refptr<Picture> > PictureList; | 49 typedef std::list<scoped_refptr<Picture> > PictureList; |
50 typedef base::hash_map<PictureListMapKey, PictureList> PictureListMap; | 50 typedef base::hash_map<PictureListMapKey, PictureList> PictureListMap; |
51 | 51 |
52 // A picture pile is a tiled set of picture lists. The picture list map | 52 // A picture pile is a tiled set of picture lists. The picture list map |
53 // is a map of tile indices to picture lists. | 53 // is a map of tile indices to picture lists. |
54 PictureListMap picture_list_map_; | 54 PictureListMap picture_list_map_; |
55 TilingData tiling_; | 55 TilingData tiling_; |
56 Region recorded_region_; | 56 Region recorded_region_; |
57 float min_contents_scale_; | 57 float min_contents_scale_; |
58 SkTileGridPicture::TileGridInfo tile_grid_info_; | 58 SkTileGridPicture::TileGridInfo tile_grid_info_; |
| 59 SkColor background_color_; |
59 | 60 |
60 private: | 61 private: |
61 void SetBufferPixels(int buffer_pixels); | 62 void SetBufferPixels(int buffer_pixels); |
62 | 63 |
63 friend class base::RefCounted<PicturePileBase>; | 64 friend class base::RefCounted<PicturePileBase>; |
64 DISALLOW_COPY_AND_ASSIGN(PicturePileBase); | 65 DISALLOW_COPY_AND_ASSIGN(PicturePileBase); |
65 }; | 66 }; |
66 | 67 |
67 } // namespace cc | 68 } // namespace cc |
68 | 69 |
69 #endif // CC_PICTURE_PILE_H_ | 70 #endif // CC_PICTURE_PILE_H_ |
OLD | NEW |