Home
last modified time | relevance | path

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

123

/frameworks/base/core/jni/android/graphics/
DMatrix.cpp27 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 …]
DShader.cpp67 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/
DRecordingCanvas.cpp84 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 …]
DDeferredLayerUpdater.h82 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;
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 …]
DRecordingCanvas.h77 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;
DLayer.h76 inline SkMatrix& getTexTransform() { return texTransform; } in getTexTransform()
78 inline SkMatrix& getTransform() { return transform; } in getTransform()
118 SkMatrix texTransform;
123 SkMatrix transform;
DRenderProperties.h203 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 …]
DSkiaCanvas.cpp137 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 …]
DMatrix.h84 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;
DRenderProperties.cpp98 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/
DPdfEditor.cpp133 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()
DPdfRenderer.cpp95 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/
DLayerDrawable.cpp42 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()
DSkiaDisplayList.h155 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;
DVkFunctorDrawable.h35 VkFunctorDrawHandler(sp<WebViewFunctor::Handle> functor_handle, const SkMatrix& matrix,
44 const SkMatrix mMatrix;
65 GrBackendApi backendApi, const SkMatrix& matrix, const SkIRect& clip,
DRenderNodeDrawable.h77 const SkMatrix& getRecordedMatrix() const { return mRecordedTransform; } in getRecordedMatrix()
128 const SkMatrix mRecordedTransform;
DSkiaPipeline.h55 const SkMatrix& preTransform);
123 const SkMatrix& preTransform);
131 sk_sp<SkSurface> surface, const SkMatrix& preTransform);
/frameworks/base/libs/hwui/tests/unit/
DSkiaPipelineTests.cpp58 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 …]
DSkiaRenderPropertiesTests.cpp113 SkMatrix staticMatrix = SkMatrix::MakeScale(1.2f, 1.2f); in TEST()
117 SkMatrix animationMatrix = SkMatrix::MakeTrans(15, 15); in TEST()
DSkiaDisplayListTests.cpp268 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()
DDeferredLayerUpdaterTests.cpp42 SkMatrix scaledMatrix = SkMatrix::MakeScale(0.5, 0.5); in RENDERTHREAD_TEST()
/frameworks/base/core/jni/
Dandroid_view_RenderNode.cpp107 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()
Dandroid_view_TextureLayer.cpp63 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); in TextureLayer_setTransform()
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.h45 const SkMatrix& getCurrentPreTransform() { return mWindowInfo.preTransform; } in getCurrentPreTransform()
101 SkMatrix preTransform;

123