Debian Codegraph @

src/gpu/SkBackingFit.h

raw
1 /*
2 * Copyright 2022 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkBackingFit_DEFINED
9 #define SkBackingFit_DEFINED
10
11 #include "include/core/SkSize.h"
12
13 /** Indicates whether a backing store needs to be an exact match or can be
14 larger than is strictly necessary.
15 */
16 enum class SkBackingFit { kApprox, kExact };
17
18 namespace skgpu {
19
20 /** Map dimensions to larger powers of 2. Above a certain tolerance,
21 dimensions can also map to the midpoints between powers of 2.
22 */
23 SkISize GetApproxSize(SkISize);
24
25 } // namespace skgpu
26
27 #endif