Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
GrGLTypesPriv.cpp File Reference
#include "src/gpu/ganesh/gl/GrGLTypesPriv.h"
#include "include/core/SkScalar.h"
#include "src/gpu/Swizzle.h"
#include "src/gpu/ganesh/gl/GrGLDefines.h"

Go to the source code of this file.

Functions

GrGLSurfaceInfo GrGLTextureSpecToSurfaceInfo (const GrGLTextureSpec &glSpec, uint32_t sampleCount, uint32_t levelCount, GrProtected isProtected)
 

Function Documentation

◆ GrGLTextureSpecToSurfaceInfo()

GrGLSurfaceInfo GrGLTextureSpecToSurfaceInfo ( const GrGLTextureSpec glSpec,
uint32_t  sampleCount,
uint32_t  levelCount,
GrProtected  isProtected 
)

Definition at line 60 of file GrGLTypesPriv.cpp.

63 {
65 // Shared info
66 info.fSampleCount = sampleCount;
67 info.fLevelCount = levelCount;
68 info.fProtected = isProtected;
69
70 // GL info
71 info.fTarget = glSpec.fTarget;
72 info.fFormat = glSpec.fFormat;
73
74 return info;
75}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition DM.cpp:213
uint32_t fSampleCount
Definition GrGLTypes.h:211