Home
last modified time | relevance | path

Searched refs:canvasContext (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/libs/hwui/
DTreeInfo.cpp23 TreeInfo::TreeInfo(TraversalMode mode, renderthread::CanvasContext& canvasContext) in TreeInfo() argument
26 , canvasContext(canvasContext) in TreeInfo()
27 , disableForceDark(canvasContext.getForceDarkType() == ForceDarkType::NONE ? 1 : 0) in TreeInfo()
28 , forceDarkType(canvasContext.getForceDarkType()) in TreeInfo()
29 , screenSize(canvasContext.getNextFrameSize()) {} in TreeInfo()
DTreeInfo.h77 TreeInfo(TraversalMode mode, renderthread::CanvasContext& canvasContext);
83 renderthread::CanvasContext& canvasContext; variable
DRenderNode.cpp197 if (info.canvasContext.createOrUpdateLayer(this, *info.damageAccumulator, info.errorHandler)) { in pushLayerUpdate()
215 info.canvasContext.markLayerInUse(this); in pushLayerUpdate()
/frameworks/base/libs/hwui/tests/unit/
DCanvasContextTests.cpp39 std::unique_ptr<CanvasContext> canvasContext( in RENDERTHREAD_TEST() local
42 ASSERT_FALSE(canvasContext->hasOutputTarget()); in RENDERTHREAD_TEST()
44 canvasContext->destroy(); in RENDERTHREAD_TEST()
58 std::unique_ptr<CanvasContext> canvasContext( in RENDERTHREAD_TEST() local
60 canvasContext->buildLayer(node.get()); in RENDERTHREAD_TEST()
DRenderNodeTests.cpp275 std::unique_ptr<CanvasContext> canvasContext( in RENDERTHREAD_TEST() local
277 TreeInfo info(TreeInfo::MODE_RT_ONLY, *canvasContext.get()); in RENDERTHREAD_TEST()
298 canvasContext->destroy(); in RENDERTHREAD_TEST()
311 std::unique_ptr<CanvasContext> canvasContext( in RENDERTHREAD_TEST() local
313 canvasContext->setSurface(nullptr); in RENDERTHREAD_TEST()
314 TreeInfo info(TreeInfo::MODE_RT_ONLY, *canvasContext.get()); in RENDERTHREAD_TEST()
332 canvasContext->destroy(); in RENDERTHREAD_TEST()
DSkiaDisplayListTests.cpp169 std::unique_ptr<CanvasContext> canvasContext( in RENDERTHREAD_TEST() local
171 TreeInfo info(TreeInfo::MODE_FULL, *canvasContext.get()); in RENDERTHREAD_TEST()
222 canvasContext->destroy(); in RENDERTHREAD_TEST()
228 std::unique_ptr<CanvasContext> canvasContext( in RENDERTHREAD_TEST() local
237 canvasContext->setSurface(surface.get()); in RENDERTHREAD_TEST()
239 TreeInfo info(TreeInfo::MODE_FULL, *canvasContext.get()); in RENDERTHREAD_TEST()
DRenderNodeDrawableTests.cpp339 std::unique_ptr<CanvasContext> canvasContext( in RENDERTHREAD_TEST() local
341 TreeInfo info(TreeInfo::MODE_RT_ONLY, *canvasContext.get()); in RENDERTHREAD_TEST()
403 std::unique_ptr<CanvasContext> canvasContext( in RENDERTHREAD_TEST() local
405 TreeInfo info(TreeInfo::MODE_RT_ONLY, *canvasContext.get()); in RENDERTHREAD_TEST()
523 std::unique_ptr<CanvasContext> canvasContext( in RENDERTHREAD_TEST() local
525 TreeInfo info(TreeInfo::MODE_RT_ONLY, *canvasContext.get()); in RENDERTHREAD_TEST()
623 std::unique_ptr<CanvasContext> canvasContext( in RENDERTHREAD_TEST() local
625 TreeInfo info(TreeInfo::MODE_RT_ONLY, *canvasContext.get()); in RENDERTHREAD_TEST()
639 std::unique_ptr<CanvasContext> canvasContext( in drawNode() local
641 TreeInfo info(TreeInfo::MODE_RT_ONLY, *canvasContext.get()); in drawNode()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaDisplayList.cpp100 if (info.prepareTextures && !info.canvasContext.pinImages(mMutableImages)) { in prepareListAndChildren()
105 info.canvasContext.unpinImages(); in prepareListAndChildren()
109 auto grContext = info.canvasContext.getGrContext(); in prepareListAndChildren()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_RenderNode.cpp652 static_cast<jlong>(info.canvasContext.getFrameNumber()), in android_view_RenderNode_requestPositionUpdates()
658 static_cast<jlong>(info.canvasContext.getFrameNumber()), in android_view_RenderNode_requestPositionUpdates()
691 info ? info->canvasContext.getFrameNumber() : 0); in android_view_RenderNode_requestPositionUpdates()
750 info.canvasContext.getFrameNumber(), result.width, result.height, in android_view_RenderNode_requestPositionUpdates()