Go to the source code of this file.
◆ configure_glkview_for_skia()
static void configure_glkview_for_skia |
( |
GLKView * |
view | ) |
|
|
static |
Definition at line 23 of file SkiaGLContext.mm.
23 {
24 [view setDrawableColorFormat:GLKViewDrawableColorFormatRGBA8888];
25 [view setDrawableDepthFormat:GLKViewDrawableDepthFormat24];
26 [view setDrawableStencilFormat:GLKViewDrawableStencilFormat8];
27}
◆ make_gl_surface()
Definition at line 29 of file SkiaGLContext.mm.
29 {
30 static constexpr int kStencilBits = 8;
34 return nullptr;
35 }
36 GLint fboid = 0;
37 glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &fboid);
39 dContext,
43 kStencilBits,
47 nullptr,
48 &surfaceProps);
49}
static constexpr int kSampleCount
@ kBottomLeft_GrSurfaceOrigin
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
SK_API GrBackendRenderTarget MakeGL(int width, int height, int sampleCnt, int stencilBits, const GrGLFramebufferInfo &glInfo)
SK_API sk_sp< SkSurface > WrapBackendRenderTarget(GrRecordingContext *context, const GrBackendRenderTarget &backendRenderTarget, GrSurfaceOrigin origin, SkColorType colorType, sk_sp< SkColorSpace > colorSpace, const SkSurfaceProps *surfaceProps, RenderTargetReleaseProc releaseProc=nullptr, ReleaseContext releaseContext=nullptr)
◆ MakeSkiaGLContext()