/frameworks/base/core/jni/android/graphics/ |
D | Matrix.cpp | 27 static_assert(sizeof(SkMatrix) == 40, "Unexpected sizeof(SkMatrix), " 38 SkMatrix* obj = reinterpret_cast<SkMatrix*>(objHandle); in finalizer() 47 const SkMatrix* src = reinterpret_cast<SkMatrix*>(srcHandle); in create() 48 SkMatrix* obj = new SkMatrix(); in create() 61 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in mapPoints() 79 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in mapRect__RectFRectF() 89 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in setRectToRect() 90 SkMatrix::ScaleToFit stf = static_cast<SkMatrix::ScaleToFit>(stfHandle); in setRectToRect() 101 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in setPolyToPoly() 121 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in getValues() [all …]
|
D | Shader.cpp | 67 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in BitmapShader_constructor() 128 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in LinearGradient_create() 158 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in RadialGradient_create() 184 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in SweepGradient_create() 196 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in ComposeShader_create()
|
/frameworks/base/libs/hwui/ |
D | RecordingCanvas.cpp | 84 void draw(SkCanvas* c, const SkMatrix&) const { c->flush(); } in draw() 89 void draw(SkCanvas* c, const SkMatrix&) const { c->save(); } in draw() 93 void draw(SkCanvas* c, const SkMatrix&) const { c->restore(); } in draw() 98 const SkImage* clipMask, const SkMatrix* clipMatrix, SkCanvas::SaveLayerFlags flags) { in SaveLayer() 107 this->clipMatrix = clipMatrix ? *clipMatrix : SkMatrix::I(); in SaveLayer() 114 SkMatrix clipMatrix; 116 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 127 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 134 Concat(const SkMatrix& matrix) : matrix(matrix) {} in Concat() 135 SkMatrix matrix; [all …]
|
D | DeferredLayerUpdater.h | 82 ANDROID_API void setTransform(const SkMatrix* matrix) { in setTransform() 84 mTransform = matrix ? new SkMatrix(*matrix) : nullptr; in setTransform() 87 SkMatrix* getTransform() { return mTransform; } in getTransform() 97 void updateLayer(bool forceFilter, const SkMatrix& textureTransform, 116 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 | 77 const SkMatrix*, SkCanvas::SaveLayerFlags); 81 void concat(const SkMatrix&); 82 void setMatrix(const SkMatrix&); 102 void drawDrawable(SkDrawable*, const SkMatrix*); 103 void drawPicture(const SkPicture*, const SkMatrix*, const SkPaint*); 151 void didConcat(const SkMatrix&) override; 152 void didSetMatrix(const SkMatrix&) override; 170 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; 171 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 | 203 bool setStaticMatrix(const SkMatrix* matrix) { in setStaticMatrix() 206 mStaticMatrix = new SkMatrix(*matrix); in setStaticMatrix() 214 const SkMatrix* getStaticMatrix() const { return mStaticMatrix; } in getStaticMatrix() 216 bool setAnimationMatrix(const SkMatrix* matrix) { in setAnimationMatrix() 219 mAnimationMatrix = new SkMatrix(*matrix); in setAnimationMatrix() 449 const SkMatrix* getAnimationMatrix() const { return mAnimationMatrix; } in getAnimationMatrix() 457 return getTransformMatrix()->getType() == SkMatrix::kTranslate_Mask; in isTransformTranslateOnly() 460 const SkMatrix* getTransformMatrix() const { in getTransformMatrix() 579 SkMatrix* mStaticMatrix; 580 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() 240 SkMatrix mMatrix; 298 const SkMatrix saveMatrix = mCanvas->getTotalMatrix(); in applyPersistentClips() 319 void SkiaCanvas::getMatrix(SkMatrix* outMatrix) const { in getMatrix() 323 void SkiaCanvas::setMatrix(const SkMatrix& matrix) { in setMatrix() 327 void SkiaCanvas::concat(const SkMatrix& matrix) { in concat() 361 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/core/jni/android/graphics/pdf/ |
D | PdfEditor.cpp | 133 SkMatrix reflectOnX = SkMatrix::MakeScale(1, -1); in nativeSetTransformAndClip() 134 SkMatrix moveUp = SkMatrix::MakeTrans(0, FPDF_GetPageHeight(page)); in nativeSetTransformAndClip() 135 SkMatrix coordinateChange = SkMatrix::Concat(moveUp, reflectOnX); in nativeSetTransformAndClip() 138 SkMatrix matrix = SkMatrix::Concat(*reinterpret_cast<SkMatrix*>(transformPtr), in nativeSetTransformAndClip() 153 FS_MATRIX transform = {transformValues[SkMatrix::kAScaleX], transformValues[SkMatrix::kASkewY], in nativeSetTransformAndClip() 154 transformValues[SkMatrix::kASkewX], transformValues[SkMatrix::kAScaleY], in nativeSetTransformAndClip() 155 transformValues[SkMatrix::kATransX], in nativeSetTransformAndClip() 156 transformValues[SkMatrix::kATransY]}; in nativeSetTransformAndClip()
|
D | PdfRenderer.cpp | 95 SkMatrix matrix = *reinterpret_cast<SkMatrix*>(transformPtr); in nativeRenderPage() 103 FS_MATRIX transform = {transformValues[SkMatrix::kAScaleX], transformValues[SkMatrix::kASkewY], in nativeRenderPage() 104 transformValues[SkMatrix::kASkewX], transformValues[SkMatrix::kAScaleY], in nativeRenderPage() 105 transformValues[SkMatrix::kATransX], in nativeRenderPage() 106 transformValues[SkMatrix::kATransY]}; in nativeRenderPage()
|
/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 | 155 std::vector<Pair<VectorDrawableRoot*, SkMatrix>> mVectorDrawables; 158 appendVD(r, SkMatrix::I()); in appendVD() 161 void appendVD(VectorDrawableRoot* r, const SkMatrix& mat) { in appendVD() 162 mVectorDrawables.push_back(Pair<VectorDrawableRoot*, SkMatrix>(r, mat)); in appendVD() 184 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 | 55 const SkMatrix& preTransform); 123 const SkMatrix& preTransform); 131 sk_sp<SkSurface> surface, const SkMatrix& preTransform);
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaPipelineTests.cpp | 58 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 91 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 113 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 117 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 137 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 210 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 216 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 222 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 228 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() 234 SkMatrix::I()); in RENDERTHREAD_SKIA_PIPELINE_TEST() [all …]
|
D | SkiaRenderPropertiesTests.cpp | 113 SkMatrix staticMatrix = SkMatrix::MakeScale(1.2f, 1.2f); in TEST() 117 SkMatrix animationMatrix = SkMatrix::MakeTrans(15, 15); in TEST()
|
D | SkiaDisplayListTests.cpp | 268 for (const SkMatrix translate : { SkMatrix::MakeTrans(width, 0), in RENDERTHREAD_SKIA_PIPELINE_TEST() 269 SkMatrix::MakeTrans(0, height), in RENDERTHREAD_SKIA_PIPELINE_TEST() 270 SkMatrix::MakeTrans(-width, 0), in RENDERTHREAD_SKIA_PIPELINE_TEST() 271 SkMatrix::MakeTrans(0, -height)}) { in RENDERTHREAD_SKIA_PIPELINE_TEST() 296 SkMatrix translate = SkMatrix::MakeTrans(50, 50); in RENDERTHREAD_SKIA_PIPELINE_TEST() 317 SkMatrix rotate; in RENDERTHREAD_SKIA_PIPELINE_TEST() 350 SkMatrix mat; in RENDERTHREAD_SKIA_PIPELINE_TEST()
|
D | DeferredLayerUpdaterTests.cpp | 42 SkMatrix scaledMatrix = SkMatrix::MakeScale(0.5, 0.5); in RENDERTHREAD_TEST()
|
/frameworks/base/core/jni/ |
D | android_view_RenderNode.cpp | 107 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); in android_view_RenderNode_setStaticMatrix() 112 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); in android_view_RenderNode_setAnimationMatrix() 344 SkMatrix* outMatrix = reinterpret_cast<SkMatrix*>(outMatrixPtr); in android_view_RenderNode_getAnimationMatrix() 346 const SkMatrix* animationMatrix = renderNode->stagingProperties().getAnimationMatrix(); in android_view_RenderNode_getAnimationMatrix() 442 SkMatrix* outMatrix = reinterpret_cast<SkMatrix*>(outMatrixPtr); in android_view_RenderNode_getTransformMatrix() 445 const SkMatrix* transformMatrix = renderNode->stagingProperties().getTransformMatrix(); in android_view_RenderNode_getTransformMatrix() 458 SkMatrix* outMatrix = reinterpret_cast<SkMatrix*>(outMatrixPtr); in android_view_RenderNode_getInverseTransformMatrix()
|
D | android_view_TextureLayer.cpp | 63 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); in TextureLayer_setTransform()
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanSurface.h | 45 const SkMatrix& getCurrentPreTransform() { return mWindowInfo.preTransform; } in getCurrentPreTransform() 101 SkMatrix preTransform;
|