Home
last modified time | relevance | path

Searched refs:tmpSurface (Results 1 – 2 of 2) sorted by relevance

/aosp12/frameworks/base/libs/hwui/
H A DReadback.cpp118 sk_sp<SkSurface> tmpSurface = in copySurfaceInto() local
124 if (!tmpSurface.get()) { in copySurfaceInto()
128 if (!tmpSurface.get()) { in copySurfaceInto()
180 SkCanvas* canvas = tmpSurface->getCanvas(); in copySurfaceInto()
192 if (!tmpSurface->readPixels(*bitmap, 0, 0)) { in copySurfaceInto()
198 !tmpBitmap.tryAllocPixels(tmpInfo) || !tmpSurface->readPixels(tmpBitmap, 0, 0) || in copySurfaceInto()
341 sk_sp<SkSurface> tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto() local
347 if (!tmpSurface.get()) { in copyLayerInto()
351 if (!tmpSurface.get()) { in copyLayerInto()
364 if (!tmpSurface->readPixels(*bitmap, 0, 0)) { in copyLayerInto()
[all …]
/aosp12/frameworks/base/libs/hwui/pipeline/skia/
H A DGLFunctorDrawable.cpp77 sk_sp<SkSurface> tmpSurface; in onDraw() local
83 tmpSurface = in onDraw()
85 tmpSurface->getCanvas()->clear(SK_ColorTRANSPARENT); in onDraw()
88 if (!tmpSurface->getBackendRenderTarget(SkSurface::kFlushWrite_BackendHandleAccess) in onDraw()
141 if (tmpSurface) { in onDraw()
142 tmpCanvas = tmpSurface->getCanvas(); in onDraw()
190 if (tmpSurface) { in onDraw()
200 tmpSurface->draw(canvas, deviceBounds.fLeft, deviceBounds.fTop); in onDraw()