/frameworks/base/libs/hwui/jni/ |
D | android_graphics_Matrix.cpp | 24 static_assert(sizeof(SkMatrix) == 40, "Unexpected sizeof(SkMatrix), " 35 SkMatrix* obj = reinterpret_cast<SkMatrix*>(objHandle); in finalizer() 44 const SkMatrix* src = reinterpret_cast<SkMatrix*>(srcHandle); in create() 45 SkMatrix* obj = new SkMatrix(); in create() 58 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in mapPoints() 76 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in mapRect__RectFRectF() 86 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in setRectToRect() 87 SkMatrix::ScaleToFit stf = static_cast<SkMatrix::ScaleToFit>(stfHandle); in setRectToRect() 98 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in setPolyToPoly() 118 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in getValues() [all …]
|
D | Shader.cpp | 65 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in BitmapShader_constructor() 126 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in LinearGradient_create() 156 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in RadialGradient_create() 182 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in SweepGradient_create() 194 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in ComposeShader_create() 220 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in RuntimeShader_create()
|
D | android_graphics_RenderNode.cpp | 105 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); in android_view_RenderNode_setStaticMatrix() 110 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); in android_view_RenderNode_setAnimationMatrix() 342 SkMatrix* outMatrix = reinterpret_cast<SkMatrix*>(outMatrixPtr); in android_view_RenderNode_getAnimationMatrix() 344 const SkMatrix* animationMatrix = renderNode->stagingProperties().getAnimationMatrix(); in android_view_RenderNode_getAnimationMatrix() 440 SkMatrix* outMatrix = reinterpret_cast<SkMatrix*>(outMatrixPtr); in getTransformMatrix() 443 const SkMatrix* transformMatrix = renderNode->stagingProperties().getTransformMatrix(); in getTransformMatrix() 460 SkMatrix* outMatrix = reinterpret_cast<SkMatrix*>(outMatrixPtr); in android_view_RenderNode_getInverseTransformMatrix()
|
D | android_graphics_TextureLayer.cpp | 49 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); in TextureLayer_setTransform()
|
/frameworks/base/libs/hwui/apex/ |
D | android_matrix.cpp | 21 static_assert(SkMatrix::kMScaleX == 0, "SkMatrix unexpected index"); in AMatrix_getContents() 22 static_assert(SkMatrix::kMSkewX == 1, "SkMatrix unexpected index"); in AMatrix_getContents() 23 static_assert(SkMatrix::kMTransX == 2, "SkMatrix unexpected index"); in AMatrix_getContents() 24 static_assert(SkMatrix::kMSkewY == 3, "SkMatrix unexpected index"); in AMatrix_getContents() 25 static_assert(SkMatrix::kMScaleY == 4, "SkMatrix unexpected index"); in AMatrix_getContents() 26 static_assert(SkMatrix::kMTransY == 5, "SkMatrix unexpected index"); in AMatrix_getContents() 27 static_assert(SkMatrix::kMPersp0 == 6, "SkMatrix unexpected index"); in AMatrix_getContents() 28 static_assert(SkMatrix::kMPersp1 == 7, "SkMatrix unexpected index"); in AMatrix_getContents() 29 static_assert(SkMatrix::kMPersp2 == 8, "SkMatrix unexpected index"); in AMatrix_getContents() 31 SkMatrix* m = android::android_graphics_Matrix_getSkMatrix(env, matrixObj); in AMatrix_getContents()
|
/frameworks/base/libs/hwui/jni/pdf/ |
D | PdfRenderer.cpp | 92 SkMatrix matrix = *reinterpret_cast<SkMatrix*>(transformPtr); in nativeRenderPage() 100 FS_MATRIX transform = {transformValues[SkMatrix::kAScaleX], transformValues[SkMatrix::kASkewY], in nativeRenderPage() 101 transformValues[SkMatrix::kASkewX], transformValues[SkMatrix::kAScaleY], in nativeRenderPage() 102 transformValues[SkMatrix::kATransX], in nativeRenderPage() 103 transformValues[SkMatrix::kATransY]}; in nativeRenderPage()
|
/frameworks/base/libs/hwui/ |
D | RecordingCanvas.cpp | 85 void draw(SkCanvas* c, const SkMatrix&) const { c->flush(); } in draw() 90 void draw(SkCanvas* c, const SkMatrix&) const { c->save(); } in draw() 94 void draw(SkCanvas* c, const SkMatrix&) const { c->restore(); } in draw() 99 const SkImage* clipMask, const SkMatrix* clipMatrix, SkCanvas::SaveLayerFlags flags) { in SaveLayer() 108 this->clipMatrix = clipMatrix ? *clipMatrix : SkMatrix::I(); in SaveLayer() 115 SkMatrix clipMatrix; 117 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 128 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 137 void draw(SkCanvas* c, const SkMatrix&) const { c->experimental_concat44(colMajor); } in draw() 141 Concat(const SkMatrix& matrix) : matrix(matrix) {} in Concat() [all …]
|
D | DeferredLayerUpdater.h | 75 ANDROID_API void setTransform(const SkMatrix* matrix) { in setTransform() 77 mTransform = matrix ? new SkMatrix(*matrix) : nullptr; in setTransform() 80 SkMatrix* getTransform() { return mTransform; } in getTransform() 90 void updateLayer(bool forceFilter, const SkMatrix& textureTransform, 142 SkMatrix* mTransform;
|
D | Matrix.cpp | 155 void Matrix4::load(const SkMatrix& v) { in load() 158 data[kScaleX] = v[SkMatrix::kMScaleX]; in load() 159 data[kSkewX] = v[SkMatrix::kMSkewX]; in load() 160 data[kTranslateX] = v[SkMatrix::kMTransX]; in load() 162 data[kSkewY] = v[SkMatrix::kMSkewY]; in load() 163 data[kScaleY] = v[SkMatrix::kMScaleY]; in load() 164 data[kTranslateY] = v[SkMatrix::kMTransY]; in load() 166 data[kPerspective0] = v[SkMatrix::kMPersp0]; in load() 167 data[kPerspective1] = v[SkMatrix::kMPersp1]; in load() 168 data[kPerspective2] = v[SkMatrix::kMPersp2]; in load() [all …]
|
D | RecordingCanvas.h | 81 const SkMatrix*, SkCanvas::SaveLayerFlags); 86 void concat(const SkMatrix&); 87 void setMatrix(const SkMatrix&); 108 void drawDrawable(SkDrawable*, const SkMatrix*); 109 void drawPicture(const SkPicture*, const SkMatrix*, const SkPaint*); 159 void didConcat(const SkMatrix&) override; 160 void didSetMatrix(const SkMatrix&) override; 179 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; 180 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) override;
|
D | Layer.h | 76 inline SkMatrix& getTexTransform() { return texTransform; } in getTexTransform() 78 inline SkMatrix& getTransform() { return transform; } in getTransform() 118 SkMatrix texTransform; 123 SkMatrix transform;
|
D | RenderProperties.h | 206 bool setStaticMatrix(const SkMatrix* matrix) { in setStaticMatrix() 209 mStaticMatrix = new SkMatrix(*matrix); in setStaticMatrix() 217 const SkMatrix* getStaticMatrix() const { return mStaticMatrix; } in getStaticMatrix() 219 bool setAnimationMatrix(const SkMatrix* matrix) { in setAnimationMatrix() 222 mAnimationMatrix = new SkMatrix(*matrix); in setAnimationMatrix() 452 const SkMatrix* getAnimationMatrix() const { return mAnimationMatrix; } in getAnimationMatrix() 460 return getTransformMatrix()->getType() == SkMatrix::kTranslate_Mask; in isTransformTranslateOnly() 463 const SkMatrix* getTransformMatrix() const { in getTransformMatrix() 586 SkMatrix* mStaticMatrix; 587 SkMatrix* mAnimationMatrix; [all …]
|
D | SkiaCanvas.cpp | 137 SkMatrix savedMatrix; in restore() 209 Clip(const SkRect& rect, SkClipOp op, const SkMatrix& m) in Clip() 211 Clip(const SkRRect& rrect, SkClipOp op, const SkMatrix& m) in Clip() 213 Clip(const SkPath& path, SkClipOp op, const SkMatrix& m) in Clip() 243 SkMatrix mMatrix; 301 const SkMatrix saveMatrix = mCanvas->getTotalMatrix(); in applyPersistentClips() 322 void SkiaCanvas::getMatrix(SkMatrix* outMatrix) const { in getMatrix() 326 void SkiaCanvas::setMatrix(const SkMatrix& matrix) { in setMatrix() 330 void SkiaCanvas::concat(const SkMatrix& matrix) { in concat() 364 SkMatrix inverse; in getClipBounds() [all …]
|
D | Matrix.h | 84 Matrix4(const SkMatrix& v) { // NOLINT(google-explicit-constructor) in Matrix4() 95 Matrix4& operator=(const SkMatrix& v) { 109 void load(const SkMatrix& v); 197 void copyTo(SkMatrix& v) const;
|
D | RenderProperties.cpp | 98 SkMatrix* matrix) { in dumpMatrix() 183 mComputedFields.mTransformMatrix = new SkMatrix(); in updateMatrix() 189 SkMatrix* transform = mComputedFields.mTransformMatrix; in updateMatrix() 196 SkMatrix transform3D; in updateMatrix()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | LayerDrawable.cpp | 42 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect() 78 SkMatrix layerTransform = layer->getTransform(); in DrawLayer() 84 SkMatrix textureMatrixInv; in DrawLayer() 88 SkMatrix flipV; in DrawLayer() 93 SkMatrix textureMatrix; in DrawLayer() 98 SkMatrix matrix; in DrawLayer() 100 matrix = SkMatrix::Concat(layerTransform, textureMatrix); in DrawLayer() 114 const SkMatrix& totalMatrix = canvas->getTotalMatrix(); in DrawLayer() 116 SkMatrix matrixInv; in DrawLayer()
|
D | SkiaDisplayList.h | 158 std::vector<Pair<VectorDrawableRoot*, SkMatrix>> mVectorDrawables; 161 appendVD(r, SkMatrix::I()); in appendVD() 164 void appendVD(VectorDrawableRoot* r, const SkMatrix& mat) { in appendVD() 165 mVectorDrawables.push_back(Pair<VectorDrawableRoot*, SkMatrix>(r, mat)); in appendVD() 187 SkMatrix mParentMatrix;
|
D | VkFunctorDrawable.h | 35 VkFunctorDrawHandler(sp<WebViewFunctor::Handle> functor_handle, const SkMatrix& matrix, 44 const SkMatrix mMatrix; 65 GrBackendApi backendApi, const SkMatrix& matrix, const SkIRect& clip,
|
D | RenderNodeDrawable.h | 77 const SkMatrix& getRecordedMatrix() const { return mRecordedTransform; } in getRecordedMatrix() 128 const SkMatrix mRecordedTransform;
|
D | SkiaPipeline.h | 60 const SkMatrix& preTransform); 87 const SkMatrix& preTransform); 95 sk_sp<SkSurface> surface, const SkMatrix& preTransform);
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaPipelineTests.cpp | 60 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 82 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 86 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 106 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 179 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 185 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 191 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 197 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 203 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 209 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() [all …]
|
D | SkiaRenderPropertiesTests.cpp | 114 SkMatrix staticMatrix = SkMatrix::MakeScale(1.2f, 1.2f); in TEST() 118 SkMatrix animationMatrix = SkMatrix::MakeTrans(15, 15); in TEST()
|
D | SkiaDisplayListTests.cpp | 267 for (const SkMatrix translate : { SkMatrix::MakeTrans(width, 0), in RENDERTHREAD_SKIA_PIPELINE_TEST() 268 SkMatrix::MakeTrans(0, height), in RENDERTHREAD_SKIA_PIPELINE_TEST() 269 SkMatrix::MakeTrans(-width, 0), in RENDERTHREAD_SKIA_PIPELINE_TEST() 270 SkMatrix::MakeTrans(0, -height)}) { in RENDERTHREAD_SKIA_PIPELINE_TEST() 295 SkMatrix translate = SkMatrix::MakeTrans(50, 50); in RENDERTHREAD_SKIA_PIPELINE_TEST() 316 SkMatrix rotate; in RENDERTHREAD_SKIA_PIPELINE_TEST() 349 SkMatrix mat; in RENDERTHREAD_SKIA_PIPELINE_TEST()
|
D | DeferredLayerUpdaterTests.cpp | 42 SkMatrix scaledMatrix = SkMatrix::MakeScale(0.5, 0.5); in RENDERTHREAD_TEST()
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanSurface.h | 47 const SkMatrix& getCurrentPreTransform() { return mWindowInfo.preTransform; } in getCurrentPreTransform() 103 SkMatrix preTransform;
|