skia_limits.h 631 B

123456789101112131415161718192021222324
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef GPU_CONFIG_SKIA_LIMITS_H_
  5. #define GPU_CONFIG_SKIA_LIMITS_H_
  6. #include <stddef.h>
  7. #include "gpu/gpu_export.h"
  8. namespace gpu {
  9. GPU_EXPORT void DetermineGrCacheLimitsFromAvailableMemory(
  10. size_t* max_resource_cache_bytes,
  11. size_t* max_glyph_cache_texture_bytes);
  12. GPU_EXPORT void DefaultGrCacheLimitsForTests(
  13. size_t* max_resource_cache_bytes,
  14. size_t* max_glyph_cache_texture_bytes);
  15. } // namespace gpu
  16. #endif // GPU_CONFIG_SKIA_LIMITS_H_