Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/pipeline/skia/
DGLFunctorDrawable.cpp99 sk_sp<SkSurface> tmpSurface; in onDraw() local
105 tmpSurface = in onDraw()
107 tmpSurface->getCanvas()->clear(SK_ColorTRANSPARENT); in onDraw()
110 if (!tmpSurface->getBackendRenderTarget(SkSurface::kFlushWrite_BackendHandleAccess) in onDraw()
164 if (tmpSurface) { in onDraw()
165 tmpCanvas = tmpSurface->getCanvas(); in onDraw()
215 if (tmpSurface) { in onDraw()
225 tmpSurface->draw(canvas, deviceBounds.fLeft, deviceBounds.fTop, nullptr); in onDraw()
/frameworks/base/libs/hwui/
DReadback.cpp168 sk_sp<SkSurface> tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto() local
174 if (!tmpSurface.get()) { in copyLayerInto()
176 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copyLayerInto()
178 if (!tmpSurface.get()) { in copyLayerInto()
185 tmpSurface->getCanvas(), layer, srcRect, dstRect, in copyLayerInto()
191 if (!tmpSurface->readPixels(*bitmap, 0, 0)) { in copyLayerInto()
198 !tmpSurface->readPixels(tmpBitmap, 0, 0) || in copyLayerInto()