Chromium Code Reviews| Index: cc/tiles/image_controller.h |
| diff --git a/cc/tiles/image_controller.h b/cc/tiles/image_controller.h |
| index ac79c82a3f6e5211e2682015beb0b987872a91c7..15cb6c471d6a5459bd64b5874de3475d43dd5994 100644 |
| --- a/cc/tiles/image_controller.h |
| +++ b/cc/tiles/image_controller.h |
| @@ -56,6 +56,9 @@ class CC_EXPORT ImageController { |
| virtual ImageDecodeRequestId QueueImageDecode( |
| sk_sp<const SkImage> image, |
| const ImageDecodedCallback& callback); |
| + size_t image_cache_max_limit_bytes() const { |
| + return image_cache_max_limit_bytes_; |
|
Khushal
2017/04/28 00:12:53
Could this just be cache_ ? cache_->GetMaximumMemo
vmpstr
2017/04/28 17:18:30
GetMaximumMemoryLimit is virtual so I just want to
|
| + } |
| protected: |
| scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; |
| @@ -97,6 +100,7 @@ class CC_EXPORT ImageController { |
| base::flat_map<ImageDecodeRequestId, DrawImage> requested_locked_images_; |
| base::SequencedTaskRunner* origin_task_runner_ = nullptr; |
| + size_t image_cache_max_limit_bytes_ = 0u; |
| // The variables defined below this lock (aside from weak_ptr_factory_) can |
| // only be accessed when the lock is acquired. |