summaryrefslogtreecommitdiff
path: root/chromium/gpu/config/skia_limits.h
blob: 1a84a2e6d8d000ee560c3f8d8c27ef4b9edf1e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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 <memory>

#include "base/optional.h"
#include "gpu/gpu_export.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_