/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 | 68 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in BitmapShader_constructor() 131 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in LinearGradient_create() 181 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in RadialGradient_create() 207 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in SweepGradient_create() 219 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in ComposeShader_create() 262 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in RuntimeShader_create()
|
/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/tests/unit/ |
D | CanvasFrontendTests.cpp | 156 std::vector<SkMatrix> transforms; in TEST() 171 EXPECT_EQ(SkMatrix::kIdentity_Mask, result.getType()); in TEST() 172 EXPECT_EQ(SkMatrix::I(), result); in TEST() 178 EXPECT_EQ(SkMatrix::kTranslate_Mask, result.getType()); in TEST() 179 SkMatrix m; in TEST() 187 EXPECT_EQ(SkMatrix::kTranslate_Mask | SkMatrix::kScale_Mask, result.getType()); in TEST() 188 SkMatrix m; in TEST() 197 EXPECT_EQ(SkMatrix::kTranslate_Mask, result.getType()); in TEST() 198 SkMatrix m; in TEST() 206 EXPECT_EQ(SkMatrix::kTranslate_Mask | SkMatrix::kAffine_Mask | SkMatrix::kScale_Mask, in TEST() [all …]
|
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::Scale(1.2f, 1.2f); in TEST() 118 SkMatrix animationMatrix = SkMatrix::Translate(15, 15); in TEST()
|
D | SkiaDisplayListTests.cpp | 266 for (const SkMatrix translate : { SkMatrix::Translate(width, 0), in RENDERTHREAD_SKIA_PIPELINE_TEST() 267 SkMatrix::Translate(0, height), in RENDERTHREAD_SKIA_PIPELINE_TEST() 268 SkMatrix::Translate(-width, 0), in RENDERTHREAD_SKIA_PIPELINE_TEST() 269 SkMatrix::Translate(0, -height)}) { in RENDERTHREAD_SKIA_PIPELINE_TEST() 294 SkMatrix translate = SkMatrix::Translate(50, 50); in RENDERTHREAD_SKIA_PIPELINE_TEST() 315 SkMatrix rotate; in RENDERTHREAD_SKIA_PIPELINE_TEST() 348 SkMatrix mat; in RENDERTHREAD_SKIA_PIPELINE_TEST()
|
D | DeferredLayerUpdaterTests.cpp | 42 SkMatrix scaledMatrix = SkMatrix::Scale(0.5, 0.5); in RENDERTHREAD_TEST()
|
/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()
|
D | PdfEditor.cpp | 132 SkMatrix reflectOnX = SkMatrix::Scale(1, -1); in nativeSetTransformAndClip() 133 SkMatrix moveUp = SkMatrix::Translate(0, FPDF_GetPageHeight(page)); in nativeSetTransformAndClip() 134 SkMatrix coordinateChange = SkMatrix::Concat(moveUp, reflectOnX); in nativeSetTransformAndClip() 137 SkMatrix matrix = SkMatrix::Concat(*reinterpret_cast<SkMatrix*>(transformPtr), in nativeSetTransformAndClip() 152 FS_MATRIX transform = {transformValues[SkMatrix::kAScaleX], transformValues[SkMatrix::kASkewY], in nativeSetTransformAndClip() 153 transformValues[SkMatrix::kASkewX], transformValues[SkMatrix::kAScaleY], in nativeSetTransformAndClip() 154 transformValues[SkMatrix::kATransX], in nativeSetTransformAndClip() 155 transformValues[SkMatrix::kATransY]}; in nativeSetTransformAndClip()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | LayerDrawable.cpp | 42 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect() 82 SkMatrix layerTransform = layer->getTransform(); in DrawLayer() 88 SkMatrix textureMatrixInv; in DrawLayer() 92 SkMatrix flipV; in DrawLayer() 97 SkMatrix textureMatrix; in DrawLayer() 102 SkMatrix matrix; in DrawLayer() 104 matrix = SkMatrix::Concat(layerTransform, textureMatrix); in DrawLayer() 118 const SkMatrix& totalMatrix = canvas->getTotalMatrix(); in DrawLayer() 120 SkMatrix matrixInv; in DrawLayer()
|
D | SkiaDisplayList.h | 172 std::vector<Pair<VectorDrawableRoot*, SkMatrix>> mVectorDrawables; 175 void appendVD(VectorDrawableRoot* r) { appendVD(r, SkMatrix::I()); } in appendVD() 177 void appendVD(VectorDrawableRoot* r, const SkMatrix& mat) { in appendVD() 178 mVectorDrawables.push_back(Pair<VectorDrawableRoot*, SkMatrix>(r, mat)); in appendVD() 208 SkMatrix mParentMatrix;
|
D | VkFunctorDrawable.h | 34 VkFunctorDrawHandler(sp<WebViewFunctor::Handle> functor_handle, const SkMatrix& matrix, 43 const SkMatrix mMatrix; 64 GrBackendApi backendApi, const SkMatrix& matrix, const SkIRect& clip,
|
/frameworks/base/libs/hwui/ |
D | Layer.cpp | 62 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect() 96 SkMatrix layerTransform = getTransform(); in draw() 101 SkMatrix textureMatrixInv; in draw() 105 SkMatrix flipV; in draw() 110 SkMatrix textureMatrix; in draw() 115 SkMatrix matrix; in draw() 116 matrix = SkMatrix::Concat(layerTransform, textureMatrix); in draw() 127 const SkMatrix& totalMatrix = canvas->getTotalMatrix(); in draw()
|
D | RecordingCanvas.cpp | 88 void draw(SkCanvas* c, const SkMatrix&) const { c->flush(); } in draw() 93 void draw(SkCanvas* c, const SkMatrix&) const { c->save(); } in draw() 97 void draw(SkCanvas* c, const SkMatrix&) const { c->restore(); } in draw() 116 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 126 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 135 void draw(SkCanvas* c, const SkMatrix&) const { c->concat(matrix); } in draw() 141 void draw(SkCanvas* c, const SkMatrix& original) const { in draw() 149 void draw(SkCanvas* c, const SkMatrix&) const { c->scale(sx, sy); } in draw() 155 void draw(SkCanvas* c, const SkMatrix&) const { c->translate(dx, dy); } in draw() 164 void draw(SkCanvas* c, const SkMatrix&) const { c->clipPath(path, op, aa); } in draw() [all …]
|
D | DeferredLayerUpdater.h | 78 void setTransform(const SkMatrix* matrix) { in setTransform() 80 mTransform = matrix ? new SkMatrix(*matrix) : nullptr; in setTransform() 83 SkMatrix* getTransform() { return mTransform; } in getTransform() 93 void updateLayer(bool forceFilter, const SkMatrix& textureTransform, 152 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 | Layer.h | 77 inline SkMatrix& getTexTransform() { return texTransform; } in getTexTransform() 79 inline SkMatrix& getTransform() { return transform; } in getTransform() 121 SkMatrix texTransform; 126 SkMatrix transform;
|
D | RenderProperties.h | 218 bool setStaticMatrix(const SkMatrix* matrix) { in setStaticMatrix() 221 mStaticMatrix = new SkMatrix(*matrix); in setStaticMatrix() 229 const SkMatrix* getStaticMatrix() const { return mStaticMatrix; } in getStaticMatrix() 231 bool setAnimationMatrix(const SkMatrix* matrix) { in setAnimationMatrix() 234 mAnimationMatrix = new SkMatrix(*matrix); in setAnimationMatrix() 464 const SkMatrix* getAnimationMatrix() const { return mAnimationMatrix; } in getAnimationMatrix() 472 return getTransformMatrix()->getType() == SkMatrix::kTranslate_Mask; in isTransformTranslateOnly() 475 const SkMatrix* getTransformMatrix() const { in getTransformMatrix() 599 SkMatrix* mStaticMatrix; 600 SkMatrix* mAnimationMatrix; [all …]
|
/frameworks/base/libs/hwui/canvas/ |
D | CanvasOpRasterizer.cpp | 32 std::vector<SkMatrix> globalMatrixStack; in rasterizeCanvasBuffer() 33 SkMatrix& currentGlobalTransform = globalMatrixStack.emplace_back(SkMatrix::I()); in rasterizeCanvasBuffer() 39 destination->setMatrix(SkMatrix::Concat(currentGlobalTransform, op->transform())); in rasterizeCanvasBuffer()
|
D | CanvasFrontend.h | 77 FatVector<SkMatrix, 6> mTransformStack; 100 const SkMatrix& transform() const { in transform() 104 SkMatrix& transform() { in transform() 109 void getMatrix(SkMatrix* outMatrix) const { in getMatrix() 113 void setMatrix(const SkMatrix& matrix) { in setMatrix() 117 void concat(const SkMatrix& matrix) { in concat() 122 SkMatrix m; in rotate() 128 SkMatrix m; in scale() 134 SkMatrix m; in skew()
|
D | CanvasOpBuffer.h | 43 SkMatrix mTransform; 47 CanvasOpContainer(CanvasOp<T>&& impl, const SkMatrix& transform = SkMatrix::I()) 53 const SkMatrix& transform() const { return mTransform; } in transform()
|
/frameworks/native/libs/renderengine/skia/filters/ |
D | BlurFilter.cpp | 98 SkMatrix blurMatrix = SkMatrix::Translate(-blurRect.fLeft, -blurRect.fTop); in generate() 126 static SkMatrix getShaderTransform(const SkCanvas* canvas, const SkRect& blurRect, float scale) { in getShaderTransform() 128 auto matrix = SkMatrix::Scale(scale, scale); in getShaderTransform() 131 matrix.postConcat(SkMatrix::Translate(blurRect.fLeft, blurRect.fTop)); in getShaderTransform() 135 SkMatrix drawInverse; in getShaderTransform() 159 SkMatrix inputMatrix; in drawBlurRegion()
|
/frameworks/base/libs/hwui/effects/ |
D | StretchEffect.h | 95 const SkMatrix* matrix) const; 102 SkMatrix makeLinearStretch(float width, float height) const { in makeLinearStretch() 103 SkMatrix matrix; in makeLinearStretch()
|
/frameworks/base/libs/hwui/hwui/ |
D | AnimatedImageDrawable.cpp | 134 static void handleBounds(SkMatrix* matrix, const SkRect& intrinsicBounds, const SkRect& bounds) { in handleBounds() 146 SkMatrix matrix; in onDraw() 173 SkMatrix inverse; in onDraw() 241 SkMatrix matrix; in drawStaging() 257 SkMatrix inverse; in drawStaging()
|