Home
last modified time | relevance | path

Searched refs:SkMatrix (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/base/libs/hwui/jni/
Dandroid_graphics_Matrix.cpp24 static_assert(sizeof(SkMatrix) == 40, "Unexpected sizeof(SkMatrix), "
33 SkMatrix* obj = reinterpret_cast<SkMatrix*>(objHandle); in finalizer()
42 const SkMatrix* src = reinterpret_cast<SkMatrix*>(srcHandle); in create()
43 SkMatrix* obj = new SkMatrix(); in create()
56 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in mapPoints()
74 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in mapRect__RectFRectF()
84 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in setRectToRect()
85 SkMatrix::ScaleToFit stf = static_cast<SkMatrix::ScaleToFit>(stfHandle); in setRectToRect()
96 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in setPolyToPoly()
116 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); in getValues()
[all …]
Dandroid_graphics_HardwareBufferRenderer.cpp85 static SkMatrix createMatrixFromBufferTransform(SkScalar width, SkScalar height, int transform) { in createMatrixFromBufferTransform()
88 return SkMatrix::MakeAll(0, -1, height, 1, 0, 0, 0, 0, 1); in createMatrixFromBufferTransform()
90 return SkMatrix::MakeAll(-1, 0, width, 0, -1, height, 0, 0, 1); in createMatrixFromBufferTransform()
92 return SkMatrix::MakeAll(0, 1, 0, -1, 0, width, 0, 0, 1); in createMatrixFromBufferTransform()
98 return SkMatrix::I(); in createMatrixFromBufferTransform()
DShader.cpp68 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in BitmapShader_constructor()
147 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in LinearGradient_create()
193 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in RadialGradient_create()
215 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in SweepGradient_create()
227 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in ComposeShader_create()
269 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); in RuntimeShader_create()
/frameworks/base/libs/hwui/apex/
Dandroid_matrix.cpp21 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()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DCanvasFrontendTests.cpp156 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 …]
DSkiaPipelineTests.cpp61 SkMatrix::I()); in RENDERTHREAD_TEST()
83 SkMatrix::I()); in RENDERTHREAD_TEST()
87 SkMatrix::I()); in RENDERTHREAD_TEST()
107 SkMatrix::I()); in RENDERTHREAD_TEST()
180 SkMatrix::I()); in RENDERTHREAD_TEST()
186 SkMatrix::I()); in RENDERTHREAD_TEST()
192 SkMatrix::I()); in RENDERTHREAD_TEST()
198 SkMatrix::I()); in RENDERTHREAD_TEST()
204 SkMatrix::I()); in RENDERTHREAD_TEST()
210 SkMatrix::I()); in RENDERTHREAD_TEST()
[all …]
DSkiaRenderPropertiesTests.cpp115 SkMatrix staticMatrix = SkMatrix::Scale(1.2f, 1.2f); in TEST()
119 SkMatrix animationMatrix = SkMatrix::Translate(15, 15); in TEST()
DSkiaDisplayListTests.cpp291 for (const SkMatrix translate : { SkMatrix::Translate(width, 0), in RENDERTHREAD_TEST()
292 SkMatrix::Translate(0, height), in RENDERTHREAD_TEST()
293 SkMatrix::Translate(-width, 0), in RENDERTHREAD_TEST()
294 SkMatrix::Translate(0, -height)}) { in RENDERTHREAD_TEST()
319 SkMatrix translate = SkMatrix::Translate(50, 50); in RENDERTHREAD_TEST()
340 SkMatrix rotate; in RENDERTHREAD_TEST()
373 SkMatrix mat; in RENDERTHREAD_TEST()
/frameworks/base/libs/hwui/
DLayer.cpp65 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect()
99 SkMatrix layerTransform = getTransform(); in draw()
104 SkMatrix textureMatrixInv; in draw()
107 SkMatrix flipV; in draw()
112 SkMatrix textureMatrix; in draw()
117 SkMatrix matrix; in draw()
118 matrix = SkMatrix::Concat(layerTransform, textureMatrix); in draw()
129 const SkMatrix& totalMatrix = canvas->getTotalMatrix(); in draw()
DRecordingCanvas.cpp114 void draw(SkCanvas* c, const SkMatrix&) const { c->save(); } in draw()
118 void draw(SkCanvas* c, const SkMatrix&) const { c->restore(); } in draw()
137 void draw(SkCanvas* c, const SkMatrix&) const { in draw()
147 void draw(SkCanvas* c, const SkMatrix&) const { in draw()
156 void draw(SkCanvas* c, const SkMatrix&) const { c->concat(matrix); } in draw()
162 void draw(SkCanvas* c, const SkMatrix& original) const { in draw()
170 void draw(SkCanvas* c, const SkMatrix&) const { c->scale(sx, sy); } in draw()
176 void draw(SkCanvas* c, const SkMatrix&) const { c->translate(dx, dy); } in draw()
185 void draw(SkCanvas* c, const SkMatrix&) const { c->clipPath(path, op, aa); } in draw()
193 void draw(SkCanvas* c, const SkMatrix&) const { c->clipRect(rect, op, aa); } in draw()
[all …]
DMatrix.cpp155 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 …]
DDeferredLayerUpdater.h79 void setTransform(const SkMatrix* matrix) { in setTransform()
81 mTransform = matrix ? new SkMatrix(*matrix) : nullptr; in setTransform()
84 SkMatrix* getTransform() { return mTransform; } in getTransform()
153 SkMatrix* mTransform;
DRenderProperties.h220 bool setStaticMatrix(const SkMatrix* matrix) { in setStaticMatrix()
223 mStaticMatrix = new SkMatrix(*matrix); in setStaticMatrix()
231 const SkMatrix* getStaticMatrix() const { return mStaticMatrix; } in getStaticMatrix()
233 bool setAnimationMatrix(const SkMatrix* matrix) { in setAnimationMatrix()
236 mAnimationMatrix = new SkMatrix(*matrix); in setAnimationMatrix()
466 const SkMatrix* getAnimationMatrix() const { return mAnimationMatrix; } in getAnimationMatrix()
474 return getTransformMatrix()->getType() == SkMatrix::kTranslate_Mask; in isTransformTranslateOnly()
477 const SkMatrix* getTransformMatrix() const { in getTransformMatrix()
597 SkMatrix* mStaticMatrix;
598 SkMatrix* mAnimationMatrix;
[all …]
/frameworks/base/libs/hwui/jni/pdf/
DPdfEditor.cpp129 SkMatrix reflectOnX = SkMatrix::Scale(1, -1); in nativeSetTransformAndClip()
130 SkMatrix moveUp = SkMatrix::Translate(0, FPDF_GetPageHeight(page)); in nativeSetTransformAndClip()
131 SkMatrix coordinateChange = SkMatrix::Concat(moveUp, reflectOnX); in nativeSetTransformAndClip()
134 SkMatrix matrix = SkMatrix::Concat(*reinterpret_cast<SkMatrix*>(transformPtr), in nativeSetTransformAndClip()
149 FS_MATRIX transform = {transformValues[SkMatrix::kAScaleX], transformValues[SkMatrix::kASkewY], in nativeSetTransformAndClip()
150 transformValues[SkMatrix::kASkewX], transformValues[SkMatrix::kAScaleY], in nativeSetTransformAndClip()
151 transformValues[SkMatrix::kATransX], in nativeSetTransformAndClip()
152 transformValues[SkMatrix::kATransY]}; in nativeSetTransformAndClip()
/frameworks/base/libs/hwui/canvas/
DCanvasFrontend.h56 bool quickReject(const SkMatrix& matrix, const SkRect& bounds) const;
58 void apply(SkClipOp op, const SkMatrix& matrix, const SkRect& bounds, bool aa,
101 FatVector<DeferredEntry<SkMatrix>, 6> mTransformStack;
148 const SkMatrix& transform() const { return mTransformStack.back().entry; } in transform()
150 SkMatrix& transform();
153 void getMatrix(SkMatrix* outMatrix) const { in getMatrix()
157 void setMatrix(const SkMatrix& matrix) { in setMatrix()
161 void concat(const SkMatrix& matrix) { in concat()
166 SkMatrix m; in rotate()
172 SkMatrix m; in scale()
[all …]
DCanvasOpRasterizer.cpp32 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()
DCanvasOpBuffer.h43 SkMatrix mTransform;
47 CanvasOpContainer(CanvasOp<T>&& impl, const SkMatrix& transform = SkMatrix::I())
53 const SkMatrix& transform() const { return mTransform; } in transform()
DCanvasFrontend.cpp51 void CanvasStateHelper::ConservativeClip::apply(SkClipOp op, const SkMatrix& matrix, in apply()
86 SkMatrix& CanvasStateHelper::transform() { in transform()
112 SkMatrix inverse; in getClipBounds()
121 bool CanvasStateHelper::ConservativeClip::quickReject(const SkMatrix& matrix, in quickReject()
/frameworks/native/libs/renderengine/skia/filters/
DBlurFilter.cpp53 static SkMatrix getShaderTransform(const SkCanvas* canvas, const SkRect& blurRect, in getShaderTransform()
56 auto matrix = SkMatrix::Scale(scale, scale); in getShaderTransform()
59 matrix.postConcat(SkMatrix::Translate(blurRect.fLeft, blurRect.fTop)); in getShaderTransform()
63 SkMatrix drawInverse; in getShaderTransform()
95 SkMatrix inputMatrix; in drawBlurRegion()
/frameworks/base/libs/hwui/renderthread/
DHardwareBufferRenderParams.h40 const SkMatrix& transform, const sk_sp<SkColorSpace>& colorSpace, in HardwareBufferRenderParams()
47 const SkMatrix& getTransform() const { return mTransform; } in getTransform()
62 SkMatrix mTransform = SkMatrix::I();
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaDisplayList.h179 std::vector<Pair<VectorDrawableRoot*, SkMatrix>> mVectorDrawables;
182 void appendVD(VectorDrawableRoot* r) { appendVD(r, SkMatrix::I()); } in appendVD()
184 void appendVD(VectorDrawableRoot* r, const SkMatrix& mat) { in appendVD()
185 mVectorDrawables.push_back(Pair<VectorDrawableRoot*, SkMatrix>(r, mat)); in appendVD()
215 SkMatrix mParentMatrix;
DVkFunctorDrawable.h34 VkFunctorDrawHandler(sp<WebViewFunctor::Handle> functor_handle, const SkMatrix& matrix,
43 const SkMatrix mMatrix;
64 GrBackendApi backendApi, const SkMatrix& matrix, const SkIRect& clip,
DTransformCanvas.h24 class SkMatrix; variable
39 void onDrawDrawable(SkDrawable* drawable, const SkMatrix* matrix) override;
DSkiaPipeline.h54 const SkMatrix& preTransform);
86 const SkMatrix& preTransform);
94 sk_sp<SkSurface> surface, const SkMatrix& preTransform);
/frameworks/base/libs/hwui/effects/
DStretchEffect.h95 const SkMatrix* matrix) const;
102 SkMatrix makeLinearStretch(float width, float height) const { in makeLinearStretch()
103 SkMatrix matrix; in makeLinearStretch()

1234