Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
GrGLBackendSurface.cpp File Reference
#include "include/gpu/ganesh/gl/GrGLBackendSurface.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkTextureCompressionType.h"
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/GrTypes.h"
#include "include/gpu/gl/GrGLTypes.h"
#include "include/private/base/SkAssert.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/gpu/ganesh/GrBackendSurfacePriv.h"
#include "src/gpu/ganesh/gl/GrGLBackendSurfacePriv.h"
#include "src/gpu/ganesh/gl/GrGLDefines.h"
#include "src/gpu/ganesh/gl/GrGLTypesPriv.h"
#include "src/gpu/ganesh/gl/GrGLUtil.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <string>

Go to the source code of this file.

Classes

class  GrGLBackendFormatData
 
class  GrGLBackendRenderTargetData
 

Namespaces

namespace  GrBackendFormats
 
namespace  GrBackendTextures
 
namespace  GrBackendRenderTargets
 

Functions

static GrTextureType gl_target_to_gr_target (GrGLenum target)
 
static const GrGLBackendFormatDataget_and_cast_data (const GrBackendFormat &format)
 
SK_API GrBackendFormat GrBackendFormats::MakeGL (GrGLenum format, GrGLenum target)
 
SK_API GrGLFormat GrBackendFormats::AsGLFormat (const GrBackendFormat &)
 
SK_API GrGLenum GrBackendFormats::AsGLFormatEnum (const GrBackendFormat &)
 
static const GrGLBackendTextureDataget_and_cast_data (const GrBackendTexture &texture)
 
static GrGLBackendTextureDataget_and_cast_data (GrBackendTexture *texture)
 
SK_API GrBackendTexture GrBackendTextures::MakeGL (int width, int height, skgpu::Mipmapped, const GrGLTextureInfo &glInfo, std::string_view label={})
 
SK_API bool GrBackendTextures::GetGLTextureInfo (const GrBackendTexture &, GrGLTextureInfo *)
 
SK_API void GrBackendTextures::GLTextureParametersModified (GrBackendTexture *)
 
static const GrGLBackendRenderTargetDataget_and_cast_data (const GrBackendRenderTarget &rt)
 
SK_API GrBackendRenderTarget GrBackendRenderTargets::MakeGL (int width, int height, int sampleCnt, int stencilBits, const GrGLFramebufferInfo &glInfo)
 
SK_API bool GrBackendRenderTargets::GetGLFramebufferInfo (const GrBackendRenderTarget &, GrGLFramebufferInfo *)
 

Function Documentation

◆ get_and_cast_data() [1/4]

static const GrGLBackendFormatData * get_and_cast_data ( const GrBackendFormat format)
static

Definition at line 106 of file GrGLBackendSurface.cpp.

106 {
108 SkASSERT(!data || data->type() == GrBackendApi::kOpenGL);
109 return static_cast<const GrGLBackendFormatData*>(data);
110}
#define SkASSERT(cond)
Definition SkAssert.h:116
static const GrBackendFormatData * GetBackendData(const GrBackendFormat &format)
uint32_t uint32_t * format
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition switches.h:41

◆ get_and_cast_data() [2/4]

static const GrGLBackendRenderTargetData * get_and_cast_data ( const GrBackendRenderTarget rt)
static

Definition at line 264 of file GrGLBackendSurface.cpp.

264 {
266 SkASSERT(!data || data->type() == GrBackendApi::kOpenGL);
267 return static_cast<const GrGLBackendRenderTargetData*>(data);
268}

◆ get_and_cast_data() [3/4]

static const GrGLBackendTextureData * get_and_cast_data ( const GrBackendTexture texture)
static

Definition at line 167 of file GrGLBackendSurface.cpp.

167 {
169 SkASSERT(!data || data->type() == GrBackendApi::kOpenGL);
170 return static_cast<const GrGLBackendTextureData*>(data);
171}
FlTexture * texture

◆ get_and_cast_data() [4/4]

static GrGLBackendTextureData * get_and_cast_data ( GrBackendTexture texture)
static

Definition at line 173 of file GrGLBackendSurface.cpp.

173 {
175 SkASSERT(!data || data->type() == GrBackendApi::kOpenGL);
176 return static_cast<GrGLBackendTextureData*>(data);
177}

◆ gl_target_to_gr_target()

static GrTextureType gl_target_to_gr_target ( GrGLenum  target)
static

Definition at line 91 of file GrGLBackendSurface.cpp.

91 {
92 switch (target) {
96 return GrTextureType::k2D;
101 default:
103 }
104}
#define GR_GL_TEXTURE_2D
#define GR_GL_TEXTURE_NONE
#define GR_GL_TEXTURE_RECTANGLE
#define GR_GL_TEXTURE_EXTERNAL
#define SkUNREACHABLE
Definition SkAssert.h:135
uint32_t * target