Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
GrBackendUtils.h
Go to the documentation of this file.
1
/*
2
* Copyright 2020 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 GrBackendUtils_DEFINED
9
#define GrBackendUtils_DEFINED
10
11
class
GrBackendFormat
;
12
enum class
SkTextureCompressionType
;
13
14
#include <cstddef>
15
16
SkTextureCompressionType
GrBackendFormatToCompressionType
(
const
GrBackendFormat
&
format
);
17
18
// Returns the number of bytes per texel block for the given format. All non compressed formats
19
// are treated as having a block size of 1x1, so this is equivalent to bytesPerPixel.
20
size_t
GrBackendFormatBytesPerBlock
(
const
GrBackendFormat
&
format
);
21
22
// Returns the number of bytes per pixel for the given format. All compressed formats will return 0.
23
size_t
GrBackendFormatBytesPerPixel
(
const
GrBackendFormat
&
format
);
24
25
int
GrBackendFormatStencilBits
(
const
GrBackendFormat
&
format
);
26
27
#endif
GrBackendFormatBytesPerPixel
size_t GrBackendFormatBytesPerPixel(const GrBackendFormat &format)
Definition:
GrBackendUtils.cpp:84
GrBackendFormatToCompressionType
SkTextureCompressionType GrBackendFormatToCompressionType(const GrBackendFormat &format)
Definition:
GrBackendUtils.cpp:22
GrBackendFormatStencilBits
int GrBackendFormatStencilBits(const GrBackendFormat &format)
Definition:
GrBackendUtils.cpp:91
GrBackendFormatBytesPerBlock
size_t GrBackendFormatBytesPerBlock(const GrBackendFormat &format)
Definition:
GrBackendUtils.cpp:52
SkTextureCompressionType
SkTextureCompressionType
Definition:
SkTextureCompressionType.h:20
GrBackendFormat
Definition:
GrBackendSurface.h:44
format
uint32_t uint32_t * format
Definition:
fl_texture_registrar_test.cc:41
Generated on Sun Jun 23 2024 21:56:19 for Flutter Engine by
1.9.4