| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_DECODED_IMAGE_TRACKER_H_ | 5 #ifndef CC_TILES_DECODED_IMAGE_TRACKER_H_ |
| 6 #define CC_TILES_DECODED_IMAGE_TRACKER_H_ | 6 #define CC_TILES_DECODED_IMAGE_TRACKER_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "cc/base/cc_export.h" | 12 #include "cc/cc_export.h" |
| 13 #include "cc/tiles/image_controller.h" | 13 #include "cc/tiles/image_controller.h" |
| 14 | 14 |
| 15 class SkImage; | 15 class SkImage; |
| 16 | 16 |
| 17 namespace cc { | 17 namespace cc { |
| 18 | 18 |
| 19 // This class is the main interface for the rest of the system to request | 19 // This class is the main interface for the rest of the system to request |
| 20 // decodes. It is responsible for keeping the decodes locked for a number of | 20 // decodes. It is responsible for keeping the decodes locked for a number of |
| 21 // frames, specified as |kNumFramesToLock| in the implementation file. | 21 // frames, specified as |kNumFramesToLock| in the implementation file. |
| 22 // | 22 // |
| (...skipping 28 matching lines...) Expand all Loading... |
| 51 ImageController* image_controller_ = nullptr; | 51 ImageController* image_controller_ = nullptr; |
| 52 std::vector<std::pair<ImageController::ImageDecodeRequestId, int>> | 52 std::vector<std::pair<ImageController::ImageDecodeRequestId, int>> |
| 53 locked_images_; | 53 locked_images_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(DecodedImageTracker); | 55 DISALLOW_COPY_AND_ASSIGN(DecodedImageTracker); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace cc | 58 } // namespace cc |
| 59 | 59 |
| 60 #endif // CC_TILES_DECODED_IMAGE_TRACKER_H_ | 60 #endif // CC_TILES_DECODED_IMAGE_TRACKER_H_ |
| OLD | NEW |