| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DECODE_CACHE_H_ | 5 #ifndef CC_TILES_IMAGE_DECODE_CACHE_H_ |
| 6 #define CC_TILES_IMAGE_DECODE_CACHE_H_ | 6 #define CC_TILES_IMAGE_DECODE_CACHE_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "cc/playback/decoded_draw_image.h" | 9 #include "cc/paint/draw_image.h" |
| 10 #include "cc/playback/draw_image.h" | 10 #include "cc/tiles/decoded_draw_image.h" |
| 11 #include "cc/tiles/tile_priority.h" | 11 #include "cc/tiles/tile_priority.h" |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 | 14 |
| 15 class TileTask; | 15 class TileTask; |
| 16 | 16 |
| 17 // ImageDecodeCache is responsible for generating decode tasks, decoding | 17 // ImageDecodeCache is responsible for generating decode tasks, decoding |
| 18 // images, storing images in cache, and being able to return the decoded images | 18 // images, storing images in cache, and being able to return the decoded images |
| 19 // when requested. | 19 // when requested. |
| 20 | 20 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // This function informs the cache that we are hidden and should not be | 92 // This function informs the cache that we are hidden and should not be |
| 93 // retaining cached resources longer than needed. | 93 // retaining cached resources longer than needed. |
| 94 virtual void SetShouldAggressivelyFreeResources( | 94 virtual void SetShouldAggressivelyFreeResources( |
| 95 bool aggressively_free_resources) = 0; | 95 bool aggressively_free_resources) = 0; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace cc | 98 } // namespace cc |
| 99 | 99 |
| 100 #endif // CC_TILES_IMAGE_DECODE_CACHE_H_ | 100 #endif // CC_TILES_IMAGE_DECODE_CACHE_H_ |
| OLD | NEW |