Avi Drissman | 05dfbc82 | 2022-09-13 21:25:34 | [diff] [blame] | 1 | // Copyright 2020 The Chromium Authors |
Sergey Ulanov | cfceca26 | 2020-01-11 00:50:08 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef GPU_CONFIG_SKIA_LIMITS_H_ |
| 6 | #define GPU_CONFIG_SKIA_LIMITS_H_ |
| 7 | |
Lei Zhang | 4f52073e | 2021-07-20 00:52:31 | [diff] [blame] | 8 | #include <stddef.h> |
| 9 | |
Vasiliy Telezhnikov | 31145319 | 2025-06-18 15:36:56 | [diff] [blame] | 10 | #include "gpu/config/gpu_config_export.h" |
Sergey Ulanov | cfceca26 | 2020-01-11 00:50:08 | [diff] [blame] | 11 | |
| 12 | namespace gpu { |
| 13 | |
Vasiliy Telezhnikov | 31145319 | 2025-06-18 15:36:56 | [diff] [blame] | 14 | GPU_CONFIG_EXPORT void DetermineGraphiteImageProviderCacheLimits( |
Sunny Sachanandani | acdd0f62 | 2024-08-19 21:50:59 | [diff] [blame] | 15 | size_t* max_gpu_main_image_provider_cache_bytes, |
| 16 | size_t* max_viz_compositor_image_provider_cache_bytes); |
Colin Blundell | e5eb131 | 2023-08-04 08:39:56 | [diff] [blame] | 17 | |
Vasiliy Telezhnikov | 31145319 | 2025-06-18 15:36:56 | [diff] [blame] | 18 | GPU_CONFIG_EXPORT void DetermineGrCacheLimitsFromAvailableMemory( |
Sergey Ulanov | cfceca26 | 2020-01-11 00:50:08 | [diff] [blame] | 19 | size_t* max_resource_cache_bytes, |
| 20 | size_t* max_glyph_cache_texture_bytes); |
| 21 | |
Vasiliy Telezhnikov | 31145319 | 2025-06-18 15:36:56 | [diff] [blame] | 22 | GPU_CONFIG_EXPORT void DefaultGrCacheLimitsForTests( |
Sergey Ulanov | cfceca26 | 2020-01-11 00:50:08 | [diff] [blame] | 23 | size_t* max_resource_cache_bytes, |
| 24 | size_t* max_glyph_cache_texture_bytes); |
| 25 | |
| 26 | } // namespace gpu |
| 27 | |
| 28 | #endif // GPU_CONFIG_SKIA_LIMITS_H_ |