Flutter Engine
gpu_surface_gl.cc File Reference
#include "flutter/shell/gpu/gpu_surface_gl.h"
#include "flutter/fml/base32.h"
#include "flutter/fml/logging.h"
#include "flutter/fml/size.h"
#include "flutter/fml/trace_event.h"
#include "flutter/shell/common/persistent_cache.h"
#include "third_party/skia/include/core/SkColorFilter.h"
#include "third_party/skia/include/core/SkSurface.h"
#include "third_party/skia/include/gpu/GrBackendSurface.h"
#include "third_party/skia/include/gpu/GrContextOptions.h"

Go to the source code of this file.

Namespaces

 flutter
 

Macros

#define GPU_GL_RGBA8   0x8058
 
#define GPU_GL_RGBA4   0x8056
 
#define GPU_GL_RGB565   0x8D62
 
#define RETURN_IF_RENDERABLE(x, y)
 

Functions

static SkColorType flutter::FirstSupportedColorType (GrDirectContext *context, GrGLenum *format)
 
static sk_sp< SkSurface > flutter::WrapOnscreenSurface (GrDirectContext *context, const SkISize &size, intptr_t fbo)
 

Variables

static const int flutter::kGrCacheMaxCount = 8192
 
static const size_t flutter::kGrCacheMaxByteSize = 24 * (1 << 20)
 

Macro Definition Documentation

◆ GPU_GL_RGB565

#define GPU_GL_RGB565   0x8D62

Definition at line 23 of file gpu_surface_gl.cc.

Referenced by flutter::FirstSupportedColorType().

◆ GPU_GL_RGBA4

#define GPU_GL_RGBA4   0x8056

Definition at line 22 of file gpu_surface_gl.cc.

Referenced by flutter::FirstSupportedColorType().

◆ GPU_GL_RGBA8

#define GPU_GL_RGBA8   0x8058

Definition at line 21 of file gpu_surface_gl.cc.

Referenced by flutter::FirstSupportedColorType().

◆ RETURN_IF_RENDERABLE

#define RETURN_IF_RENDERABLE (   x,
 
)
Value:
if (context->colorTypeSupportedAsSurface((x))) { \
*format = (y); \
return (x); \
}

Referenced by flutter::FirstSupportedColorType().