Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/pipeline/skia/
DGLFunctorDrawable.cpp91 sk_sp<SkSurface> tmpSurface; in onDraw() local
97 tmpSurface = in onDraw()
99 tmpSurface->getCanvas()->clear(SK_ColorTRANSPARENT); in onDraw()
102 if (!tmpSurface->getBackendRenderTarget(SkSurface::kFlushWrite_BackendHandleAccess) in onDraw()
158 if (tmpSurface) { in onDraw()
159 tmpCanvas = tmpSurface->getCanvas(); in onDraw()
207 if (tmpSurface) { in onDraw()
217 tmpSurface->draw(canvas, deviceBounds.fLeft, deviceBounds.fTop); in onDraw()
/frameworks/base/libs/hwui/
DReadback.cpp173 sk_sp<SkSurface> tmpSurface = in copySurfaceInto() local
179 if (!tmpSurface.get()) { in copySurfaceInto()
181 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copySurfaceInto()
184 if (!tmpSurface.get()) { in copySurfaceInto()
236 SkCanvas* canvas = tmpSurface->getCanvas(); in copySurfaceInto()
252 if (!tmpSurface->readPixels(*bitmap, 0, 0)) { in copySurfaceInto()
258 !tmpBitmap.tryAllocPixels(tmpInfo) || !tmpSurface->readPixels(tmpBitmap, 0, 0) || in copySurfaceInto()
349 sk_sp<SkSurface> tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto() local
357 if (!tmpSurface.get()) { in copyLayerInto()
359 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto()
[all …]