Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions | Variables
gpu_surface_gl_skia.cc File Reference
#include "flutter/shell/gpu/gpu_surface_gl_skia.h"
#include "flutter/common/graphics/persistent_cache.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/context_options.h"
#include "flutter/shell/gpu/gpu_surface_gl_delegate.h"
#include "third_party/skia/include/core/SkAlphaType.h"
#include "third_party/skia/include/core/SkColorFilter.h"
#include "third_party/skia/include/core/SkColorSpace.h"
#include "third_party/skia/include/core/SkColorType.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"
#include "third_party/skia/include/gpu/ganesh/SkSurfaceGanesh.h"
#include "third_party/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h"
#include "third_party/skia/include/gpu/ganesh/gl/GrGLDirectContext.h"
#include "third_party/skia/include/gpu/gl/GrGLTypes.h"

Go to the source code of this file.

Namespaces

namespace  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< SkSurfaceflutter::WrapOnscreenSurface (GrDirectContext *context, const SkISize &size, intptr_t fbo)
 

Variables

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

Macro Definition Documentation

◆ GPU_GL_RGB565

#define GPU_GL_RGB565   0x8D62

Definition at line 32 of file gpu_surface_gl_skia.cc.

◆ GPU_GL_RGBA4

#define GPU_GL_RGBA4   0x8056

Definition at line 31 of file gpu_surface_gl_skia.cc.

◆ GPU_GL_RGBA8

#define GPU_GL_RGBA8   0x8058

Definition at line 30 of file gpu_surface_gl_skia.cc.

◆ RETURN_IF_RENDERABLE

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