Home
last modified time | relevance | path

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

12345

/frameworks/base/core/jni/
Dandroid_view_RenderNode.cpp43 (reinterpret_cast<RenderNode*>(renderNodePtr)->mutateStagingProperties().prop(val) \
44 ? (reinterpret_cast<RenderNode*>(renderNodePtr)->setPropertyFieldsDirty(dirtyFlag), true) \
52 RenderNode* renderNode = reinterpret_cast<RenderNode*>(renderNodePtr); in android_view_RenderNode_output()
57 RenderNode* renderNode = reinterpret_cast<RenderNode*>(renderNodePtr); in android_view_RenderNode_getDebugSize()
62 RenderNode* renderNode = new RenderNode(); in android_view_RenderNode_create()
72 static void releaseRenderNode(RenderNode* renderNode) { in releaseRenderNode()
83 RenderNode* renderNode = reinterpret_cast<RenderNode*>(renderNodePtr); in android_view_RenderNode_setDisplayList()
89 return reinterpret_cast<RenderNode*>(renderNodePtr)->isValid(); in android_view_RenderNode_isValid()
98 return SET_AND_DIRTY(mutateLayerProperties().setType, layerType, RenderNode::GENERIC); in android_view_RenderNode_setLayerType()
103 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.java20 import android.graphics.RenderNode;
36 final RenderNode node = RenderNode.create("benchmark", null); in testMeasureRenderNodeJniOverhead()
48 RenderNode.create(null, null); in testCreateRenderNodeNoName()
56 RenderNode.create("LinearLayout", null); in testCreateRenderNode()
63 RenderNode node = RenderNode.create("LinearLayout", null); in testIsValid()
72 RenderNode node = RenderNode.create("LinearLayout", null); in testStartEnd()
82 RenderNode[] nodes = new RenderNode[30]; in testStartEndDeepHierarchy()
84 nodes[i] = RenderNode.create("LinearLayout", null); in testStartEndDeepHierarchy()
100 RenderNode node = RenderNode.create("LinearLayout", null); in testHasIdentityMatrix()
109 RenderNode node = RenderNode.create("LinearLayout", null); in testSetOutline()
DCanvasPerfTest.java24 import android.graphics.RenderNode;
43 RenderNode node = RenderNode.create("benchmark", null); in testBasicViewGroupDraw()
44 RenderNode child = RenderNode.create("child", null); in testBasicViewGroupDraw()
72 RenderNode node = RenderNode.create("benchmark", null); in testRecordSimpleBitmapView()
/frameworks/base/libs/hwui/
DRenderNode.cpp45 void onMaybeRemovedFromTree(RenderNode* node) override { node->onRemovedFromTree(mTreeInfo); } 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()
106 int RenderNode::getDebugSize() { in getDebugSize()
107 int size = sizeof(RenderNode); in getDebugSize()
117 void RenderNode::prepareTree(TreeInfo& info) { in prepareTree()
127 void RenderNode::addAnimator(const sp<BaseRenderNodeAnimator>& animator) { in addAnimator()
[all …]
DAnimator.cpp83 void BaseRenderNodeAnimator::attach(RenderNode* target) { in attach()
155 RenderNode* oldTarget = mTarget; in pushStaging()
311 RenderNode::DirtyPropertyMask dirtyMask;
318 {RenderNode::TRANSLATION_X, &RenderProperties::getTranslationX,
320 {RenderNode::TRANSLATION_Y, &RenderProperties::getTranslationY,
322 {RenderNode::TRANSLATION_Z, &RenderProperties::getTranslationZ,
324 {RenderNode::SCALE_X, &RenderProperties::getScaleX, &RenderProperties::setScaleX},
325 {RenderNode::SCALE_Y, &RenderProperties::getScaleY, &RenderProperties::setScaleY},
326 {RenderNode::ROTATION, &RenderProperties::getRotation, &RenderProperties::setRotation},
327 {RenderNode::ROTATION_X, &RenderProperties::getRotationX, &RenderProperties::setRotationX},
[all …]
DAnimator.h37 class RenderNode; variable
77 void attach(RenderNode* target);
96 RenderNode* target() { return mTarget; } in target()
97 RenderNode* stagingTarget() { return mStagingTarget; } in stagingTarget()
129 virtual float getValue(RenderNode* target) const = 0;
130 virtual void setValue(RenderNode* target, float value) = 0;
138 RenderNode* mTarget;
139 RenderNode* mStagingTarget;
204 virtual float getValue(RenderNode* target) const override;
205 virtual void setValue(RenderNode* target, float value) override;
[all …]
DLayerUpdateQueue.h31 class RenderNode; variable
38 Entry(RenderNode* renderNode, const Rect& damage) in Entry()
40 sp<RenderNode> renderNode;
45 void enqueueLayerWithDamage(RenderNode* renderNode, Rect dirty);
DAnimationContext.h33 class RenderNode; variable
62 AnimationHandle(RenderNode& animatingNode, AnimationContext& context);
68 sp<RenderNode> mRenderNode;
90 ANDROID_API void addAnimatingRenderNode(RenderNode& node);
/frameworks/base/libs/hwui/tests/common/scenes/
DTvApp.cpp55 sp<RenderNode> mBg;
56 std::vector<sp<RenderNode>> mCards;
57 std::vector<sp<RenderNode>> mInfoAreas;
58 std::vector<sp<RenderNode>> mImages;
59 std::vector<sp<RenderNode>> mOverlays;
77 sp<RenderNode> card = createCard(x, y, dp(160), dp(160), isFirstCard); in createContent()
94 sp<RenderNode> createBitmapNode(Canvas& canvas, SkColor color, int left, int top, int width, in createBitmapNode()
106 sp<RenderNode> createSharedBitmapNode(Canvas& canvas, int left, int top, int width, int height, in createSharedBitmapNode()
114 sp<RenderNode> createInfoNode(Canvas& canvas, int left, int top, int width, int height, in createInfoNode()
132 sp<RenderNode> createColorNode(Canvas& canvas, int left, int top, int width, int height, in createColorNode()
[all …]
DShadowShaderAnimation.cpp29 std::vector<sp<RenderNode> > cards;
36 sp<RenderNode> card = in createContent()
49 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
54 sp<RenderNode> createCard(int x, int y, int width, int height) { in createCard()
DShadowGridAnimation.cpp29 std::vector<sp<RenderNode> > cards;
36 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); in createContent()
49 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
54 sp<RenderNode> createCard(int x, int y, int width, int height) { in createCard()
DShadowGrid2Animation.cpp29 std::vector<sp<RenderNode> > cards;
36 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); in createContent()
49 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
54 sp<RenderNode> createCard(int x, int y, int width, int height) { in createCard()
DSimpleGradientAnimation.cpp30 std::vector<sp<RenderNode> > cards;
34 sp<RenderNode> card = createCard(0, 0, width, height); in createContent()
43 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
48 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()
51 sp<RenderNode> createCard(int x, int y, int width, int height) { in createCard()
DPartialDamageAnimation.cpp30 std::vector<sp<RenderNode> > cards;
41 sp<RenderNode> card = in createContent()
55 cards[0]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.h66 static CanvasContext* create(RenderThread& thread, bool translucent, RenderNode* rootRenderNode,
77 bool createOrUpdateLayer(RenderNode* node, const DamageAccumulator& dmgAccumulator, in createOrUpdateLayer()
124 void prepareTree(TreeInfo& info, int64_t* uiFrameInfo, int64_t syncQueued, RenderNode* target);
130 void prepareAndDraw(RenderNode* node);
132 void buildLayer(RenderNode* node);
133 void markLayerInUse(RenderNode* node);
150 void addRenderNode(RenderNode* node, bool placeFront);
151 void removeRenderNode(RenderNode* node);
203 CanvasContext(RenderThread& thread, bool translucent, RenderNode* rootRenderNode,
262 std::vector<sp<RenderNode>> mRenderNodes;
[all …]
DRenderProxy.h37 class RenderNode; variable
64 ANDROID_API RenderProxy(bool opaque, RenderNode* rootNode, IContextFactory* contextFactory);
88 ANDROID_API void buildLayer(RenderNode* node);
113 ANDROID_API void addRenderNode(RenderNode* node, bool placeFront);
114 ANDROID_API void removeRenderNode(RenderNode* node);
115 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.cpp75 sp<RenderNode> renderNode = new RenderNode(); in TEST()
167 [](RenderNode*, TreeObserver&, TreeInfo&, bool) {})); in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
178 [](RenderNode*, TreeObserver&, TreeInfo&, bool) {})); in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
182 sp<RenderNode> renderNode = new RenderNode(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
189 [&hasRun, renderNode, infoPtr](RenderNode* n, TreeObserver& observer, TreeInfo& i, in RENDERTHREAD_SKIA_PIPELINE_TEST()
238 observer, info, false, [](RenderNode*, TreeObserver&, TreeInfo&, bool) {})); in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
262 observer, info, false, [](RenderNode*, TreeObserver&, TreeInfo&, bool) {})); in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
282 observer, info, false, [](RenderNode*, TreeObserver&, TreeInfo&, bool) {})); in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
304 observer, info, false, [](RenderNode*, TreeObserver&, TreeInfo&, bool) {})); in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
326 observer, info, false, [](RenderNode*, TreeObserver&, TreeInfo&, bool) {})); in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/text/
DStaticLayoutPerfTest.java21 import android.graphics.RenderNode;
263 final RenderNode node = RenderNode.create("benchmark", null); in testDraw_FixedText_NoStyled()
279 final RenderNode node = RenderNode.create("benchmark", null); in testDraw_RandomText_Styled()
296 final RenderNode node = RenderNode.create("benchmark", null); in testDraw_RandomText_NoStyled()
313 final RenderNode node = RenderNode.create("benchmark", null); in testDraw_RandomText_Styled_WithoutCache()
331 final RenderNode node = RenderNode.create("benchmark", null); in testDraw_RandomText_NoStyled_WithoutCache()
349 final RenderNode node = RenderNode.create("benchmark", null); in testDraw_PrecomputedText_Styled()
367 final RenderNode node = RenderNode.create("benchmark", null); in testDraw_PrecomputedText_NoStyled()
385 final RenderNode node = RenderNode.create("benchmark", null); in testDraw_PrecomputedText_Styled_WithoutCache()
404 final RenderNode node = RenderNode.create("benchmark", null); in testDraw_PrecomputedText_NoStyled_WithoutCache()
DCanvasDrawTextTest.java19 import android.graphics.RenderNode;
55 final RenderNode node = RenderNode.create("benchmark", null); in drawText_LongText_SmallWindow()
56 final RenderNode child = RenderNode.create("child", null); in drawText_LongText_SmallWindow()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h132 virtual void onMaybeRemovedFromTree(RenderNode* node) {} in onMaybeRemovedFromTree()
171 static sp<RenderNode> createNode( in createNode()
174 sp<RenderNode> node = new RenderNode(); in createNode()
188 static sp<RenderNode> createNode( in createNode()
191 sp<RenderNode> node = new RenderNode(); in createNode()
203 static void recordNode(RenderNode& node, std::function<void(Canvas&)> contentCallback) { in recordNode()
210 static sp<RenderNode> createSkiaNode(
215 sp<RenderNode> node = new RenderNode();
243 static void syncHierarchyPropertiesAndDisplayList(sp<RenderNode>& node) { in syncHierarchyPropertiesAndDisplayList()
247 static sp<RenderNode>& getSyncedNode(sp<RenderNode>& node) { in getSyncedNode()
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DRenderNodeDrawable.h29 class RenderNode; variable
51 explicit RenderNodeDrawable(RenderNode* node, SkCanvas* canvas, bool composeLayer = true,
71 RenderNode* getRenderNode() const { return mRenderNode.get(); } in getRenderNode()
106 sp<RenderNode> mRenderNode;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DMyLittleTextureView.java28 import android.graphics.RenderNode;
36 private RenderNode mContent = new RenderNode("CustomRenderer");
55 RenderNode childNode = new RenderNode("shadowCaster"); in onCreate()
/frameworks/base/core/java/android/view/
DViewAnimationHostBridge.java19 import android.graphics.RenderNode;
26 public class ViewAnimationHostBridge implements RenderNode.AnimationHost {
37 public void registerAnimatingRenderNode(RenderNode animator) { in registerAnimatingRenderNode()

12345