Home
last modified time | relevance | path

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

12

/frameworks/native/libs/renderengine/skia/
DAutoBackendTexture.h104 sk_sp<SkSurface> getOrCreateSurface(ui::Dataspace dataspace, GrDirectContext* context) { in getOrCreateSurface()
137 sk_sp<SkSurface> getOrCreateSurface(ui::Dataspace dataspace, GrDirectContext* context);
146 static void releaseSurfaceProc(SkSurface::ReleaseContext releaseContext);
153 sk_sp<SkSurface> mSurface = nullptr;
DAutoBackendTexture.cpp73 void AutoBackendTexture::releaseSurfaceProc(SkSurface::ReleaseContext releaseContext) { in releaseSurfaceProc()
116 sk_sp<SkSurface> AutoBackendTexture::getOrCreateSurface(ui::Dataspace dataspace, in getOrCreateSurface()
121 sk_sp<SkSurface> surface = in getOrCreateSurface()
122 SkSurface::MakeFromBackendTexture(context, mBackendTexture, in getOrCreateSurface()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.h59 const Rect& contentDrawBounds, sk_sp<SkSurface> surface,
97 sk_sp<SkSurface> surface, const SkMatrix& preTransform);
101 SkCanvas* tryCapture(SkSurface* surface, RenderNode* root, const LayerUpdateQueue& dirtyLayers);
103 void endCapture(SkSurface* surface);
DGLFunctorDrawable.cpp88 sk_sp<SkSurface> tmpSurface; in onDraw()
95 SkSurface::MakeRenderTarget(directContext, SkBudgeted::kYes, surfaceInfo); in onDraw()
99 if (!tmpSurface->getBackendRenderTarget(SkSurface::kFlushWrite_BackendHandleAccess) in onDraw()
DSkiaPipeline.cpp172 SkSurface* layer = node->getLayerSurface(); in createOrUpdateLayer()
179 node->setLayerSurface(SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in createOrUpdateLayer()
343 SkCanvas* SkiaPipeline::tryCapture(SkSurface* surface, RenderNode* root, in tryCapture()
399 void SkiaPipeline::endCapture(SkSurface* surface) { in endCapture()
443 const Rect& contentDrawBounds, sk_sp<SkSurface> surface, in renderFrame()
648 const Rect& contentDrawBounds, sk_sp<SkSurface> surface, in renderOverdraw()
652 sk_sp<SkSurface> offscreen = surface->makeSurface(offscreenInfo); in renderOverdraw()
DSkiaLayer.h30 sk_sp<SkSurface> layerSurface;
DStretchMask.h58 sk_sp<SkSurface> mMaskSurface;
DSkiaOpenGLPipeline.cpp107 sk_sp<SkSurface> surface(SkSurface::MakeFromBackendRenderTarget( in draw()
DStretchMask.cpp35 mMaskSurface = SkSurface::MakeRenderTarget( in draw()
DSkiaVulkanPipeline.cpp76 sk_sp<SkSurface> backBuffer = mVkSurface->getCurrentSkSurface(); in draw()
/frameworks/base/libs/hwui/tests/unit/
DCacheManagerTests.cpp43 std::vector<sk_sp<SkSurface>> surfaces; in RENDERTHREAD_SKIA_PIPELINE_TEST()
47 sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(grContext, SkBudgeted::kYes, info); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DSkiaPipelineTests.cpp56 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST()
78 auto surface = SkSurface::MakeRasterN32Premul(2, 2); in RENDERTHREAD_SKIA_PIPELINE_TEST()
102 auto surface = SkSurface::MakeRasterN32Premul(2, 2); in RENDERTHREAD_SKIA_PIPELINE_TEST()
118 auto surfaceLayer1 = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST()
129 auto surfaceLayer2 = SkSurface::MakeRasterN32Premul(2, 2); in RENDERTHREAD_SKIA_PIPELINE_TEST()
152 redNode->setLayerSurface(sk_sp<SkSurface>()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
153 blueNode->setLayerSurface(sk_sp<SkSurface>()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
171 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST()
221 sk_sp<SkSurface> onNewSurface(const SkImageInfo&) override { return nullptr; } in onNewSurface()
430 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DRenderNodeDrawableTests.cpp143 auto surface = SkSurface::MakeRasterN32Premul(1, 1); in TEST()
154 auto surfaceLayer = SkSurface::MakeRasterN32Premul(1, 1); in TEST()
171 rootNode->setLayerSurface(sk_sp<SkSurface>()); in TEST()
189 auto surface = SkSurface::MakeRasterN32Premul(400, 800); in TEST()
471 sk_sp<SkSurface> onNewSurface(const SkImageInfo&) override { return nullptr; } in RENDERTHREAD_SKIA_PIPELINE_TEST()
530 sk_sp<SkSurface> surfaceLayer1(new ProjectionLayer(&drawCounter)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
1076 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/renderthread/
DVulkanSurface.h28 class SkSurface; variable
43 sk_sp<SkSurface> getCurrentSkSurface() { in getCurrentSkSurface()
57 sk_sp<SkSurface> skSurface;
DVulkanManager.cpp497 nsecs_t VulkanManager::finishFrame(SkSurface* surface) { in finishFrame()
529 surface->flush(SkSurface::BackendSurfaceAccess::kPresent, flushInfo); in finishFrame()
541 surface->getBackendRenderTarget(SkSurface::kFlushRead_BackendHandleAccess); in finishFrame()
DVulkanManager.h89 nsecs_t finishFrame(SkSurface* surface);
/frameworks/native/libs/renderengine/skia/debug/
DSkiaCapture.h49 SkCanvas* tryCapture(SkSurface* surface);
62 SkCanvas* tryOffscreenCapture(SkSurface* surface, OffscreenState* state);
DSkiaCapture.cpp44 SkCanvas* SkiaCapture::tryCapture(SkSurface* surface) NO_THREAD_SAFETY_ANALYSIS { in tryCapture()
98 SkCanvas* SkiaCapture::tryOffscreenCapture(SkSurface* surface, OffscreenState* state) { in tryOffscreenCapture()
/frameworks/native/libs/renderengine/skia/filters/
DGaussianBlurFilter.cpp48 sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, scaledInfo); in generate()
/frameworks/base/libs/hwui/
DReadback.cpp143 sk_sp<SkSurface> tmpSurface = in copySurfaceInto()
144 SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copySurfaceInto()
151 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copySurfaceInto()
353 sk_sp<SkSurface> tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto()
361 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copyLayerInto()
DRenderNode.h49 class SkSurface; variable
323 void setLayerSurface(sk_sp<SkSurface> layer) { in setLayerSurface()
351 SkSurface* getLayerSurface() const { in getLayerSurface()
/frameworks/base/libs/hwui/apex/
Dandroid_canvas.cpp48 sk_sp<SkSurface> surface = SkSurface::MakeRasterDirect(imageInfo, buffer->bits, rowBytes); in convert()
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp167 sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(bufferWidth, bufferHeight); in draw()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.cpp122 SkColor TestUtils::getColor(const sk_sp<SkSurface>& surface, int x, int y) { in getColor()

12