Home
last modified time | relevance | path

Searched refs:vectorDrawable (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/hwui/pipeline/skia/
DSkiaDisplayList.cpp38 for (auto& vectorDrawable : mVectorDrawables) { in syncContents() local
39 vectorDrawable.first->syncProperties(); in syncContents()
136 auto& vectorDrawable = vectorDrawablePair.first; in prepareListAndChildren() local
137 if (vectorDrawable->isDirty()) { in prepareListAndChildren()
142 const SkRect& bounds = vectorDrawable->properties().getBounds(); in prepareListAndChildren()
147 ->push_back(vectorDrawable); in prepareListAndChildren()
148 vectorDrawable->setPropertyChangeWillBeConsumed(true); in prepareListAndChildren()
DSkiaRecordingCanvas.h70 virtual void drawVectorDrawable(VectorDrawableRoot* vectorDrawable) override;
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedVectorDrawable.java549 VectorDrawable vectorDrawable = (VectorDrawable) res.getDrawable( in inflate() local
551 vectorDrawable.setAllowCaching(false); in inflate()
552 vectorDrawable.setCallback(mCallback); in inflate()
553 pathErrorScale = vectorDrawable.getPixelSize(); in inflate()
557 state.mVectorDrawable = vectorDrawable; in inflate()
597 VectorDrawable vectorDrawable, boolean ignoreInvalidAnim) { in updateAnimatorProperty() argument
607 Object targetNameObj = vectorDrawable.getTargetByName(targetName); in updateAnimatorProperty()
628 updateAnimatorProperty(anim, targetName, vectorDrawable, ignoreInvalidAnim); in updateAnimatorProperty()
686 final VectorDrawable vectorDrawable = mAnimatedVectorState.mVectorDrawable; in applyTheme() local
687 if (vectorDrawable != null && vectorDrawable.canApplyTheme()) { in applyTheme()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DSkiaDisplayListTests.cpp112 VectorDrawableRoot vectorDrawable(new VectorDrawable::Group()); in TEST() local
113 vectorDrawable.mutateStagingProperties()->setBounds(bounds); in TEST()
114 skiaDL.appendVD(&vectorDrawable); in TEST()
126 EXPECT_EQ(vectorDrawable.mutateProperties()->getBounds(), bounds); in TEST()
DRenderNodeDrawableTests.cpp1190 sp<VectorDrawableRoot> vectorDrawable(new VectorDrawableRoot(group)); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
1191 vectorDrawable->mutateStagingProperties()->setScaledSize(CANVAS_WIDTH / 10, CANVAS_HEIGHT / 10); in RENDERTHREAD_SKIA_PIPELINE_TEST()
1196 vectorDrawable->mutateStagingProperties()->setBounds( in RENDERTHREAD_SKIA_PIPELINE_TEST()
1198 canvas.drawVectorDrawable(vectorDrawable.get()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
1199 vectorDrawable->mutateStagingProperties()->setBounds( in RENDERTHREAD_SKIA_PIPELINE_TEST()
1201 canvas.drawVectorDrawable(vectorDrawable.get()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DRenderNodeTests.cpp301 sp<VectorDrawableRoot> vectorDrawable(new VectorDrawableRoot(group)); in RENDERTHREAD_TEST() local
305 canvas.drawVectorDrawable(vectorDrawable.get()); in RENDERTHREAD_TEST()
/frameworks/base/libs/hwui/
DSkiaCanvas.h138 virtual void drawVectorDrawable(VectorDrawableRoot* vectorDrawable) override;
DSkiaCanvas.cpp686 void SkiaCanvas::drawVectorDrawable(VectorDrawableRoot* vectorDrawable) { in drawVectorDrawable() argument
687 vectorDrawable->drawStaging(this); in drawVectorDrawable()