Home
last modified time | relevance | path

Searched refs:fMatrix (Results 1 – 25 of 130) sorted by relevance

123456

/external/chromium_org/third_party/skia/src/animator/
DSkDrawMatrix.cpp56 fMatrix.reset(); in SkDrawMatrix()
81 copy->fMatrix = fMatrix; in deepCopy()
99 if (fMatrix.isIdentity()) { in dump()
104 result = fMatrix[SkMatrix::kMScaleX]; in dump()
107 result = fMatrix.getScaleY(); in dump()
110 result = fMatrix.getSkewX(); in dump()
113 result = fMatrix.getSkewY(); in dump()
116 result = fMatrix.getTranslateX(); in dump()
119 result = fMatrix.getTranslateY(); in dump()
122 result = SkPerspToScalar(fMatrix.getPerspX()); in dump()
[all …]
DSkMatrixParts.cpp16 SkMatrixPart::SkMatrixPart() : fMatrix(NULL) { in SkMatrixPart()
20 fMatrix->dirty(); in dirty()
24 return fMatrix; in getParent()
31 fMatrix = (SkDrawMatrix*) parent; in setParent()
52 fMatrix->rotate(degrees, center); in add()
74 fMatrix->scale(x, y, center); in add()
96 fMatrix->skew(x, y, center); in add()
116 fMatrix->translate(x, y); in add()
153 fMatrix->set(result); in add()
182 fMatrix->set(temp); in add()
[all …]
DSkDrawMatrix.h46 fMatrix.preRotate(degrees, center.fX, center.fY); in rotate()
50 fMatrix.preConcat(src); in set()
54 fMatrix.preScale(scaleX, scaleY, center.fX, center.fY); in scale()
58 fMatrix.preSkew(skewX, skewY, center.fX, center.fY); in skew()
62 fMatrix.preTranslate(x, y); in translate()
67 SkMatrix fMatrix; variable
/external/skia/src/animator/
DSkDrawMatrix.cpp56 fMatrix.reset(); in SkDrawMatrix()
81 copy->fMatrix = fMatrix; in deepCopy()
99 if (fMatrix.isIdentity()) { in dump()
104 result = fMatrix[SkMatrix::kMScaleX]; in dump()
107 result = fMatrix.getScaleY(); in dump()
110 result = fMatrix.getSkewX(); in dump()
113 result = fMatrix.getSkewY(); in dump()
116 result = fMatrix.getTranslateX(); in dump()
119 result = fMatrix.getTranslateY(); in dump()
122 result = SkPerspToScalar(fMatrix.getPerspX()); in dump()
[all …]
DSkMatrixParts.cpp16 SkMatrixPart::SkMatrixPart() : fMatrix(NULL) { in SkMatrixPart()
20 fMatrix->dirty(); in dirty()
24 return fMatrix; in getParent()
31 fMatrix = (SkDrawMatrix*) parent; in setParent()
52 fMatrix->rotate(degrees, center); in add()
74 fMatrix->scale(x, y, center); in add()
96 fMatrix->skew(x, y, center); in add()
116 fMatrix->translate(x, y); in add()
153 fMatrix->set(result); in add()
182 fMatrix->set(temp); in add()
[all …]
DSkDrawMatrix.h46 fMatrix.preRotate(degrees, center.fX, center.fY); in rotate()
50 fMatrix.preConcat(src); in set()
54 fMatrix.preScale(scaleX, scaleY, center.fX, center.fY); in scale()
58 fMatrix.preSkew(skewX, skewY, center.fX, center.fY); in skew()
62 fMatrix.preTranslate(x, y); in translate()
67 SkMatrix fMatrix; variable
/external/chromium_org/third_party/skia/bench/
DMatrixBench.cpp235 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest()
240 junk ^= (fMatrix.getType()); in performTest()
241 fMatrix.dirtyMatrixTypeCache(); in performTest()
242 junk ^= (fMatrix.getType()); in performTest()
243 fMatrix.dirtyMatrixTypeCache(); in performTest()
244 junk ^= (fMatrix.getType()); in performTest()
245 fMatrix.dirtyMatrixTypeCache(); in performTest()
246 junk ^= (fMatrix.getType()); in performTest()
247 fMatrix.dirtyMatrixTypeCache(); in performTest()
248 junk ^= (fMatrix.getType()); in performTest()
[all …]
/external/skia/bench/
DMatrixBench.cpp235 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest()
240 junk ^= (fMatrix.getType()); in performTest()
241 fMatrix.dirtyMatrixTypeCache(); in performTest()
242 junk ^= (fMatrix.getType()); in performTest()
243 fMatrix.dirtyMatrixTypeCache(); in performTest()
244 junk ^= (fMatrix.getType()); in performTest()
245 fMatrix.dirtyMatrixTypeCache(); in performTest()
246 junk ^= (fMatrix.getType()); in performTest()
247 fMatrix.dirtyMatrixTypeCache(); in performTest()
248 junk ^= (fMatrix.getType()); in performTest()
[all …]
/external/skia/src/core/
DSkTextMapStateProc.h17 : fMatrix(matrix) in SkTextMapStateProc()
20 , fScaleX(fMatrix.getScaleX()) in SkTextMapStateProc()
21 , fTransX(fMatrix.getTranslateX()) { in SkTextMapStateProc()
24 unsigned mtype = fMatrix.getType(); in SkTextMapStateProc()
28 fY = SkScalarMul(y, fMatrix.getScaleY()) + in SkTextMapStateProc()
29 fMatrix.getTranslateY(); in SkTextMapStateProc()
44 const SkMatrix& fMatrix;
59 fProc(fMatrix, pos[0], pos[1], loc); in operator()
70 fProc(fMatrix, *pos, fY, loc); in operator()
DSkPictureStateTree.cpp18 fRoot.fMatrix = &fRootMatrix; in SkPictureStateTree()
23 fCurrentState.fMatrix = &fRootMatrix; in SkPictureStateTree()
69 fCurrentState.fMatrix = m; in appendTransform()
87 n->fMatrix = fCurrentState.fMatrix; in appendNode()
205 this->setCurrentMatrix(fCurrentNode->fMatrix); in nextDraw()
212 this->setCurrentMatrix(draw->fMatrix); in nextDraw()
/external/chromium_org/third_party/skia/src/core/
DSkTextMapStateProc.h17 : fMatrix(matrix) in SkTextMapStateProc()
20 , fScaleX(fMatrix.getScaleX()) in SkTextMapStateProc()
21 , fTransX(fMatrix.getTranslateX()) { in SkTextMapStateProc()
24 unsigned mtype = fMatrix.getType(); in SkTextMapStateProc()
28 fY = SkScalarMul(y, fMatrix.getScaleY()) + in SkTextMapStateProc()
29 fMatrix.getTranslateY(); in SkTextMapStateProc()
44 const SkMatrix& fMatrix;
59 fProc(fMatrix, pos[0], pos[1], loc); in operator()
70 fProc(fMatrix, *pos, fY, loc); in operator()
/external/skia/include/gpu/
DGrCoordTransform.h73 fMatrix = m;
80 fMatrix = other.fMatrix;
91 return &fMatrix; in accessMatrix()
96 fMatrix.cheapEqualTo(other.fMatrix) &&
101 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix()
106 SkMatrix fMatrix; variable
/external/chromium_org/third_party/skia/src/views/animated/
DSkImageView.cpp19 fMatrix = NULL; in SkImageView()
30 if (fMatrix) in ~SkImageView()
31 sk_free(fMatrix); in ~SkImageView()
74 if (fMatrix) in getImageMatrix()
76 SkASSERT(!fMatrix->isIdentity()); in getImageMatrix()
78 *matrix = *fMatrix; in getImageMatrix()
95 if (fMatrix == NULL) in setImageMatrix()
96 fMatrix = (SkMatrix*)sk_malloc_throw(sizeof(SkMatrix)); in setImageMatrix()
97 *fMatrix = *matrix; in setImageMatrix()
102 if (fMatrix) in setImageMatrix()
[all …]
/external/skia/src/views/animated/
DSkImageView.cpp19 fMatrix = NULL; in SkImageView()
30 if (fMatrix) in ~SkImageView()
31 sk_free(fMatrix); in ~SkImageView()
74 if (fMatrix) in getImageMatrix()
76 SkASSERT(!fMatrix->isIdentity()); in getImageMatrix()
78 *matrix = *fMatrix; in getImageMatrix()
95 if (fMatrix == NULL) in setImageMatrix()
96 fMatrix = (SkMatrix*)sk_malloc_throw(sizeof(SkMatrix)); in setImageMatrix()
97 *fMatrix = *matrix; in setImageMatrix()
102 if (fMatrix) in setImageMatrix()
[all …]
/external/skia/gm/
Dshadertext2.cpp39 SkMatrix fMatrix; member
63 matrices.append()->fMatrix.reset(); in onDraw()
65 matrices.append()->fMatrix.setScale(1.2f, 0.8f); in onDraw()
67 matrices.append()->fMatrix.setRotate(10.f); in onDraw()
69 matrices.append()->fMatrix.reset(); in onDraw()
70 matrices.top().fMatrix.setPerspX(-0.0015f); in onDraw()
71 matrices.top().fMatrix.setPerspY(+0.0015f); in onDraw()
75 localMatrices.append()->fMatrix.reset(); in onDraw()
77 localMatrices.append()->fMatrix.setScale(2.5f, 0.2f); in onDraw()
79 localMatrices.append()->fMatrix.setRotate(45.f); in onDraw()
[all …]
Dfilterindiabox.cpp56 fMatrix[0].setScale(horizScale, vertScale); in onOnceBeforeDraw()
57 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(horizScale, vertScale); in onOnceBeforeDraw()
62 SkMatrix fMatrix[2]; member in FilterIndiaBoxGM
88 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { in onDraw()
89 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
93 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
Dfilterbitmap.cpp57 fMatrix[0].setScale(scale, scale); in onOnceBeforeDraw()
58 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(scale, scale); in onOnceBeforeDraw()
61 fMatrix[2].setScale(0.7f, 1.05f); in onOnceBeforeDraw()
66 SkMatrix fMatrix[3]; member in FilterBitmapGM
93 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { in onDraw()
94 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
98 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
/external/chromium_org/third_party/skia/include/gpu/
DGrCoordTransform.h73 fMatrix = m;
80 fMatrix = other.fMatrix;
91 return &fMatrix; in accessMatrix()
96 fMatrix.cheapEqualTo(other.fMatrix) &&
101 const SkMatrix& getMatrix() const { return fMatrix; } in getMatrix()
115 SkMatrix fMatrix; variable
/external/chromium_org/third_party/skia/gm/
Dshadertext2.cpp39 SkMatrix fMatrix; member
63 matrices.append()->fMatrix.reset(); in onDraw()
65 matrices.append()->fMatrix.setScale(1.2f, 0.8f); in onDraw()
67 matrices.append()->fMatrix.setRotate(10.f); in onDraw()
69 matrices.append()->fMatrix.reset(); in onDraw()
70 matrices.top().fMatrix.setPerspX(-0.0015f); in onDraw()
71 matrices.top().fMatrix.setPerspY(+0.0015f); in onDraw()
75 localMatrices.append()->fMatrix.reset(); in onDraw()
77 localMatrices.append()->fMatrix.setScale(2.5f, 0.2f); in onDraw()
79 localMatrices.append()->fMatrix.setRotate(45.f); in onDraw()
[all …]
Dfilterindiabox.cpp56 fMatrix[0].setScale(horizScale, vertScale); in onOnceBeforeDraw()
57 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(horizScale, vertScale); in onOnceBeforeDraw()
62 SkMatrix fMatrix[2]; member in FilterIndiaBoxGM
91 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { in onDraw()
92 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
96 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
Dfilterbitmap.cpp57 fMatrix[0].setScale(scale, scale); in onOnceBeforeDraw()
58 fMatrix[1].setRotate(30, cx, cy); fMatrix[1].postScale(scale, scale); in onOnceBeforeDraw()
61 fMatrix[2].setScale(0.7f, 1.05f); in onOnceBeforeDraw()
66 SkMatrix fMatrix[3]; member in FilterBitmapGM
93 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { in onDraw()
94 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
98 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
/external/chromium_org/third_party/skia/src/pdf/
DSkPDFDeviceFlattener.cpp28 *d.fMatrix)); in flattenPaint()
45 d.fMatrix->mapPoints(flattenedPoints, points, SkToS32(count)); in drawPoints()
48 draw.fMatrix = &identity; in drawPoints()
61 path.transform(*d.fMatrix); in drawRect()
64 draw.fMatrix = &matrix; in drawRect()
106 tmpPath.transform(*d.fMatrix); in drawPath()
110 draw.fMatrix = &matrix; in drawPath()
147 return d.fMatrix->hasPerspective(); in mustFlatten()
153 return d.fMatrix->hasPerspective(); in mustPathText()
/external/skia/src/pdf/
DSkPDFDeviceFlattener.cpp28 *d.fMatrix)); in flattenPaint()
45 d.fMatrix->mapPoints(flattenedPoints, points, SkToS32(count)); in drawPoints()
48 draw.fMatrix = &identity; in drawPoints()
61 path.transform(*d.fMatrix); in drawRect()
64 draw.fMatrix = &matrix; in drawRect()
106 tmpPath.transform(*d.fMatrix); in drawPath()
110 draw.fMatrix = &matrix; in drawPath()
147 return d.fMatrix->hasPerspective(); in mustFlatten()
153 return d.fMatrix->hasPerspective(); in mustPathText()
/external/chromium_org/third_party/skia/src/effects/
DSkColorMatrixFilter.cpp210 SkColorMatrixFilter::SkColorMatrixFilter(const SkColorMatrix& cm) : fMatrix(cm) { in SkColorMatrixFilter()
215 memcpy(fMatrix.fMat, array, 20 * sizeof(SkScalar)); in SkColorMatrixFilter()
306 SkASSERT(sizeof(fMatrix.fMat)/sizeof(SkScalar) == 20); in flatten()
307 buffer.writeScalarArray(fMatrix.fMat, 20); in flatten()
313 if (buffer.readScalarArray(fMatrix.fMat, 20)) { in SkColorMatrixFilter()
314 this->initState(fMatrix.fMat); in SkColorMatrixFilter()
329 memcpy(matrix, fMatrix.fMat, 20 * sizeof(SkScalar)); in asColorMatrix()
378 if (0 != fMatrix.fMat[kAlphaRowStartIdx + i]) { in getConstantColorComponents()
384 outputA += fMatrix.fMat[kAlphaRowStartIdx + i] * component; in getConstantColorComponents()
388 outputA += fMatrix.fMat[kAlphaRowTranslateIdx]; in getConstantColorComponents()
[all …]
/external/skia/src/effects/
DSkColorMatrixFilter.cpp210 SkColorMatrixFilter::SkColorMatrixFilter(const SkColorMatrix& cm) : fMatrix(cm) { in SkColorMatrixFilter()
215 memcpy(fMatrix.fMat, array, 20 * sizeof(SkScalar)); in SkColorMatrixFilter()
307 SkASSERT(sizeof(fMatrix.fMat)/sizeof(SkScalar) == 20); in flatten()
308 buffer.writeScalarArray(fMatrix.fMat, 20); in flatten()
314 if (buffer.readScalarArray(fMatrix.fMat, 20)) { in SkColorMatrixFilter()
315 this->initState(fMatrix.fMat); in SkColorMatrixFilter()
321 memcpy(matrix, fMatrix.fMat, 20 * sizeof(SkScalar)); in asColorMatrix()
370 if (0 != fMatrix.fMat[kAlphaRowStartIdx + i]) { in getConstantColorComponents()
376 outputA += fMatrix.fMat[kAlphaRowStartIdx + i] * component; in getConstantColorComponents()
380 outputA += fMatrix.fMat[kAlphaRowTranslateIdx]; in getConstantColorComponents()
[all …]

123456