Flutter Engine
The Flutter Engine
Functions
GrMockTypes.cpp File Reference
#include "include/gpu/mock/GrMockTypes.h"
#include "include/core/SkTextureCompressionType.h"
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/GrTypes.h"
#include "src/gpu/ganesh/mock/GrMockTypesPriv.h"

Go to the source code of this file.

Functions

GrMockSurfaceInfo GrMockTextureSpecToSurfaceInfo (const GrMockTextureSpec &mockSpec, uint32_t sampleCount, uint32_t levelCount, GrProtected isProtected)
 

Function Documentation

◆ GrMockTextureSpecToSurfaceInfo()

GrMockSurfaceInfo GrMockTextureSpecToSurfaceInfo ( const GrMockTextureSpec mockSpec,
uint32_t  sampleCount,
uint32_t  levelCount,
GrProtected  isProtected 
)

Definition at line 23 of file GrMockTypes.cpp.

26 {
28 // Shared info
29 info.fSampleCount = sampleCount;
30 info.fLevelCount = levelCount;
31 info.fProtected = isProtected;
32
33 // Mock info
34 info.fColorType = mockSpec.fColorType;
35 info.fCompressionType = mockSpec.fCompressionType;
36
37 return info;
38}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
GrColorType fColorType
SkTextureCompressionType fCompressionType