/external/skia/src/core/ |
D | SkMatrix.cpp | 31 void SkMatrix::reset() { in reset() 59 uint8_t SkMatrix::computePerspectiveTypeMask() const { in computePerspectiveTypeMask() 71 uint8_t SkMatrix::computeTypeMask() const { in computeTypeMask() 99 int m00 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleX]); in computeTypeMask() 100 int m01 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewX]); in computeTypeMask() 101 int m10 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewY]); in computeTypeMask() 102 int m11 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleY]); in computeTypeMask() 138 bool operator==(const SkMatrix& a, const SkMatrix& b) { in operator ==() 151 void SkMatrix::setTranslate(SkScalar dx, SkScalar dy) { in setTranslate() 167 bool SkMatrix::preTranslate(SkScalar dx, SkScalar dy) { in preTranslate() [all …]
|
D | SkShader.cpp | 22 SkMatrix matrix; in SkShader() 52 bool SkShader::getLocalMatrix(SkMatrix* localM) const { in getLocalMatrix() 66 void SkShader::setLocalMatrix(const SkMatrix& localM) { in setLocalMatrix() 71 fLocalMatrix = (SkMatrix*)sk_malloc_throw(sizeof(SkMatrix)); in setLocalMatrix() 86 const SkMatrix& matrix) { in setContext() 87 const SkMatrix* m = &matrix; in setContext() 88 SkMatrix total; in setContext() 177 SkShader::MatrixClass SkShader::ComputeMatrixClass(const SkMatrix& mat) { in ComputeMatrixClass() 192 SkShader::BitmapType SkShader::asABitmap(SkBitmap*, SkMatrix*, in asABitmap() argument 267 const SkMatrix& matrix) { in setContext() [all …]
|
D | SkBitmapProcState_matrix.h | 32 SkASSERT((s.fInvType & ~(SkMatrix::kTranslate_Mask | in SCALE_NOFILTER_NAME() 33 SkMatrix::kScale_Mask)) == 0); in SCALE_NOFILTER_NAME() 97 SkASSERT(s.fInvType & SkMatrix::kAffine_Mask); in AFFINE_NOFILTER_NAME() 98 SkASSERT((s.fInvType & ~(SkMatrix::kTranslate_Mask | in AFFINE_NOFILTER_NAME() 99 SkMatrix::kScale_Mask | in AFFINE_NOFILTER_NAME() 100 SkMatrix::kAffine_Mask)) == 0); in AFFINE_NOFILTER_NAME() 124 SkASSERT(s.fInvType & SkMatrix::kPerspective_Mask); in PERSP_NOFILTER_NAME() 162 SkASSERT((s.fInvType & ~(SkMatrix::kTranslate_Mask | in SCALE_FILTER_NAME() 163 SkMatrix::kScale_Mask)) == 0); in SCALE_FILTER_NAME() 203 SkASSERT(s.fInvType & SkMatrix::kAffine_Mask); in AFFINE_FILTER_NAME() [all …]
|
D | SkBitmapShaderTemplate.h | 33 virtual bool setContext(const SkBitmap& device, const SkPaint& paint, const SkMatrix& matrix) in setContext() 49 if ((this->getTotalInverse().getType() & ~SkMatrix::kTranslate_Mask) == 0) in shadeSpan() 58 const SkMatrix& inv = this->getUnitInverse(); in shadeSpan() 59 SkMatrix::MapPtProc invProc = this->getUnitInverseProc(); in shadeSpan() 61 const SkMatrix& inv = this->getTotalInverse(); in shadeSpan() 62 SkMatrix::MapPtProc invProc = this->getInverseMapPtProc(); in shadeSpan() 194 if ((this->getTotalInverse().getType() & ~SkMatrix::kTranslate_Mask) == 0) in shadeSpan16() 202 const SkMatrix& inv = this->getUnitInverse(); in shadeSpan16() 203 SkMatrix::MapPtProc invProc = this->getUnitInverseProc(); in shadeSpan16() 205 const SkMatrix& inv = this->getTotalInverse(); in shadeSpan16() [all …]
|
/external/skia/tests/ |
D | MatrixTest.cpp | 25 static bool nearly_equal(const SkMatrix& a, const SkMatrix& b) { in nearly_equal() 35 static bool is_identity(const SkMatrix& m) { in is_identity() 36 SkMatrix identity; in is_identity() 41 static void test_flatten(skiatest::Reporter* reporter, const SkMatrix& m) { in test_flatten() 43 char buffer[SkMatrix::kMaxFlattenSize + 100]; in test_flatten() 47 REPORTER_ASSERT(reporter, size1 <= SkMatrix::kMaxFlattenSize); in test_flatten() 49 SkMatrix m2; in test_flatten() 54 char buffer2[SkMatrix::kMaxFlattenSize + 100]; in test_flatten() 61 SkMatrix identity; in test_matrix_max_stretch() 65 SkMatrix scale; in test_matrix_max_stretch() [all …]
|
/external/skia/include/core/ |
D | SkMatrix.h | 34 class SK_API SkMatrix { 216 bool setConcat(const SkMatrix& a, const SkMatrix& b); 249 bool preConcat(const SkMatrix& other); 286 bool postConcat(const SkMatrix& other); 339 bool invert(SkMatrix* inverse) const; 456 typedef void (*MapXYProc)(const SkMatrix& mat, SkScalar x, SkScalar y, 468 typedef void (*MapPtsProc)(const SkMatrix& mat, SkPoint dst[], 487 friend bool operator==(const SkMatrix& a, const SkMatrix& b) { 491 friend bool operator!=(const SkMatrix& a, const SkMatrix& b) { 495 friend bool operator==(const SkMatrix& a, const SkMatrix& b); [all …]
|
D | SkDraw.h | 48 const SkMatrix* prePathMatrix, bool pathIsMutable) const; 49 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkPaint&) const; 57 const SkPath&, const SkMatrix*, const SkPaint&) const; 61 const SkPath& path, const SkMatrix* matrix) const; 79 SkMaskFilter* filter, const SkMatrix* filterMatrix, 97 static RectType ComputeRectType(const SkPaint&, const SkMatrix&, 108 const SkMatrix* fMatrix; // required 117 const SkMatrix* fMVMatrix; // optional 118 const SkMatrix* fExtMatrix; // optional
|
D | SkShader.h | 38 bool getLocalMatrix(SkMatrix* localM) const; 44 void setLocalMatrix(const SkMatrix& localM); 120 const SkMatrix& matrix); 214 virtual BitmapType asABitmap(SkBitmap* outTexture, SkMatrix* outMatrix, 289 static MatrixClass ComputeMatrixClass(const SkMatrix&); 294 const SkMatrix& getTotalInverse() const { return fTotalInverse; } in getTotalInverse() 299 SkMatrix* fLocalMatrix; 300 SkMatrix fTotalInverse;
|
D | SkImageFilter.h | 15 class SkMatrix; variable 48 const SkMatrix& ctm, 66 bool filterImage(Proxy*, const SkBitmap& src, const SkMatrix& ctm, 73 bool filterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect* dst); 104 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 107 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*);
|
D | SkDevice.h | 21 class SkMatrix; variable 172 virtual void setMatrixClip(const SkMatrix&, const SkRegion&, 178 virtual void gainFocus(SkCanvas*, const SkMatrix&, const SkRegion&, in gainFocus() argument 214 const SkMatrix* prePathMatrix = NULL, 218 const SkMatrix& matrix, const SkPaint& paint); 231 const SkPath& path, const SkMatrix* matrix, 236 const SkPath& path, const SkMatrix* matrix); 330 const SkMatrix& ctm,
|
/external/skia/samplecode/ |
D | SampleOverflow.cpp | 20 SkMatrix matrix; in DrawRoundRect() 34 matrix.set(SkMatrix::kMTransX, SkFloatToFixed(-1153.28)); in DrawRoundRect() 35 matrix.set(SkMatrix::kMTransY, SkFloatToFixed(1180.50)); in DrawRoundRect() 37 matrix.set(SkMatrix::kMScaleX, SkFloatToFixed(0.177171)); in DrawRoundRect() 38 matrix.set(SkMatrix::kMScaleY, SkFloatToFixed(0.177043)); in DrawRoundRect() 40 matrix.set(SkMatrix::kMSkewX, SkFloatToFixed(0.126968)); in DrawRoundRect() 41 matrix.set(SkMatrix::kMSkewY, SkFloatToFixed(-0.126876)); in DrawRoundRect() 43 matrix.set(SkMatrix::kMPersp0, SkFloatToFixed(0.0)); in DrawRoundRect() 44 matrix.set(SkMatrix::kMPersp1, SkFloatToFixed(0.0)); in DrawRoundRect()
|
D | SamplePolyToPoly.cpp | 16 extern bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]); 29 SkMatrix m1, m2; in PolyToPolyView() 35 m2.set(SkMatrix::kMScaleX, dst[1].fX - dst[0].fX); in PolyToPolyView() 36 m2.set(SkMatrix::kMSkewX, dst[2].fX - dst[0].fX); in PolyToPolyView() 37 m2.set(SkMatrix::kMTransX, dst[0].fX); in PolyToPolyView() 38 m2.set(SkMatrix::kMSkewY, dst[1].fY - dst[0].fY); in PolyToPolyView() 39 m2.set(SkMatrix::kMScaleY, dst[2].fY - dst[0].fY); in PolyToPolyView() 40 m2.set(SkMatrix::kMTransY, dst[0].fY); in PolyToPolyView() 66 SkMatrix m0; in PolyToPolyView() 89 SkMatrix matrix; in doDraw()
|
D | SampleImageDir.cpp | 36 SkMatrix m; in drawmarshmallow() 63 SkMatrix matrix; in DrawRoundRect() 80 matrix.set(SkMatrix::kMTransX, SkFloatToScalar(-1153.28f)); in DrawRoundRect() 81 matrix.set(SkMatrix::kMTransY, SkFloatToScalar(1180.50f)); in DrawRoundRect() 83 matrix.set(SkMatrix::kMScaleX, SkFloatToScalar(0.177171f)); in DrawRoundRect() 84 matrix.set(SkMatrix::kMScaleY, SkFloatToScalar(0.177043f)); in DrawRoundRect() 86 matrix.set(SkMatrix::kMSkewX, SkFloatToScalar(0.126968f)); in DrawRoundRect() 87 matrix.set(SkMatrix::kMSkewY, SkFloatToScalar(-0.126876f)); in DrawRoundRect() 89 matrix.set(SkMatrix::kMPersp0, SkFloatToScalar(0.0f)); in DrawRoundRect() 90 matrix.set(SkMatrix::kMPersp1, SkFloatToScalar(0.0f)); in DrawRoundRect()
|
/external/skia/include/utils/ |
D | SkLayer.h | 35 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix() 36 const SkMatrix& getChildrenMatrix() const { return fChildrenMatrix; } in getChildrenMatrix() 46 void setMatrix(const SkMatrix&); 47 void setChildrenMatrix(const SkMatrix&); 91 void getLocalTransform(SkMatrix* matrix) const; 97 void localToGlobal(SkMatrix* matrix) const; 119 SkMatrix fMatrix; 120 SkMatrix fChildrenMatrix;
|
/external/webkit/Source/WebCore/platform/graphics/android/layers/ |
D | Layer.h | 54 const SkMatrix& getMatrix() const { return m_matrix; } in getMatrix() 55 const SkMatrix& getChildrenMatrix() const { return m_childrenMatrix; } in getChildrenMatrix() 66 void setMatrix(const SkMatrix& matrix) { m_matrix = matrix; } in setMatrix() 67 void setChildrenMatrix(const SkMatrix& matrix) { m_childrenMatrix = matrix; } in setChildrenMatrix() 125 virtual void getLocalTransform(SkMatrix* matrix) const; 131 void localToGlobal(SkMatrix* matrix) const { localToAncestor(0, matrix); } in localToGlobal() 145 void localToAncestor(const Layer* ancestor, SkMatrix* matrix) const; 177 SkMatrix m_matrix; 178 SkMatrix m_childrenMatrix;
|
/external/skia/include/effects/ |
D | SkGroupShape.h | 59 class SkMatrixRef : public SkTRefCnt<SkMatrix> { 62 explicit SkMatrixRef(const SkMatrix& matrix) { in SkMatrixRef() 63 SkMatrix& m = *this; in SkMatrixRef() 67 SkMatrix& operator=(const SkMatrix& matrix) { 68 SkMatrix& m = *this; 107 void addShape(int index, SkShape* shape, const SkMatrix& matrix) { in addShape() 120 SkShape* appendShape(SkShape* shape, const SkMatrix& matrix) { in appendShape()
|
D | SkTestImageFilters.h | 21 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 23 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) SK_OVERRIDE; 51 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 53 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) SK_OVERRIDE; 82 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 84 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) SK_OVERRIDE; 118 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 144 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
|
/external/webkit/Source/WebCore/platform/graphics/skia/ |
D | TransformationMatrixSkia.cpp | 38 TransformationMatrix::operator SkMatrix() const in operator SkMatrix() 40 SkMatrix result; in operator SkMatrix() 53 result.set(SkMatrix::kMPersp2, SK_Scalar1); in operator SkMatrix() 58 AffineTransform::operator SkMatrix() const in operator SkMatrix() 60 SkMatrix result; in operator SkMatrix() 73 result.set(SkMatrix::kMPersp2, SK_Scalar1); in operator SkMatrix()
|
/external/skia/src/views/ |
D | SkImageView.cpp | 72 bool SkImageView::getImageMatrix(SkMatrix* matrix) const in getImageMatrix() 89 void SkImageView::setImageMatrix(const SkMatrix* matrix) in setImageMatrix() 96 fMatrix = (SkMatrix*)sk_malloc_throw(sizeof(SkMatrix)); in setImageMatrix() 129 static inline SkMatrix::ScaleToFit scaleTypeToScaleToFit(SkImageView::ScaleType st) in scaleTypeToScaleToFit() 134 SkASSERT(SkImageView::kFitXY_ScaleType - 1 == SkMatrix::kFill_ScaleToFit); in scaleTypeToScaleToFit() 135 SkASSERT(SkImageView::kFitStart_ScaleType - 1 == SkMatrix::kStart_ScaleToFit); in scaleTypeToScaleToFit() 136 SkASSERT(SkImageView::kFitCenter_ScaleType - 1 == SkMatrix::kCenter_ScaleToFit); in scaleTypeToScaleToFit() 137 SkASSERT(SkImageView::kFitEnd_ScaleType - 1 == SkMatrix::kEnd_ScaleToFit); in scaleTypeToScaleToFit() 139 return (SkMatrix::ScaleToFit)(st - 1); in scaleTypeToScaleToFit() 152 SkMatrix matrix; in onDraw()
|
/external/skia/src/utils/ |
D | SkCamera.cpp | 284 SkMatrix* orien = &fOrientation; in doUpdate() 289 orien->set(SkMatrix::kMScaleX, SkUnitScalarMul(x, axis.fX) - SkUnitScalarMul(z, cross.fX)); in doUpdate() 290 orien->set(SkMatrix::kMSkewX, SkUnitScalarMul(x, axis.fY) - SkUnitScalarMul(z, cross.fY)); in doUpdate() 291 orien->set(SkMatrix::kMTransX, SkUnitScalarMul(x, axis.fZ) - SkUnitScalarMul(z, cross.fZ)); in doUpdate() 292 orien->set(SkMatrix::kMSkewY, SkUnitScalarMul(y, axis.fX) - SkUnitScalarMul(z, zenith.fX)); in doUpdate() 293 orien->set(SkMatrix::kMScaleY, SkUnitScalarMul(y, axis.fY) - SkUnitScalarMul(z, zenith.fY)); in doUpdate() 294 orien->set(SkMatrix::kMTransY, SkUnitScalarMul(y, axis.fZ) - SkUnitScalarMul(z, zenith.fZ)); in doUpdate() 295 orien->set(SkMatrix::kMPersp0, axis.fX); in doUpdate() 296 orien->set(SkMatrix::kMPersp1, axis.fY); in doUpdate() 297 orien->set(SkMatrix::kMPersp2, axis.fZ); in doUpdate() [all …]
|
/external/skia/include/pdf/ |
D | SkPDFDevice.h | 62 const SkMatrix& initialTransform); 80 const SkPaint& paint, const SkMatrix* prePathMatrix, 84 const SkMatrix& matrix, const SkPaint&) SK_OVERRIDE; 93 const SkPath& path, const SkMatrix* matrix, 149 SK_API const SkMatrix& initialTransform() const { in initialTransform() 173 SkMatrix fInitialTransform; 224 const SkMatrix& matrix, 232 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix, 245 void internalDrawBitmap(const SkMatrix& matrix,
|
/external/skia/include/gpu/ |
D | SkGpuDevice.h | 61 virtual void gainFocus(SkCanvas*, const SkMatrix&, const SkRegion&, 72 virtual void setMatrixClip(const SkMatrix& matrix, const SkRegion& clip, 81 const SkPaint& paint, const SkMatrix* prePathMatrix, 85 const SkMatrix&, const SkPaint&) SK_OVERRIDE; 94 const SkPath& path, const SkMatrix* matrix, 114 const SkMatrix& ctm, 189 const SkMatrix& ctm, 208 const SkIRect&, const SkMatrix&, GrPaint* grPaint);
|
/external/skia/bench/ |
D | MatrixBench.cpp | 58 SkMatrix m0, m1, m2; in performTest() 81 SkMatrix m; in performTest() 87 SkMatrix fM0, fM1, fM2; 260 SkMatrix fMatrix; 286 float mx = fMatrix[SkMatrix::kMScaleX]; in performTest() 287 float my = fMatrix[SkMatrix::kMScaleY]; in performTest() 288 float tx = fMatrix[SkMatrix::kMTransX]; in performTest() 289 float ty = fMatrix[SkMatrix::kMTransY]; in performTest() 298 SkMatrix fMatrix; 324 float mx = (float) fMatrix[SkMatrix::kMScaleX]; in performTest() [all …]
|
/external/skia/src/animator/ |
D | SkDrawMatrix.h | 31 SkMatrix& getMatrix(); 38 void concat(SkMatrix& inMatrix) { in concat() 49 void set(SkMatrix& src) { in set() 66 SkMatrix fConcat; 67 SkMatrix fMatrix;
|
/external/skia/include/views/ |
D | SkImageView.h | 18 class SkMatrix; variable 40 bool getImageMatrix(SkMatrix*) const; 41 void setImageMatrix(const SkMatrix*); 51 SkMatrix* fMatrix; // null or copy of caller's matrix ,,,,,
|