Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
mock
GrMockTypesPriv.h
Go to the documentation of this file.
1
/*
2
* Copyright 2021 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 GrMockTypesPriv_DEFINED
9
#define GrMockTypesPriv_DEFINED
10
11
#include "
include/core/SkTextureCompressionType.h
"
12
#include "
include/gpu/GrTypes.h
"
13
#include "
include/gpu/mock/GrMockTypes.h
"
14
#include "
include/private/gpu/ganesh/GrTypesPriv.h
"
15
16
#include <cstdint>
17
18
struct
GrMockTextureSpec
{
19
GrMockTextureSpec
()
20
:
fColorType
(
GrColorType
::
kUnknown
)
21
,
fCompressionType
(
SkTextureCompressionType
::
kNone
) {}
22
GrMockTextureSpec
(
const
GrMockSurfaceInfo
&
info
)
23
:
fColorType
(
info
.
fColorType
)
24
,
fCompressionType
(
info
.
fCompressionType
) {}
25
26
GrColorType
fColorType
=
GrColorType::kUnknown
;
27
SkTextureCompressionType
fCompressionType
=
SkTextureCompressionType::kNone
;
28
};
29
30
GrMockSurfaceInfo
GrMockTextureSpecToSurfaceInfo
(
const
GrMockTextureSpec
& mockSpec,
31
uint32_t sampleCount,
32
uint32_t levelCount,
33
GrProtected
isProtected);
34
35
#endif
36
ImageMode::kNone
@ kNone
info
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition:
DM.cpp:213
GrGLFormat::kUnknown
@ kUnknown
GrMockTextureSpecToSurfaceInfo
GrMockSurfaceInfo GrMockTextureSpecToSurfaceInfo(const GrMockTextureSpec &mockSpec, uint32_t sampleCount, uint32_t levelCount, GrProtected isProtected)
Definition:
GrMockTypes.cpp:23
GrMockTypes.h
GrTypesPriv.h
GrColorType
GrColorType
Definition:
GrTypesPriv.h:540
GrColorType::kUnknown
@ kUnknown
GrTypes.h
SkTextureCompressionType.h
SkTextureCompressionType
SkTextureCompressionType
Definition:
SkTextureCompressionType.h:20
SkTextureCompressionType::kNone
@ kNone
skgpu::Protected
Protected
Definition:
GpuTypes.h:61
GrMockSurfaceInfo
Definition:
GrMockTypes.h:101
GrMockTextureSpec
Definition:
GrMockTypesPriv.h:18
GrMockTextureSpec::fColorType
GrColorType fColorType
Definition:
GrMockTypesPriv.h:26
GrMockTextureSpec::GrMockTextureSpec
GrMockTextureSpec(const GrMockSurfaceInfo &info)
Definition:
GrMockTypesPriv.h:22
GrMockTextureSpec::GrMockTextureSpec
GrMockTextureSpec()
Definition:
GrMockTypesPriv.h:19
GrMockTextureSpec::fCompressionType
SkTextureCompressionType fCompressionType
Definition:
GrMockTypesPriv.h:27
Generated on Sun Jun 23 2024 21:56:22 for Flutter Engine by
1.9.4