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_TILES_CHECKER_IMAGE_TRACKER_H_ | 5 #ifndef CC_TILES_CHECKER_IMAGE_TRACKER_H_ |
6 #define CC_TILES_CHECKER_IMAGE_TRACKER_H_ | 6 #define CC_TILES_CHECKER_IMAGE_TRACKER_H_ |
7 | 7 |
8 #include <unordered_map> | 8 #include <unordered_map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "cc/base/cc_export.h" | 11 #include "cc/cc_export.h" |
12 #include "cc/playback/image_id.h" | 12 #include "cc/paint/image_id.h" |
13 #include "cc/tiles/image_controller.h" | 13 #include "cc/tiles/image_controller.h" |
14 #include "third_party/skia/include/core/SkImage.h" | 14 #include "third_party/skia/include/core/SkImage.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 class CC_EXPORT CheckerImageTrackerClient { | 18 class CC_EXPORT CheckerImageTrackerClient { |
19 public: | 19 public: |
20 virtual ~CheckerImageTrackerClient() = default; | 20 virtual ~CheckerImageTrackerClient() = default; |
21 | 21 |
22 virtual void NeedsInvalidationForCheckerImagedTiles() = 0; | 22 virtual void NeedsInvalidationForCheckerImagedTiles() = 0; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // A map of image id to image decode request id for images to be unlocked. | 92 // A map of image id to image decode request id for images to be unlocked. |
93 std::unordered_map<ImageId, ImageController::ImageDecodeRequestId> | 93 std::unordered_map<ImageId, ImageController::ImageDecodeRequestId> |
94 image_id_to_decode_request_id_; | 94 image_id_to_decode_request_id_; |
95 | 95 |
96 base::WeakPtrFactory<CheckerImageTracker> weak_factory_; | 96 base::WeakPtrFactory<CheckerImageTracker> weak_factory_; |
97 }; | 97 }; |
98 | 98 |
99 } // namespace cc | 99 } // namespace cc |
100 | 100 |
101 #endif // CC_TILES_CHECKER_IMAGE_TRACKER_H_ | 101 #endif // CC_TILES_CHECKER_IMAGE_TRACKER_H_ |
OLD | NEW |