Home
last modified time | relevance | path

Searched refs:grCtx (Results 1 – 4 of 4) sorted by relevance

/external/skia/modules/canvaskit/
Dwebgl.js75 var grCtx = this._MakeGrContext();
76 if (!grCtx) {
80 grCtx._context = ctx;
81 var oldDelete = grCtx.delete.bind(grCtx);
84 grCtx['delete'] = function() { function in CanvasKit.MakeWebGLContext
87 }.bind(grCtx);
89 GL.currentContext.grDirectContext = grCtx;
90 return grCtx;
115 CanvasKit.MakeOnScreenGLSurface = function(grCtx, w, h, colorspace, sc, st) { argument
116 if (!this.setCurrentContext(grCtx._context)) {
[all …]
Dinterface.js399 function readPixels(source, srcX, srcY, imageInfo, destMallocObj, bytesPerRow, grCtx) { argument
418 if (grCtx) {
419 rv = source._readPixels(imageInfo, pPtr, bytesPerRow, srcX, srcY, grCtx);
459 var grCtx = CanvasKit.getCurrentGrDirectContext();
460 return readPixels(this, srcX, srcY, imageInfo, destMallocObj, bytesPerRow, grCtx);
/external/skia/tools/gpu/
DGrContextFactory.cpp316 sk_sp<GrDirectContext> grCtx; in getContextInfoInternal() local
319 grCtx = testCtx->makeContext(grOptions); in getContextInfoInternal()
321 if (!grCtx) { in getContextInfoInternal()
326 SkASSERT(grCtx->directContextID() != shareContext->directContextID()); in getContextInfoInternal()
334 context.fGrContext = SkRef(grCtx.get()); in getContextInfoInternal()
/external/skia/modules/canvaskit/npm_build/types/
Dcanvaskit-wasm-tests.ts922 const grCtx = CK.MakeGrContext(ctx); constant
923 const surfaceNine = CK.MakeOnScreenGLSurface(grCtx!, 100, 400, // $ExpectType Surface
928 const surfaceTen = CK.MakeOnScreenGLSurface(grCtx!, 100, 400, // $ExpectType Surface
931 const rt = CK.MakeRenderTarget(grCtx!, 100, 200); // $ExpectType Surface | null
932 const rt2 = CK.MakeRenderTarget(grCtx!, { // $ExpectType Surface | null