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 18 matching lines...) Expand all Loading... |
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( | 31 std::vector<scoped_refptr<TileTask>> SetPredecodeImages( |
32 std::vector<DrawImage> predecode_images, | 32 std::vector<DrawImage> predecode_images, |
33 const ImageDecodeController::TracingInfo& tracing_info); | 33 const ImageDecodeController::TracingInfo& tracing_info); |
34 | 34 |
35 private: | 35 private: |
36 ImageDecodeController* controller_ = nullptr; | 36 ImageDecodeController* controller_ = nullptr; |
37 std::vector<DrawImage> predecode_locked_images_; | 37 std::vector<DrawImage> predecode_locked_images_; |
38 | 38 |
| 39 // Debugging information for crbug.com/650234. |
| 40 size_t num_times_controller_was_set_ = 0; |
| 41 |
39 DISALLOW_COPY_AND_ASSIGN(ImageManager); | 42 DISALLOW_COPY_AND_ASSIGN(ImageManager); |
40 }; | 43 }; |
41 | 44 |
42 } // namespace cc | 45 } // namespace cc |
43 | 46 |
44 #endif // CC_TILES_IMAGE_MANAGER_H_ | 47 #endif // CC_TILES_IMAGE_MANAGER_H_ |
OLD | NEW |