Flutter Engine
The Flutter Engine
Macros | Functions
GrGLRenderTarget.cpp File Reference
#include "src/gpu/ganesh/gl/GrGLRenderTarget.h"
#include "include/core/SkTraceMemoryDump.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/ganesh/gl/GrGLBackendSurface.h"
#include "src/gpu/ganesh/GrBackendUtils.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrGpuResourcePriv.h"
#include "src/gpu/ganesh/GrResourceProvider.h"
#include "src/gpu/ganesh/gl/GrGLGpu.h"
#include "src/gpu/ganesh/gl/GrGLUtil.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)
 
#define GL_CALL_RET(RET, X)   GR_GL_CALL_RET(GPUGL->glInterface(), RET, X)
 

Functions

GrGLFormat stencil_bits_to_format (int stencilBits)
 

Macro Definition Documentation

◆ GL_CALL

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

Definition at line 21 of file GrGLRenderTarget.cpp.

◆ GL_CALL_RET

#define GL_CALL_RET (   RET,
  X 
)    GR_GL_CALL_RET(GPUGL->glInterface(), RET, X)

Definition at line 22 of file GrGLRenderTarget.cpp.

◆ GPUGL

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

Definition at line 20 of file GrGLRenderTarget.cpp.

Function Documentation

◆ stencil_bits_to_format()

GrGLFormat stencil_bits_to_format ( int  stencilBits)

Definition at line 69 of file GrGLRenderTarget.cpp.

69 {
70 SkASSERT(stencilBits);
71 switch (stencilBits) {
72 case 8:
73 // We pick the packed format here so when we query total size we are at least not
74 // underestimating the total size of the stencil buffer. However, in reality this
75 // rarely matters since we usually don't care about the size of wrapped objects.
77 case 16:
79 default:
80 SkASSERT(false);
82 }
83}
#define SkASSERT(cond)
Definition: SkAssert.h:116