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_IMAGE_MANAGER_H_ | 5 #ifndef CC_TILES_IMAGE_MANAGER_H_ |
6 #define CC_TILES_IMAGE_MANAGER_H_ | 6 #define CC_TILES_IMAGE_MANAGER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 ImageManager(); | 21 ImageManager(); |
22 ~ImageManager(); | 22 ~ImageManager(); |
23 | 23 |
24 void SetImageDecodeController(ImageDecodeController* controller); | 24 void SetImageDecodeController(ImageDecodeController* controller); |
25 void GetTasksForImagesAndRef( | 25 void GetTasksForImagesAndRef( |
26 std::vector<DrawImage>* images, | 26 std::vector<DrawImage>* images, |
27 std::vector<scoped_refptr<TileTask>>* tasks, | 27 std::vector<scoped_refptr<TileTask>>* tasks, |
28 const ImageDecodeController::TracingInfo& tracing_info); | 28 const ImageDecodeController::TracingInfo& tracing_info); |
29 void UnrefImages(const std::vector<DrawImage>& images); | 29 void UnrefImages(const std::vector<DrawImage>& images); |
30 void ReduceMemoryUsage(); | 30 void ReduceMemoryUsage(); |
| 31 std::vector<scoped_refptr<TileTask>> SetPredecodeImages( |
| 32 std::vector<DrawImage> predecode_images, |
| 33 const ImageDecodeController::TracingInfo& tracing_info); |
31 | 34 |
32 private: | 35 private: |
33 ImageDecodeController* controller_; | 36 ImageDecodeController* controller_ = nullptr; |
| 37 std::vector<DrawImage> predecode_locked_images_; |
34 | 38 |
35 DISALLOW_COPY_AND_ASSIGN(ImageManager); | 39 DISALLOW_COPY_AND_ASSIGN(ImageManager); |
36 }; | 40 }; |
37 | 41 |
38 } // namespace cc | 42 } // namespace cc |
39 | 43 |
40 #endif // CC_TILES_IMAGE_MANAGER_H_ | 44 #endif // CC_TILES_IMAGE_MANAGER_H_ |
OLD | NEW |