OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_PAINT_IMAGE_ID_H_ | 5 #ifndef CC_PAINT_IMAGE_ID_H_ |
6 #define CC_PAINT_IMAGE_ID_H_ | 6 #define CC_PAINT_IMAGE_ID_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <unordered_set> | 9 #include <unordered_set> |
10 | 10 |
11 #include "base/containers/flat_set.h" | 11 #include "base/containers/flat_set.h" |
| 12 #include "cc/paint/paint_image.h" |
12 | 13 |
13 namespace cc { | 14 namespace cc { |
14 | 15 |
15 using ImageId = uint32_t; | 16 using PaintImageIdFlatSet = base::flat_set<PaintImage::Id>; |
16 using ImageIdFlatSet = base::flat_set<ImageId>; | 17 |
| 18 // TODO(khushalsagar): These are only used by the hijack canvas since it uses |
| 19 // an SkCanvas to replace images. Remove once that moves to PaintOpBuffer. |
| 20 using SkImageId = uint32_t; |
| 21 using SkImageIdFlatSet = base::flat_set<SkImageId>; |
17 | 22 |
18 } // namespace cc | 23 } // namespace cc |
19 | 24 |
20 #endif // CC_PAINT_IMAGE_ID_H_ | 25 #endif // CC_PAINT_IMAGE_ID_H_ |
OLD | NEW |