/external/skia/src/effects/ |
H A D | SkRectShaderImageFilter.cpp | 71 SkMatrix matrix(ctx.ctm()); 72 matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); 73 paint.setShader(SkShader::CreateLocalMatrixShader(fShader, matrix))->unref();
|
/external/skia/src/effects/gradients/ |
H A D | SkTwoPointConicalGradient_gpu.cpp | 39 // Inverse of the current local matrix is passed in then, 64 const SkMatrix& matrix, 66 AutoEffectUnref effect(SkNEW_ARGS(Edge2PtConicalEffect, (ctx, shader, matrix, tm))); 93 const SkMatrix& matrix, 95 : INHERITED(ctx, shader, matrix, tm), 308 // Inverse of the current local matrix is passed in then, 317 SkMatrix matrix; local 319 matrix.setTranslate(-centerEnd.fX, -centerEnd.fY); 320 matrix.postScale(invRadius, invRadius); 323 matrix 62 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm) argument 91 Edge2PtConicalEffect(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm) argument 369 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, SkScalar focalX) argument 396 FocalOutside2PtConicalEffect(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, SkScalar focalX) argument 584 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, SkScalar focalX) argument 609 FocalInside2PtConicalEffect(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, SkScalar focalX) argument 770 SkMatrix matrix; local 818 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, const CircleConicalInfo& info) argument 850 CircleInside2PtConicalEffect(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, const CircleConicalInfo& info) argument 1031 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, const CircleConicalInfo& info) argument 1067 CircleOutside2PtConicalEffect(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, const CircleConicalInfo& info) argument 1292 SkMatrix matrix; local [all...] |
/external/chromium_org/skia/ext/ |
H A D | platform_device_mac.cc | 84 const SkMatrix& matrix) { 87 // the current transformation matrix identity and only then load the new one. 89 // Reset matrix to identity. 101 SkMatrix transformed_matrix = matrix; 102 SkScalar sy = matrix.getScaleY() * (SkScalar)-1; 105 SkScalar ty = -matrix.getTranslateY(); // y axis is flipped. 83 LoadTransformToCGContext(CGContextRef context, const SkMatrix& matrix) argument
|
/external/chromium_org/third_party/skia/samplecode/ |
H A D | SampleCircle.cpp | 101 SkMatrix matrix; local 102 matrix.setScale(SkIntToScalar(100), SkIntToScalar(100)); 103 matrix.postTranslate(SkIntToScalar(200), SkIntToScalar(200)); 104 canvas->concat(matrix);
|
H A D | SampleSkLayer.cpp | 115 SkMatrix matrix; local 118 layer->getLocalTransform(&matrix); 119 matrix.toString(&matrixStr); 197 SkMatrix matrix; local 198 matrix.setScale(0.5, 0.5); 199 fRootLayer->setMatrix(matrix); 227 SkMatrix matrix; local 228 fLastChild->localToGlobal(&matrix); 233 canvas->concat(matrix);
|
H A D | SampleTextOnPath.cpp | 54 SkMatrix matrix; local 77 matrix.setScale(-SK_Scalar1, SK_Scalar1); 78 matrix.postTranslate(pathLen, 0); 79 canvas->drawTextOnPath(text, len, path, &matrix, paint); 82 matrix.setScale(SK_Scalar1, -SK_Scalar1); 83 canvas->drawTextOnPath(text, len, path, &matrix, paint); 86 matrix.setScale(-SK_Scalar1, -SK_Scalar1); 87 matrix.postTranslate(pathLen, 0); 88 canvas->drawTextOnPath(text, len, path, &matrix, paint);
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkBBoxHierarchyRecord.cpp | 87 void SkBBoxHierarchyRecord::didConcat(const SkMatrix& matrix) { argument 89 INHERITED::didConcat(matrix); 92 void SkBBoxHierarchyRecord::didSetMatrix(const SkMatrix& matrix) { argument 94 INHERITED::didSetMatrix(matrix);
|
H A D | SkColorFilter.cpp | 20 bool SkColorFilter::asColorMatrix(SkScalar matrix[20]) const {
|
/external/chromium_org/third_party/skia/src/pdf/ |
H A D | SkPDFShader.h | 37 * @param matrix The current transform. (PDF shaders are absolutely 39 * @param surfceBBox The bounding box of the drawing surface (with matrix 43 const SkMatrix& matrix,
|
H A D | SkPDFDeviceFlattener.cpp | 63 SkMatrix matrix = SkMatrix::I(); local 64 draw.fMatrix = &matrix; 109 SkMatrix matrix = SkMatrix::I(); local 110 draw.fMatrix = &matrix; 136 const SkPath& path, const SkMatrix* matrix, 138 if (mustPathText(d, paint) || (matrix && matrix->hasPerspective())) { 139 d.drawTextOnPath((const char*)text, len, path, matrix, paint); 142 INHERITED::drawTextOnPath(d, text, len, path, matrix, paint); 135 drawTextOnPath(const SkDraw& d, const void* text, size_t len, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint) argument
|
/external/eigen/Eigen/src/Eigen2Support/ |
H A D | Minor.h | 61 inline Minor(const MatrixType& matrix, argument 63 : m_matrix(matrix), m_row(row), m_col(col) 65 eigen_assert(row >= 0 && row < matrix.rows() 66 && col >= 0 && col < matrix.cols());
|
/external/skia/include/effects/ |
H A D | SkStippleMaskFilter.h | 23 const SkMatrix& matrix,
|
/external/skia/samplecode/ |
H A D | SampleCircle.cpp | 101 SkMatrix matrix; local 102 matrix.setScale(SkIntToScalar(100), SkIntToScalar(100)); 103 matrix.postTranslate(SkIntToScalar(200), SkIntToScalar(200)); 104 canvas->concat(matrix);
|
H A D | SampleSkLayer.cpp | 115 SkMatrix matrix; local 118 layer->getLocalTransform(&matrix); 119 matrix.toString(&matrixStr); 197 SkMatrix matrix; local 198 matrix.setScale(0.5, 0.5); 199 fRootLayer->setMatrix(matrix); 227 SkMatrix matrix; local 228 fLastChild->localToGlobal(&matrix); 233 canvas->concat(matrix);
|
H A D | SampleTextOnPath.cpp | 54 SkMatrix matrix; local 77 matrix.setScale(-SK_Scalar1, SK_Scalar1); 78 matrix.postTranslate(pathLen, 0); 79 canvas->drawTextOnPath(text, len, path, &matrix, paint); 82 matrix.setScale(SK_Scalar1, -SK_Scalar1); 83 canvas->drawTextOnPath(text, len, path, &matrix, paint); 86 matrix.setScale(-SK_Scalar1, -SK_Scalar1); 87 matrix.postTranslate(pathLen, 0); 88 canvas->drawTextOnPath(text, len, path, &matrix, paint);
|
/external/skia/src/core/ |
H A D | SkBBoxHierarchyRecord.cpp | 67 void SkBBoxHierarchyRecord::didConcat(const SkMatrix& matrix) { argument 69 INHERITED::didConcat(matrix); 72 void SkBBoxHierarchyRecord::didSetMatrix(const SkMatrix& matrix) { argument 74 INHERITED::didSetMatrix(matrix);
|
H A D | SkColorFilter.cpp | 20 bool SkColorFilter::asColorMatrix(SkScalar matrix[20]) const {
|
/external/skia/src/gpu/gl/ |
H A D | GrGLUniformManager.cpp | 173 void GrGLUniformManager::setMatrix3f(UniformHandle u, const GrGLfloat matrix[]) const { 180 GR_GL_CALL(fGpu->glInterface(), UniformMatrix3fv(uni.fFSLocation, 1, false, matrix)); 183 GR_GL_CALL(fGpu->glInterface(), UniformMatrix3fv(uni.fVSLocation, 1, false, matrix)); 187 void GrGLUniformManager::setMatrix4f(UniformHandle u, const GrGLfloat matrix[]) const { 193 GR_GL_CALL(fGpu->glInterface(), UniformMatrix4fv(uni.fFSLocation, 1, false, matrix)); 196 GR_GL_CALL(fGpu->glInterface(), UniformMatrix4fv(uni.fVSLocation, 1, false, matrix)); 236 void GrGLUniformManager::setSkMatrix(UniformHandle u, const SkMatrix& matrix) const { 238 matrix.get(SkMatrix::kMScaleX), 239 matrix.get(SkMatrix::kMSkewY), 240 matrix [all...] |
/external/skia/src/pdf/ |
H A D | SkPDFShader.h | 37 * @param matrix The current transform. (PDF shaders are absolutely 39 * @param surfceBBox The bounding box of the drawing surface (with matrix 43 const SkMatrix& matrix,
|
H A D | SkPDFDeviceFlattener.cpp | 63 SkMatrix matrix = SkMatrix::I(); local 64 draw.fMatrix = &matrix; 109 SkMatrix matrix = SkMatrix::I(); local 110 draw.fMatrix = &matrix; 136 const SkPath& path, const SkMatrix* matrix, 138 if (mustPathText(d, paint) || (matrix && matrix->hasPerspective())) { 139 d.drawTextOnPath((const char*)text, len, path, matrix, paint); 142 INHERITED::drawTextOnPath(d, text, len, path, matrix, paint); 135 drawTextOnPath(const SkDraw& d, const void* text, size_t len, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint) argument
|
/external/chromium_org/ui/gfx/ |
H A D | skia_util.cc | 53 flattened->set(0, SkMScalarToScalar(transform.matrix().get(0, 0))); 54 flattened->set(1, SkMScalarToScalar(transform.matrix().get(0, 1))); 55 flattened->set(2, SkMScalarToScalar(transform.matrix().get(0, 3))); 56 flattened->set(3, SkMScalarToScalar(transform.matrix().get(1, 0))); 57 flattened->set(4, SkMScalarToScalar(transform.matrix().get(1, 1))); 58 flattened->set(5, SkMScalarToScalar(transform.matrix().get(1, 3))); 59 flattened->set(6, SkMScalarToScalar(transform.matrix().get(3, 0))); 60 flattened->set(7, SkMScalarToScalar(transform.matrix().get(3, 1))); 61 flattened->set(8, SkMScalarToScalar(transform.matrix().get(3, 3))); 76 // Unscale matrix b [all...] |
/external/opencv/cxcore/src/ |
H A D | cximage.cpp | 98 CV_ERROR( CV_StsUnsupportedFormat, "The object is neither an image, nor a matrix" ); 219 matrix = (CvMat*)cvMemStorageAlloc( storage, sizeof(*matrix) ); 220 cvInitMatHeader( matrix, rows, cols, type, alloc_data ? 224 matrix = 0; 249 CV_ERROR( CV_StsUnsupportedFormat, "The object is neither an image, nor a matrix" ); 340 if( !matrix ) 343 cvSave( filename, matrix, matname ); 347 save_image( filename, matrix ); 360 if( matrix ) [all...] |
/external/pixman/pixman/ |
H A D | pixman-linear-gradient.c | 50 if (image->common.transform->matrix[2][0] != 0 || 51 image->common.transform->matrix[2][1] != 0 || 52 image->common.transform->matrix[2][2] == 0) 57 v.vector[0] = image->common.transform->matrix[0][1]; 58 v.vector[1] = image->common.transform->matrix[1][1]; 59 v.vector[2] = image->common.transform->matrix[2][2]; 121 unit.vector[0] = image->common.transform->matrix[0][0]; 122 unit.vector[1] = image->common.transform->matrix[1][0]; 123 unit.vector[2] = image->common.transform->matrix[2][0];
|
H A D | pixman-image.c | 282 if (image->common.transform->matrix[2][0] == 0 && 283 image->common.transform->matrix[2][1] == 0 && 284 image->common.transform->matrix[2][2] == pixman_fixed_1) 288 if (image->common.transform->matrix[0][1] == 0 && 289 image->common.transform->matrix[1][0] == 0) 291 if (image->common.transform->matrix[0][0] == -pixman_fixed_1 && 292 image->common.transform->matrix[1][1] == -pixman_fixed_1) 298 else if (image->common.transform->matrix[0][0] == 0 && 299 image->common.transform->matrix[1][1] == 0) 301 pixman_fixed_t m01 = image->common.transform->matrix[ [all...] |
/external/chromium_org/third_party/skia/src/gpu/gl/ |
H A D | GrGLPathRendering.cpp | 79 // we don't use the model view matrix. 208 // mapRect through persp matrix may not be correct 211 // theoretically could set bloat = 0, instead leave it because of matrix inversion 284 // mapRect through persp matrix may not be correct 287 // theoretically could set bloat = 0, instead leave it because of matrix inversion 322 const SkMatrix& matrix) { 327 coefficients[0] = SkScalarToFloat(matrix[SkMatrix::kMScaleX]); 328 coefficients[1] = SkScalarToFloat(matrix[SkMatrix::kMSkewX]); 329 coefficients[2] = SkScalarToFloat(matrix[SkMatrix::kMTransX]); 332 coefficients[3] = SkScalarToFloat(matrix[SkMatri 321 enablePathTexGen(int unitIdx, PathTexGenComponents components, const SkMatrix& matrix) argument 369 setProgramPathFragmentInputTransform(GrGLuint program, GrGLint location, GrGLenum genMode, GrGLint components, const SkMatrix& matrix) argument 395 setProjectionMatrix(const SkMatrix& matrix, const SkISize& renderTargetSize, GrSurfaceOrigin renderTargetOrigin) argument [all...] |