Home
last modified time | relevance | path

Searched refs:SkSurface (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/libs/hwui/pipeline/skia/
DVectorDrawableAtlas.h37 sk_sp<SkSurface> surface;
120 const sk_sp<SkSurface>& newSurface) in CacheEntry()
136 sk_sp<SkSurface> surface;
147 sk_sp<SkSurface> mSurface;
199 sk_sp<SkSurface> createSurface(int width, int height, GrContext* context);
DSkiaPipeline.h54 const Rect& contentDrawBounds, sk_sp<SkSurface> surface,
131 sk_sp<SkSurface> surface, const SkMatrix& preTransform);
138 SkCanvas* tryCapture(SkSurface* surface);
139 void endCapture(SkSurface* surface);
DSkiaPipeline.cpp164 SkSurface* layer = node->getLayerSurface(); in createOrUpdateLayer()
171 node->setLayerSurface(SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in createOrUpdateLayer()
241 SkCanvas* SkiaPipeline::tryCapture(SkSurface* surface) { in tryCapture()
265 void SkiaPipeline::endCapture(SkSurface* surface) { in endCapture()
294 const Rect& contentDrawBounds, sk_sp<SkSurface> surface, in renderFrame()
486 const Rect& contentDrawBounds, sk_sp<SkSurface> surface, in renderOverdraw()
490 sk_sp<SkSurface> offscreen = surface->makeSurface(offscreenInfo); in renderOverdraw()
DGLFunctorDrawable.cpp99 sk_sp<SkSurface> tmpSurface; in onDraw()
106 SkSurface::MakeRenderTarget(canvas->getGrContext(), SkBudgeted::kYes, surfaceInfo); in onDraw()
110 if (!tmpSurface->getBackendRenderTarget(SkSurface::kFlushWrite_BackendHandleAccess) in onDraw()
DSkiaLayer.h30 sk_sp<SkSurface> layerSurface;
DVectorDrawableAtlas.cpp78 sk_sp<SkSurface> newSurface; in repack()
264 sk_sp<SkSurface> VectorDrawableAtlas::createSurface(int width, int height, GrContext* context) { in createSurface()
268 return SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 0, kTopLeft_GrSurfaceOrigin, in createSurface()
DSkiaOpenGLPipeline.cpp98 sk_sp<SkSurface> surface(SkSurface::MakeFromBackendRenderTarget( in draw()
DSkiaVulkanPipeline.cpp68 sk_sp<SkSurface> backBuffer = mVkSurface->getCurrentSkSurface(); in draw()
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.h27 class SkSurface; variable
42 sk_sp<SkSurface> getCurrentSkSurface() { in getCurrentSkSurface()
54 sk_sp<SkSurface> skSurface;
DVulkanSurface.cpp507 bufferInfo->skSurface = SkSurface::MakeFromAHardwareBuffer( in dequeueNativeBuffer()
DVulkanManager.cpp527 bufferInfo->skSurface->flush(SkSurface::BackendSurfaceAccess::kPresent, in swapBuffers()
/frameworks/base/libs/hwui/tests/unit/
DCacheManagerTests.cpp42 std::vector<sk_sp<SkSurface>> surfaces; in RENDERTHREAD_SKIA_PIPELINE_TEST()
46 sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(grContext, SkBudgeted::kYes, info); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DSkiaPipelineTests.cpp54 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST()
85 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST()
109 auto surface = SkSurface::MakeRasterN32Premul(2, 2); in RENDERTHREAD_SKIA_PIPELINE_TEST()
133 auto surface = SkSurface::MakeRasterN32Premul(2, 2); in RENDERTHREAD_SKIA_PIPELINE_TEST()
149 auto surfaceLayer1 = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST()
160 auto surfaceLayer2 = SkSurface::MakeRasterN32Premul(2, 2); in RENDERTHREAD_SKIA_PIPELINE_TEST()
183 redNode->setLayerSurface(sk_sp<SkSurface>()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
184 blueNode->setLayerSurface(sk_sp<SkSurface>()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
202 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST()
252 sk_sp<SkSurface> onNewSurface(const SkImageInfo&) override { return nullptr; } in onNewSurface()
DVectorDrawableAtlasTests.cpp35 sk_sp<SkSurface> atlasSurface; in RENDERTHREAD_SKIA_PIPELINE_TEST()
123 sk_sp<SkSurface> atlasSurface; in RENDERTHREAD_SKIA_PIPELINE_TEST()
DRenderNodeDrawableTests.cpp142 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in TEST()
153 auto surfaceLayer = SkSurface::MakeRasterN32Premul(1, 1); in TEST()
170 rootNode->setLayerSurface(sk_sp<SkSurface>()); in TEST()
188 auto surface = SkSurface::MakeRasterN32Premul(400, 800); in TEST()
470 sk_sp<SkSurface> onNewSurface(const SkImageInfo&) override { return nullptr; } in RENDERTHREAD_SKIA_PIPELINE_TEST()
529 sk_sp<SkSurface> surfaceLayer1(new ProjectionLayer(&drawCounter)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
1072 layerNode->setLayerSurface(SkSurface::MakeRasterN32Premul(LAYER_WIDTH, LAYER_HEIGHT)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DSkiaCanvasTests.cpp29 auto surface = SkSurface::MakeRasterN32Premul(10, 10); in TEST()
/frameworks/base/libs/hwui/
DReadback.cpp168 sk_sp<SkSurface> tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto()
176 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copyLayerInto()
DRenderNode.h46 class SkSurface; variable
309 void setLayerSurface(sk_sp<SkSurface> layer) { in setLayerSurface()
330 SkSurface* getLayerSurface() const { in getLayerSurface()
DVectorDrawable.cpp491 sk_sp<SkSurface> surface = mCache.getSurface(&dst); in updateCache()
527 sk_sp<SkSurface> Tree::Cache::getSurface(SkRect* bounds) { in getSurface()
528 sk_sp<SkSurface> surface; in getSurface()
573 sk_sp<SkSurface> vdSurface = mCache.getSurface(&src); in draw()
DRecordingCanvas.h142 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) override;
DVectorDrawable.h684 sk_sp<SkSurface> getSurface(SkRect* bounds);
DRecordingCanvas.cpp776 sk_sp<SkSurface> RecordingCanvas::onNewSurface(const SkImageInfo&, const SkSurfaceProps&) { in onNewSurface()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.cpp122 SkColor TestUtils::getColor(const sk_sp<SkSurface>& surface, int x, int y) { in getColor()
DTestUtils.h301 static SkColor getColor(const sk_sp<SkSurface>& surface, int x, int y);