Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
SkBackingFit.h
Go to the documentation of this file.
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
SkBackingFit
SkBackingFit
Definition:
SkBackingFit.h:16
SkBackingFit::kApprox
@ kApprox
SkBackingFit::kExact
@ kExact
SkSize.h
skgpu
Definition:
GpuTools.h:21
skgpu::GetApproxSize
SkISize GetApproxSize(SkISize size)
Definition:
SkBackingFit.cpp:17
SkISize
Definition:
SkSize.h:16
Generated on Sun Jun 23 2024 21:56:28 for Flutter Engine by
1.9.4