/external/chromium_org/third_party/skia/src/core/ |
D | SkMatrix.cpp | 38 void SkMatrix::reset() { in reset() 58 uint8_t SkMatrix::computePerspectiveTypeMask() const { in computePerspectiveTypeMask() 73 uint8_t SkMatrix::computeTypeMask() const { in computeTypeMask() 86 int m00 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleX]); in computeTypeMask() 87 int m01 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewX]); in computeTypeMask() 88 int m10 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewY]); in computeTypeMask() 89 int m11 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleY]); in computeTypeMask() 136 bool operator==(const SkMatrix& a, const SkMatrix& b) { in operator ==() 156 bool SkMatrix::isSimilarity(SkScalar tol) const { in isSimilarity() 189 bool SkMatrix::preservesRightAngles(SkScalar tol) const { in preservesRightAngles() [all …]
|
D | SkLocalMatrixShader.h | 17 SkLocalMatrixShader(SkShader* proxy, const SkMatrix& localMatrix) in SkLocalMatrixShader() 26 virtual BitmapType asABitmap(SkBitmap* bitmap, SkMatrix* matrix, in asABitmap() 37 virtual bool asNewEffect(GrContext* context, const SkPaint& paint, const SkMatrix* localMatrix, in asNewEffect() 39 SkMatrix tmp = fProxyLocalMatrix; in asNewEffect() 48 virtual bool asNewEffect(GrContext* context, const SkPaint& paint, const SkMatrix* localMatrix, in asNewEffect() 56 virtual SkShader* refAsALocalMatrixShader(SkMatrix* localMatrix) const SK_OVERRIDE { in refAsALocalMatrixShader() 73 SkMatrix fProxyLocalMatrix;
|
D | SkPictureStateTree.h | 36 SkMatrix* fMatrix; 62 void appendTransform(const SkMatrix& trans); 92 void setCurrentMatrix(const SkMatrix*); 107 const SkMatrix fPlaybackMatrix; 110 const SkMatrix* fCurrentMatrix; 147 SkMatrix* fMatrix; 155 SkMatrix fRootMatrix;
|
/external/skia/src/core/ |
D | SkMatrix.cpp | 38 void SkMatrix::reset() { in reset() 58 uint8_t SkMatrix::computePerspectiveTypeMask() const { in computePerspectiveTypeMask() 73 uint8_t SkMatrix::computeTypeMask() const { in computeTypeMask() 86 int m00 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleX]); in computeTypeMask() 87 int m01 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewX]); in computeTypeMask() 88 int m10 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewY]); in computeTypeMask() 89 int m11 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleY]); in computeTypeMask() 136 bool operator==(const SkMatrix& a, const SkMatrix& b) { in operator ==() 156 bool SkMatrix::isSimilarity(SkScalar tol) const { in isSimilarity() 189 bool SkMatrix::preservesRightAngles(SkScalar tol) const { in preservesRightAngles() [all …]
|
D | SkPictureStateTree.h | 36 SkMatrix* fMatrix; 62 void appendTransform(const SkMatrix& trans); 92 void setCurrentMatrix(const SkMatrix*); 107 const SkMatrix fPlaybackMatrix; 110 const SkMatrix* fCurrentMatrix; 147 SkMatrix* fMatrix; 155 SkMatrix fRootMatrix;
|
/external/skia/include/core/ |
D | SkShader.h | 39 SkShader(const SkMatrix* localMatrix = NULL); 45 const SkMatrix& getLocalMatrix() const { return fLocalMatrix; } in getLocalMatrix() 57 void setLocalMatrix(const SkMatrix& localM) { fLocalMatrix = localM; } in setLocalMatrix() 131 ContextRec(const SkBitmap& device, const SkPaint& paint, const SkMatrix& matrix) in ContextRec() 139 const SkMatrix* fMatrix; // the current matrix in the canvas 140 const SkMatrix* fLocalMatrix; // optional local matrix 208 static MatrixClass ComputeMatrixClass(const SkMatrix&); 211 const SkMatrix& getTotalInverse() const { return fTotalInverse; } in getTotalInverse() 213 const SkMatrix& getCTM() const { return fCTM; } in getCTM() 215 SkMatrix fCTM; [all …]
|
D | SkMatrix.h | 29 class SK_API SkMatrix { 225 void setConcat(const SkMatrix& a, const SkMatrix& b); 258 void preConcat(const SkMatrix& other); 295 void postConcat(const SkMatrix& other); 348 bool SK_WARN_UNUSED_RESULT invert(SkMatrix* inverse) const { in invert() 499 typedef void (*MapXYProc)(const SkMatrix& mat, SkScalar x, SkScalar y, 511 typedef void (*MapPtsProc)(const SkMatrix& mat, SkPoint dst[], 537 bool cheapEqualTo(const SkMatrix& m) const { in cheapEqualTo() 541 friend bool operator==(const SkMatrix& a, const SkMatrix& b); 542 friend bool operator!=(const SkMatrix& a, const SkMatrix& b) { [all …]
|
D | SkMaskFilter.h | 22 class SkMatrix; variable 61 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&, 77 const SkMatrix& ctm) const; 93 const SkMatrix& ctm, 122 const SkMatrix& ctm, 189 const SkMatrix&, 195 virtual FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&, 207 bool filterPath(const SkPath& devPath, const SkMatrix& ctm, const SkRasterClip&, SkBlitter*, 214 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRasterClip&,
|
D | SkDraw.h | 20 class SkMatrix; variable 48 const SkMatrix* prePathMatrix, bool pathIsMutable) const { in drawPath() 56 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkPaint&) const; 64 const SkPath&, const SkMatrix*, const SkPaint&) const; 87 const SkMaskFilter*, const SkMatrix* filterMatrix, 106 static RectType ComputeRectType(const SkPaint&, const SkMatrix&, 109 static bool ShouldDrawTextAsPaths(const SkPaint&, const SkMatrix&); 120 void drawPath(const SkPath&, const SkPaint&, const SkMatrix* preMatrix, 136 const SkMatrix* fMatrix; // required
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkShader.h | 39 SkShader(const SkMatrix* localMatrix = NULL); 45 const SkMatrix& getLocalMatrix() const { return fLocalMatrix; } in getLocalMatrix() 57 void setLocalMatrix(const SkMatrix& localM) { fLocalMatrix = localM; } in setLocalMatrix() 131 ContextRec(const SkBitmap& device, const SkPaint& paint, const SkMatrix& matrix) in ContextRec() 139 const SkMatrix* fMatrix; // the current matrix in the canvas 140 const SkMatrix* fLocalMatrix; // optional local matrix 205 static MatrixClass ComputeMatrixClass(const SkMatrix&); 208 const SkMatrix& getTotalInverse() const { return fTotalInverse; } in getTotalInverse() 210 const SkMatrix& getCTM() const { return fCTM; } in getCTM() 212 SkMatrix fCTM; [all …]
|
D | SkMatrix.h | 29 class SK_API SkMatrix { 225 void setConcat(const SkMatrix& a, const SkMatrix& b); 258 void preConcat(const SkMatrix& other); 295 void postConcat(const SkMatrix& other); 348 bool SK_WARN_UNUSED_RESULT invert(SkMatrix* inverse) const { in invert() 499 typedef void (*MapXYProc)(const SkMatrix& mat, SkScalar x, SkScalar y, 511 typedef void (*MapPtsProc)(const SkMatrix& mat, SkPoint dst[], 537 bool cheapEqualTo(const SkMatrix& m) const { in cheapEqualTo() 541 friend bool operator==(const SkMatrix& a, const SkMatrix& b); 542 friend bool operator!=(const SkMatrix& a, const SkMatrix& b) { [all …]
|
D | SkMaskFilter.h | 22 class SkMatrix; variable 61 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&, 77 const SkMatrix& ctm) const; 93 const SkMatrix& ctm, 122 const SkMatrix& ctm, 189 const SkMatrix&, 195 virtual FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&, 207 bool filterPath(const SkPath& devPath, const SkMatrix& ctm, const SkRasterClip&, SkBlitter*, 214 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRasterClip&,
|
D | SkDraw.h | 20 class SkMatrix; variable 48 const SkMatrix* prePathMatrix, bool pathIsMutable) const { in drawPath() 56 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkPaint&) const; 64 const SkPath&, const SkMatrix*, const SkPaint&) const; 87 const SkMaskFilter*, const SkMatrix* filterMatrix, 106 static RectType ComputeRectType(const SkPaint&, const SkMatrix&, 109 static bool ShouldDrawTextAsPaths(const SkPaint&, const SkMatrix&); 120 void drawPath(const SkPath&, const SkPaint&, const SkMatrix* preMatrix, 136 const SkMatrix* fMatrix; // required
|
/external/chromium_org/third_party/skia/src/gpu/gl/ |
D | GrGLUtil.cpp | 261 template<> void GrGLGetMatrix<3>(GrGLfloat* dest, const SkMatrix& src) { in GrGLGetMatrix() 263 dest[0] = SkScalarToFloat(src[SkMatrix::kMScaleX]); in GrGLGetMatrix() 264 dest[1] = SkScalarToFloat(src[SkMatrix::kMSkewY]); in GrGLGetMatrix() 265 dest[2] = SkScalarToFloat(src[SkMatrix::kMPersp0]); in GrGLGetMatrix() 268 dest[3] = SkScalarToFloat(src[SkMatrix::kMSkewX]); in GrGLGetMatrix() 269 dest[4] = SkScalarToFloat(src[SkMatrix::kMScaleY]); in GrGLGetMatrix() 270 dest[5] = SkScalarToFloat(src[SkMatrix::kMPersp1]); in GrGLGetMatrix() 273 dest[6] = SkScalarToFloat(src[SkMatrix::kMTransX]); in GrGLGetMatrix() 274 dest[7] = SkScalarToFloat(src[SkMatrix::kMTransY]); in GrGLGetMatrix() 275 dest[8] = SkScalarToFloat(src[SkMatrix::kMPersp2]); in GrGLGetMatrix() [all …]
|
D | GrGLProgramEffects.cpp | 100 const SkMatrix& matrix = coordTransform.getMatrix(); in get_transform_translation() 103 const SkMatrix& coordChangeMatrix = drawEffect.getCoordChangeMatrix(); in get_transform_translation() 104 SkASSERT(SkMatrix::kTranslate_Mask == (matrix.getType() | coordChangeMatrix.getType())); in get_transform_translation() 105 *tx = SkScalarToFloat(matrix[SkMatrix::kMTransX] + coordChangeMatrix[SkMatrix::kMTransX]); in get_transform_translation() 106 *ty = SkScalarToFloat(matrix[SkMatrix::kMTransY] + coordChangeMatrix[SkMatrix::kMTransY]); in get_transform_translation() 108 SkASSERT(SkMatrix::kTranslate_Mask == matrix.getType()); in get_transform_translation() 109 *tx = SkScalarToFloat(matrix[SkMatrix::kMTransX]); in get_transform_translation() 110 *ty = SkScalarToFloat(matrix[SkMatrix::kMTransY]); in get_transform_translation() 117 SkMatrix get_transform_matrix(const GrDrawEffect& drawEffect, int transformIdx) { in get_transform_matrix() 119 SkMatrix combined; in get_transform_matrix() [all …]
|
/external/skia/src/gpu/gl/ |
D | GrGLUtil.cpp | 261 template<> void GrGLGetMatrix<3>(GrGLfloat* dest, const SkMatrix& src) { in GrGLGetMatrix() 263 dest[0] = SkScalarToFloat(src[SkMatrix::kMScaleX]); in GrGLGetMatrix() 264 dest[1] = SkScalarToFloat(src[SkMatrix::kMSkewY]); in GrGLGetMatrix() 265 dest[2] = SkScalarToFloat(src[SkMatrix::kMPersp0]); in GrGLGetMatrix() 268 dest[3] = SkScalarToFloat(src[SkMatrix::kMSkewX]); in GrGLGetMatrix() 269 dest[4] = SkScalarToFloat(src[SkMatrix::kMScaleY]); in GrGLGetMatrix() 270 dest[5] = SkScalarToFloat(src[SkMatrix::kMPersp1]); in GrGLGetMatrix() 273 dest[6] = SkScalarToFloat(src[SkMatrix::kMTransX]); in GrGLGetMatrix() 274 dest[7] = SkScalarToFloat(src[SkMatrix::kMTransY]); in GrGLGetMatrix() 275 dest[8] = SkScalarToFloat(src[SkMatrix::kMPersp2]); in GrGLGetMatrix() [all …]
|
D | GrGLProgramEffects.cpp | 100 const SkMatrix& matrix = coordTransform.getMatrix(); in get_transform_translation() 103 const SkMatrix& coordChangeMatrix = drawEffect.getCoordChangeMatrix(); in get_transform_translation() 104 SkASSERT(SkMatrix::kTranslate_Mask == (matrix.getType() | coordChangeMatrix.getType())); in get_transform_translation() 105 *tx = SkScalarToFloat(matrix[SkMatrix::kMTransX] + coordChangeMatrix[SkMatrix::kMTransX]); in get_transform_translation() 106 *ty = SkScalarToFloat(matrix[SkMatrix::kMTransY] + coordChangeMatrix[SkMatrix::kMTransY]); in get_transform_translation() 108 SkASSERT(SkMatrix::kTranslate_Mask == matrix.getType()); in get_transform_translation() 109 *tx = SkScalarToFloat(matrix[SkMatrix::kMTransX]); in get_transform_translation() 110 *ty = SkScalarToFloat(matrix[SkMatrix::kMTransY]); in get_transform_translation() 117 SkMatrix get_transform_matrix(const GrDrawEffect& drawEffect, int transformIdx) { in get_transform_matrix() 119 SkMatrix combined; in get_transform_matrix() [all …]
|
/external/chromium_org/third_party/skia/tests/ |
D | MatrixTest.cpp | 19 static bool nearly_equal(const SkMatrix& a, const SkMatrix& b) { in nearly_equal() 30 const SkMatrix& a, in are_equal() 31 const SkMatrix& b) { in are_equal() 68 static bool is_identity(const SkMatrix& m) { in is_identity() 69 SkMatrix identity; in is_identity() 76 SkMatrix matrix; in test_matrix_recttorect() 80 matrix.setRectToRect(src, dst, SkMatrix::kFill_ScaleToFit); in test_matrix_recttorect() 81 REPORTER_ASSERT(reporter, SkMatrix::kIdentity_Mask == matrix.getType()); in test_matrix_recttorect() 85 matrix.setRectToRect(src, dst, SkMatrix::kFill_ScaleToFit); in test_matrix_recttorect() 86 REPORTER_ASSERT(reporter, SkMatrix::kTranslate_Mask == matrix.getType()); in test_matrix_recttorect() [all …]
|
/external/skia/tests/ |
D | MatrixTest.cpp | 19 static bool nearly_equal(const SkMatrix& a, const SkMatrix& b) { in nearly_equal() 30 const SkMatrix& a, in are_equal() 31 const SkMatrix& b) { in are_equal() 68 static bool is_identity(const SkMatrix& m) { in is_identity() 69 SkMatrix identity; in is_identity() 76 SkMatrix matrix; in test_matrix_recttorect() 80 matrix.setRectToRect(src, dst, SkMatrix::kFill_ScaleToFit); in test_matrix_recttorect() 81 REPORTER_ASSERT(reporter, SkMatrix::kIdentity_Mask == matrix.getType()); in test_matrix_recttorect() 85 matrix.setRectToRect(src, dst, SkMatrix::kFill_ScaleToFit); in test_matrix_recttorect() 86 REPORTER_ASSERT(reporter, SkMatrix::kTranslate_Mask == matrix.getType()); in test_matrix_recttorect() [all …]
|
/external/skia/include/pdf/ |
D | SkPDFDevice.h | 70 const SkMatrix& initialTransform); 88 const SkPaint& paint, const SkMatrix* prePathMatrix, 95 const SkMatrix& matrix, const SkPaint&) SK_OVERRIDE; 104 const SkPath& path, const SkMatrix* matrix, 184 SK_API const SkMatrix& initialTransform() const { in initialTransform() 220 SkMatrix fInitialTransform; 274 const SkMatrix& matrix, 283 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix, 297 void internalDrawBitmap(const SkMatrix& matrix, 312 const SkMatrix* prePathMatrix = NULL); [all …]
|
/external/chromium_org/third_party/skia/include/pdf/ |
D | SkPDFDevice.h | 70 const SkMatrix& initialTransform); 88 const SkPaint& paint, const SkMatrix* prePathMatrix, 95 const SkMatrix& matrix, const SkPaint&) SK_OVERRIDE; 104 const SkPath& path, const SkMatrix* matrix, 184 SK_API const SkMatrix& initialTransform() const { in initialTransform() 220 SkMatrix fInitialTransform; 274 const SkMatrix& matrix, 283 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix, 297 void internalDrawBitmap(const SkMatrix& matrix, 312 const SkMatrix* prePathMatrix = NULL); [all …]
|
/external/chromium_org/third_party/skia/include/utils/ |
D | SkLayer.h | 37 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix() 38 const SkMatrix& getChildrenMatrix() const { return fChildrenMatrix; } in getChildrenMatrix() 48 void setMatrix(const SkMatrix&); 49 void setChildrenMatrix(const SkMatrix&); 93 void getLocalTransform(SkMatrix* matrix) const; 99 void localToGlobal(SkMatrix* matrix) const; 121 SkMatrix fMatrix; 122 SkMatrix fChildrenMatrix;
|
/external/skia/include/utils/ |
D | SkLayer.h | 37 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix() 38 const SkMatrix& getChildrenMatrix() const { return fChildrenMatrix; } in getChildrenMatrix() 48 void setMatrix(const SkMatrix&); 49 void setChildrenMatrix(const SkMatrix&); 93 void getLocalTransform(SkMatrix* matrix) const; 99 void localToGlobal(SkMatrix* matrix) const; 121 SkMatrix fMatrix; 122 SkMatrix fChildrenMatrix;
|
/external/skia/include/effects/ |
D | Sk2DPathEffect.h | 17 static Sk2DPathEffect* Create(const SkMatrix& mat) { in Create() 43 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix() 46 explicit Sk2DPathEffect(const SkMatrix& mat); 51 SkMatrix fMatrix, fInverse; 64 static SkLine2DPathEffect* Create(SkScalar width, const SkMatrix& matrix) { in Create() 74 SkLine2DPathEffect(SkScalar width, const SkMatrix& matrix) in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS() 94 static SkPath2DPathEffect* Create(const SkMatrix& matrix, const SkPath& path) { in Create() 101 SkPath2DPathEffect(const SkMatrix&, const SkPath&);
|
/external/chromium_org/third_party/skia/include/effects/ |
D | Sk2DPathEffect.h | 17 static Sk2DPathEffect* Create(const SkMatrix& mat) { in Create() 43 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix() 46 explicit Sk2DPathEffect(const SkMatrix& mat); 51 SkMatrix fMatrix, fInverse; 64 static SkLine2DPathEffect* Create(SkScalar width, const SkMatrix& matrix) { in Create() 74 SkLine2DPathEffect(SkScalar width, const SkMatrix& matrix) in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS() 94 static SkPath2DPathEffect* Create(const SkMatrix& matrix, const SkPath& path) { in Create() 101 SkPath2DPathEffect(const SkMatrix&, const SkPath&);
|