Home
last modified time | relevance | path

Searched refs:RenderNode (Results 1 – 25 of 122) sorted by relevance

12345

/frameworks/base/core/jni/
Dandroid_view_RenderNode.cpp42 (reinterpret_cast<RenderNode*>(renderNodePtr)->mutateStagingProperties().prop(val) \
43 ? (reinterpret_cast<RenderNode*>(renderNodePtr)->setPropertyFieldsDirty(dirtyFlag), true) \
51 RenderNode* renderNode = reinterpret_cast<RenderNode*>(renderNodePtr); in android_view_RenderNode_output()
56 RenderNode* renderNode = reinterpret_cast<RenderNode*>(renderNodePtr); in android_view_RenderNode_getDebugSize()
61 RenderNode* renderNode = new RenderNode(); in android_view_RenderNode_create()
71 static void releaseRenderNode(RenderNode* renderNode) { in releaseRenderNode()
82 RenderNode* renderNode = reinterpret_cast<RenderNode*>(renderNodePtr); in android_view_RenderNode_setDisplayList()
88 return reinterpret_cast<RenderNode*>(renderNodePtr)->isValid(); in android_view_RenderNode_isValid()
97 return SET_AND_DIRTY(mutateLayerProperties().setType, layerType, RenderNode::GENERIC); in android_view_RenderNode_setLayerType()
102 return SET_AND_DIRTY(mutateLayerProperties().setFromPaint, paint, RenderNode::GENERIC); in android_view_RenderNode_setLayerPaint()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DRenderNodePerfTest.java24 import android.view.RenderNode;
38 final RenderNode node = RenderNode.create("benchmark", null); in testMeasureRenderNodeJniOverhead()
50 RenderNode node = RenderNode.create(null, null); in testCreateRenderNodeNoName()
59 RenderNode node = RenderNode.create("LinearLayout", null); in testCreateRenderNode()
67 RenderNode node = RenderNode.create("LinearLayout", null); in testIsValid()
76 RenderNode node = RenderNode.create("LinearLayout", null); in testStartEnd()
86 RenderNode[] nodes = new RenderNode[30]; in testStartEndDeepHierarchy()
89 nodes[i] = RenderNode.create("LinearLayout", null); in testStartEndDeepHierarchy()
105 RenderNode node = RenderNode.create("LinearLayout", null); in testHasIdentityMatrix()
114 RenderNode node = RenderNode.create("LinearLayout", null); in testSetOutline()
DCanvasPerfTest.java27 import android.view.RenderNode;
42 RenderNode node = RenderNode.create("benchmark", null); in testBasicViewGroupDraw()
43 RenderNode child = RenderNode.create("child", null); in testBasicViewGroupDraw()
72 RenderNode node = RenderNode.create("benchmark", null); in testRecordSimpleBitmapView()
/frameworks/base/libs/hwui/
DRenderNode.cpp48 void onMaybeRemovedFromTree(RenderNode* node) override { in onMaybeRemovedFromTree()
56 RenderNode::RenderNode() in RenderNode() function in android::uirenderer::RenderNode
65 RenderNode::~RenderNode() { in ~RenderNode()
72 void RenderNode::setStagingDisplayList(DisplayList* displayList) { in setStagingDisplayList()
83 void RenderNode::output() { in output()
89 void RenderNode::output(std::ostream& output, uint32_t level) { in output()
107 void RenderNode::copyTo(proto::RenderNode *pnode) { in copyTo()
179 int RenderNode::getDebugSize() { in getDebugSize()
180 int size = sizeof(RenderNode); in getDebugSize()
190 void RenderNode::prepareTree(TreeInfo& info) { in prepareTree()
[all …]
DAnimator.cpp85 void BaseRenderNodeAnimator::attach(RenderNode* target) { in attach()
155 RenderNode* oldTarget = mTarget; in pushStaging()
311 RenderNode::DirtyPropertyMask dirtyMask;
318 …{RenderNode::TRANSLATION_X, &RenderProperties::getTranslationX, &RenderProperties::setTranslationX…
319 …{RenderNode::TRANSLATION_Y, &RenderProperties::getTranslationY, &RenderProperties::setTranslationY…
320 …{RenderNode::TRANSLATION_Z, &RenderProperties::getTranslationZ, &RenderProperties::setTranslationZ…
321 {RenderNode::SCALE_X, &RenderProperties::getScaleX, &RenderProperties::setScaleX },
322 {RenderNode::SCALE_Y, &RenderProperties::getScaleY, &RenderProperties::setScaleY },
323 {RenderNode::ROTATION, &RenderProperties::getRotation, &RenderProperties::setRotation },
324 {RenderNode::ROTATION_X, &RenderProperties::getRotationX, &RenderProperties::setRotationX },
[all …]
DAnimator.h37 class RenderNode; variable
79 void attach(RenderNode* target);
97 RenderNode* target() { return mTarget; } in target()
98 RenderNode* stagingTarget() { return mStagingTarget; } in stagingTarget()
130 virtual float getValue(RenderNode* target) const = 0;
131 virtual void setValue(RenderNode* target, float value) = 0;
139 RenderNode* mTarget;
140 RenderNode* mStagingTarget;
211 virtual float getValue(RenderNode* target) const override;
212 virtual void setValue(RenderNode* target, float value) override;
[all …]
DLayerUpdateQueue.h30 class RenderNode; variable
36 Entry(RenderNode* renderNode, const Rect& damage) in Entry()
39 sp<RenderNode> renderNode;
44 void enqueueLayerWithDamage(RenderNode* renderNode, Rect dirty);
DRenderNode.h62 class RenderNode; variable
76 class RenderNode : public VirtualLightRefBase {
97 ANDROID_API RenderNode();
98 ANDROID_API virtual ~RenderNode();
111 void copyTo(proto::RenderNode* node);
221 virtual void onPositionUpdated(RenderNode& node, const TreeInfo& info) = 0;
225 virtual void onPositionLost(RenderNode& node, const TreeInfo* info) = 0;
391 void onMaybeRemovedFromTree(RenderNode* node) override { in onMaybeRemovedFromTree()
404 FatVector<sp<RenderNode>, 10> mMarked;
DAnimationContext.h33 class RenderNode; variable
61 AnimationHandle(RenderNode& animatingNode, AnimationContext& context);
67 sp<RenderNode> mRenderNode;
89 ANDROID_API void addAnimatingRenderNode(RenderNode& node);
DFrameBuilder.h72 void deferRenderNode(RenderNode& renderNode);
74 void deferRenderNode(float tx, float ty, Rect clipRect, RenderNode& renderNode);
76 void deferRenderNodeScene(const std::vector< sp<RenderNode> >& nodes,
179 const BeginLayerOp* beginLayerOp, RenderNode* renderNode);
193 void deferNodePropsAndOps(RenderNode& node);
201 void deferProjectedChildren(const RenderNode& renderNode);
203 void deferNodeOps(const RenderNode& renderNode);
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.h68 RenderNode* rootRenderNode, IContextFactory* contextFactory);
78 bool createOrUpdateLayer(RenderNode* node, const DamageAccumulator& dmgAccumulator) { in createOrUpdateLayer()
106 static void destroyLayer(RenderNode* node);
133 int64_t syncQueued, RenderNode* target);
139 void prepareAndDraw(RenderNode* node);
141 void buildLayer(RenderNode* node);
143 void markLayerInUse(RenderNode* node);
162 void addRenderNode(RenderNode* node, bool placeFront);
163 void removeRenderNode(RenderNode* node);
198 CanvasContext(RenderThread& thread, bool translucent, RenderNode* rootRenderNode,
[all …]
DRenderProxy.h43 class RenderNode; variable
72 … ANDROID_API RenderProxy(bool translucent, RenderNode* rootNode, IContextFactory* contextFactory);
95 ANDROID_API void buildLayer(RenderNode* node);
122 ANDROID_API void addRenderNode(RenderNode* node, bool placeFront);
123 ANDROID_API void removeRenderNode(RenderNode* node);
124 ANDROID_API void drawRenderNode(RenderNode* node);
/frameworks/base/libs/hwui/tests/unit/
DLayerUpdateQueueTests.cpp33 static sp<RenderNode> createSyncedNode(uint32_t width, uint32_t height) { in createSyncedNode()
34 sp<RenderNode> node = TestUtils::createNode(0, 0, width, height, nullptr); in createSyncedNode()
40 sp<RenderNode> a = createSyncedNode(100, 100); in TEST()
41 sp<RenderNode> b = createSyncedNode(200, 200); in TEST()
42 sp<RenderNode> c = createSyncedNode(200, 200); in TEST()
60 sp<RenderNode> a = createSyncedNode(100, 100); in TEST()
73 sp<RenderNode> a = createSyncedNode(100, 100); in TEST()
DSkiaDisplayListTests.cpp68 sp<RenderNode> renderNode = new RenderNode(); in TEST()
135 [](RenderNode*, TreeObserver&, TreeInfo&, bool) {})); in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
145 [](RenderNode*, TreeObserver&, TreeInfo&, bool) {})); in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
149 sp<RenderNode> renderNode = new RenderNode(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
155 … [&hasRun, renderNode, infoPtr](RenderNode* n, TreeObserver& observer, TreeInfo& i, bool r) { in RENDERTHREAD_SKIA_PIPELINE_TEST()
169 sp<RenderNode> renderNode = new RenderNode(); in TEST()
172 skiaDL.updateChildren([renderNode](RenderNode* n) { in TEST()
/frameworks/base/libs/hwui/tests/common/scenes/
DShadowShaderAnimation.cpp30 std::vector< sp<RenderNode> > cards;
37 sp<RenderNode> card = createCard(outset, outset, in createContent()
50 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
54 sp<RenderNode> createCard(int x, int y, int width, int height) { in createCard()
DShadowGridAnimation.cpp30 std::vector< sp<RenderNode> > cards;
37 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); in createContent()
50 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
54 sp<RenderNode> createCard(int x, int y, int width, int height) { in createCard()
DShadowGrid2Animation.cpp30 std::vector< sp<RenderNode> > cards;
37 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); in createContent()
50 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
54 sp<RenderNode> createCard(int x, int y, int width, int height) { in createCard()
DSimpleGradientAnimation.cpp32 std::vector< sp<RenderNode> > cards;
36 sp<RenderNode> card = createCard(0, 0, width, height); in createContent()
45 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
49 sp<RenderNode> createCard(int x, int y, int width, int height) { in createCard()
DSimpleColorMatrixAnimation.cpp33 std::vector< sp<RenderNode> > cards;
37 sp<RenderNode> card = createCard(0, 0, width, height); in createContent()
46 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
50 sp<RenderNode> createCard(int x, int y, int width, int height) { in createCard()
DPartialDamageAnimation.cpp31 std::vector< sp<RenderNode> > cards;
45 sp<RenderNode> card = TestUtils::createNode(x, y, in createContent()
59 cards[0]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DHwLayerAnimation.cpp30 sp<RenderNode> card;
44 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DHwLayerSizeAnimation.cpp31 sp<RenderNode> card;
46 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h163 virtual void onMaybeRemovedFromTree(RenderNode* node) {} in onMaybeRemovedFromTree()
210 static sp<RenderNode> createNode(int left, int top, int right, int bottom, in createNode()
218 sp<RenderNode> node = new RenderNode(); in createNode()
232 static sp<RenderNode> createNode(int left, int top, int right, int bottom, in createNode()
240 sp<RenderNode> node = new RenderNode(); in createNode()
252 static void recordNode(RenderNode& node, in recordNode()
260 static sp<RenderNode> createSkiaNode(int left, int top, int right, int bottom,
268 sp<RenderNode> node = new RenderNode();
296 static void syncHierarchyPropertiesAndDisplayList(sp<RenderNode>& node) { in syncHierarchyPropertiesAndDisplayList()
300 static sp<RenderNode>& getSyncedNode(sp<RenderNode>& node) { in getSyncedNode()
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DRenderNodeDrawable.h27 class RenderNode; variable
49 explicit RenderNodeDrawable(RenderNode* node, SkCanvas* canvas, bool composeLayer = true,
71 RenderNode* getRenderNode() const { return mRenderNode.get(); } in getRenderNode()
106 sp<RenderNode> mRenderNode;
DSkiaPipeline.h45 bool createOrUpdateLayer(RenderNode* node,
49 const std::vector< sp<RenderNode> >& nodes, bool opaque, const Rect &contentDrawBounds,
52 static void destroyLayer(RenderNode* node);
111 const std::vector< sp<RenderNode> >& nodes, bool opaque, const Rect &contentDrawBounds,
119 const std::vector< sp<RenderNode> >& nodes, const Rect &contentDrawBounds,

12345