blob: 59a608dcfca0ddefcfb752df210ecfa7521c62fb (
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
26
27
28
29
30
31
32
|
/*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrMockTypesPriv_DEFINED
#define GrMockTypesPriv_DEFINED
#include "include/core/SkTextureCompressionType.h"
#include "include/gpu/mock/GrMockTypes.h"
struct GrMockTextureSpec {
GrMockTextureSpec()
: fColorType(GrColorType::kUnknown)
, fCompressionType(SkTextureCompressionType::kNone) {}
GrMockTextureSpec(const GrMockSurfaceInfo& info)
: fColorType(info.fColorType)
, fCompressionType(info.fCompressionType) {}
GrColorType fColorType = GrColorType::kUnknown;
SkTextureCompressionType fCompressionType = SkTextureCompressionType::kNone;
};
GrMockSurfaceInfo GrMockTextureSpecToSurfaceInfo(const GrMockTextureSpec& mockSpec,
uint32_t sampleCount,
uint32_t levelCount,
GrProtected isProtected);
#endif
|