Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Macros | Functions
GrGLTexture.cpp File Reference
#include "src/gpu/ganesh/gl/GrGLTexture.h"
#include "include/core/SkTraceMemoryDump.h"
#include "include/gpu/ganesh/SkImageGanesh.h"
#include "include/gpu/ganesh/gl/GrGLBackendSurface.h"
#include "src/core/SkTraceEvent.h"
#include "src/gpu/ganesh/GrSemaphore.h"
#include "src/gpu/ganesh/GrShaderCaps.h"
#include "src/gpu/ganesh/GrTexture.h"
#include "src/gpu/ganesh/gl/GrGLBackendSurfacePriv.h"
#include "src/gpu/ganesh/gl/GrGLGpu.h"

Go to the source code of this file.

Macros

#define GPUGL   static_cast<GrGLGpu*>(this->getGpu())
 
#define GL_CALL(X)   GR_GL_CALL(GPUGL->glInterface(), X)
 

Functions

static GrGLenum target_from_texture_type (GrTextureType type)
 

Macro Definition Documentation

◆ GL_CALL

#define GL_CALL (   X)    GR_GL_CALL(GPUGL->glInterface(), X)

Definition at line 21 of file GrGLTexture.cpp.

◆ GPUGL

#define GPUGL   static_cast<GrGLGpu*>(this->getGpu())

Definition at line 20 of file GrGLTexture.cpp.

Function Documentation

◆ target_from_texture_type()

static GrGLenum target_from_texture_type ( GrTextureType  type)
inlinestatic

Definition at line 35 of file GrGLTexture.cpp.

35 {
36 switch (type) {
38 return GR_GL_TEXTURE_2D;
43 default:
44 SK_ABORT("Unexpected texture target");
45 }
46 SK_ABORT("Unexpected texture type");
47}
#define GR_GL_TEXTURE_2D
#define GR_GL_TEXTURE_RECTANGLE
#define GR_GL_TEXTURE_EXTERNAL
#define SK_ABORT(message,...)
Definition SkAssert.h:70