blob: c8f35c49ef3fa630c605b48ab87f1dfc03c370aa [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GPU_CONFIG_SKIA_LIMITS_H_
#define GPU_CONFIG_SKIA_LIMITS_H_
#include "gpu/gpu_export.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
namespace gpu {
GPU_EXPORT void DetermineGrCacheLimitsFromAvailableMemory(
size_t* max_resource_cache_bytes,
size_t* max_glyph_cache_texture_bytes);
GPU_EXPORT void DefaultGrCacheLimitsForTests(
size_t* max_resource_cache_bytes,
size_t* max_glyph_cache_texture_bytes);
} // namespace gpu
#endif // GPU_CONFIG_SKIA_LIMITS_H_