| /external/chromium_org/third_party/skia/src/gpu/ |
| GrClipMaskManager.cpp | 36 // stage matrix this also alters the vertex layout 44 // We want to use device coords to compute the texture coordinates. We set our matrix to be 45 // equal to the view matrix followed by an offset to the devBound, and then a scaling matrix to 46 // normalized coords. We apply this matrix to the vertex positions rather than local coords. 572 // Set the matrix so that rendered clip elements are transformed to mask space from clip space. 718 // Set the matrix so that rendered clip elements are transformed from clip to stencil space. 723 SkMatrix matrix; local 724 matrix.setTranslate(translate); 725 GrDrawTarget::AutoGeometryAndStatePush agasp(fGpu, GrDrawTarget::kReset_ASRInit, &matrix); 1060 SkMatrix matrix; local [all...] |
| GrDrawTarget.cpp | 983 SkMatrix matrix; local [all...] |
| GrInOrderDrawBuffer.cpp | 130 // Go to device coords to allow batching across matrix changes 131 SkMatrix matrix = drawState->getViewMatrix(); local 134 // modify that stage's matrix. Otherwise if the effect is generating its source rect from 135 // the vertex positions then we have to account for the view matrix change. 144 matrix.mapPointsWithStride(geo.positions(), vstride, 4); [all...] |
| GrPathUtils.cpp | 16 // In order to tesselate the path we get a bound on how much the matrix can 198 // We invert the control pt matrix and post concat to both sides to get M. 199 // Using the known form of the control point matrix and the result, we can 228 // Set the matrix to give (u = 0, v = distance_to_line) 244 // It's a point. It should cover zero area. Just set the matrix such 252 // compute adjugate matrix 280 // The matrix should not have perspective. 596 // Where P is matrix of control points 603 SkMatrix matrix; local 604 matrix.setAll(p[0].fX, p[0].fY, 1.f [all...] |
| SkGpuDevice.cpp | 587 SkMatrix matrix; local 588 matrix.setTranslate(-maskRect.fLeft, -maskRect.fTop); 589 matrix.postIDiv(mask->width(), mask->height()); 591 grp->addCoverageProcessor(GrSimpleTextureEffect::Create(mask, matrix))->unref(); 618 // the current clip (and identity matrix) and GrPaint settings 766 // The context's matrix may change while creating the mask, so save the CTM here to 849 // Given a bitmap, an optional src rect, and a context with a clip and matrix determine what [all...] |
| /external/chromium_org/third_party/skia/src/ports/ |
| SkFontConfigInterface_direct.cpp | 402 // the undocumented property FC_MATRIX to a skew matrix. It'll then say 403 // that the font is italic or oblique. So, if we see a matrix, we don't 405 FcValue matrix; local 406 const bool have_matrix = FcPatternGet(font, FC_MATRIX, 0, &matrix) == 0;
|
| /external/chromium_org/third_party/skia/src/sfnt/ |
| SkOTTable_glyf.h | 157 union Matrix { 181 SkOTTableGlyphData::Composite::Component::Transform::Matrix matrix; member in struct:SkOTTableGlyphData::Composite::Component::Transform::WordValue 187 SkOTTableGlyphData::Composite::Component::Transform::Matrix matrix; member in struct:SkOTTableGlyphData::Composite::Component::Transform::ByteValue 193 SkOTTableGlyphData::Composite::Component::Transform::Matrix matrix; member in struct:SkOTTableGlyphData::Composite::Component::Transform::WordIndex 199 SkOTTableGlyphData::Composite::Component::Transform::Matrix matrix; member in struct:SkOTTableGlyphData::Composite::Component::Transform::ByteIndex
|
| /external/chromium_org/third_party/skia/tests/ |
| ImageFilterTest.cpp | 84 SkMatrix matrix; local 85 buffer.readMatrix(&matrix); 86 return SkNEW_ARGS(MatrixTestImageFilter, (reporter, matrix)); 124 SkScalar matrix[20] = { s, 0, 0, 0, 0, local 128 SkAutoTUnref<SkColorFilter> filter(SkColorMatrixFilter::Create(matrix)); 133 SkScalar matrix[20]; local 134 memset(matrix, 0, 20 * sizeof(SkScalar)); 135 matrix[0] = matrix[5] = matrix[10] = 0.2126f 386 SkMatrix matrix; local 484 SkMatrix matrix; local 1009 SkMatrix matrix; local [all...] |
| MatrixTest.cpp | 76 SkMatrix matrix; local 80 matrix.setRectToRect(src, dst, SkMatrix::kFill_ScaleToFit); 81 REPORTER_ASSERT(reporter, SkMatrix::kIdentity_Mask == matrix.getType()); 82 REPORTER_ASSERT(reporter, matrix.rectStaysRect()); 85 matrix.setRectToRect(src, dst, SkMatrix::kFill_ScaleToFit); 86 REPORTER_ASSERT(reporter, SkMatrix::kTranslate_Mask == matrix.getType()); 87 REPORTER_ASSERT(reporter, matrix.rectStaysRect()); 90 matrix.setRectToRect(src, dst, SkMatrix::kFill_ScaleToFit); 92 (SkMatrix::kTranslate_Mask | SkMatrix::kScale_Mask) == matrix.getType()); 93 REPORTER_ASSERT(reporter, matrix.rectStaysRect()) [all...] |
| CanvasTest.cpp | 208 SkMatrix matrix; local 209 matrix.reset(); 210 matrix.setScale(SkIntToScalar(2), SkIntToScalar(3)); 211 return matrix; 540 // correct clip and matrix stack state. 562 // clip and matrix stack state on the playback canvas. 616 REPORTER_ASSERT_MESSAGE(reporter, layerIter1.matrix() == 617 layerIter2.matrix(), testStep->assertMessage()); [all...] |
| /external/chromium_org/ui/gfx/ |
| transform_unittest.cc | 29 EXPECT_FLOAT_EQ((a), (transform).matrix().get(0, 0)); \ 30 EXPECT_FLOAT_EQ((b), (transform).matrix().get(0, 1)); \ 31 EXPECT_FLOAT_EQ((c), (transform).matrix().get(0, 2)); \ 32 EXPECT_FLOAT_EQ((d), (transform).matrix().get(0, 3)); 35 EXPECT_FLOAT_EQ((a), (transform).matrix().get(1, 0)); \ 36 EXPECT_FLOAT_EQ((b), (transform).matrix().get(1, 1)); \ 37 EXPECT_FLOAT_EQ((c), (transform).matrix().get(1, 2)); \ 38 EXPECT_FLOAT_EQ((d), (transform).matrix().get(1, 3)); 41 EXPECT_FLOAT_EQ((a), (transform).matrix().get(2, 0)); \ 42 EXPECT_FLOAT_EQ((b), (transform).matrix().get(2, 1)); 93 SkMatrix44& matrix = transform->matrix(); local 119 SkMatrix44& matrix = transform->matrix(); local 149 SkMatrix44& matrix = transform->matrix(); local 2279 SkMatrix44& matrix = A.matrix(); local [all...] |
| /external/eigen/Eigen/src/Geometry/ |
| Transform.h | 76 * - #Affine: the transformation is stored as a (Dim+1)^2 matrix, 78 * - #AffineCompact: the transformation is stored as a (Dim)x(Dim+1) matrix. 79 * - #Projective: the transformation is stored as a (Dim+1)^2 matrix 81 * \tparam _Options has the same meaning as in class Matrix. It allows to specify DontAlign and/or RowMajor. 82 * These Options are passed directly to the underlying matrix type. 84 * The homography is internally represented and stored by a matrix which 85 * is available through the matrix() method. To understand the behavior of 87 * matrix representation. The chosen convention is right multiply: 91 * Therefore, an affine transformation matrix M is shaped like this: 101 * However, unlike a plain matrix, the Transform class provides many feature 367 inline const MatrixType& matrix() const { return m_matrix; } function in class:Eigen::Transform 369 inline MatrixType& matrix() { return m_matrix; } function in class:Eigen::Transform [all...] |
| /external/mesa3d/src/gallium/auxiliary/vl/ |
| vl_mpeg12_decoder.c | 881 struct pipe_sampler_view *matrix = NULL; local 928 if (!(matrix = vl_idct_upload_matrix(dec->base.context, format_config->idct_scale))) 932 nr_of_idct_render_targets, matrix, matrix)) 936 nr_of_idct_render_targets, matrix, matrix)) 939 pipe_sampler_view_reference(&matrix, NULL); 947 pipe_sampler_view_reference(&matrix, NULL); [all...] |
| /external/mesa3d/src/gallium/state_trackers/vega/ |
| matrix.h | 79 struct matrix { struct 83 static INLINE void matrix_init(struct matrix *mat, 89 static INLINE void matrix_inits(struct matrix *mat, 99 static INLINE void matrix_load_identity(struct matrix *matrix) 104 memcpy(matrix->m, identity, sizeof(identity)); 107 static INLINE VGboolean matrix_is_identity(struct matrix *matrix) 109 return floatsEqual(matrix->m[0], 1) && floatIsZero(matrix->m[1]) & [all...] |
| /external/chromium_org/cc/output/ |
| renderer_pixeltest.cc | 771 SkScalar matrix[20]; local 773 matrix[0] = 0.213f + 0.787f * amount; 774 matrix[1] = 0.715f - 0.715f * amount; 775 matrix[2] = 1.f - (matrix[0] + matrix[1]); 776 matrix[3] = matrix[4] = 0; 777 matrix[5] = 0.213f - 0.213f * amount; 778 matrix[6] = 0.715f + 0.285f * amount 1001 SkScalar matrix[20]; local [all...] |
| /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
| arc.c | 29 #include "matrix.h" 141 /* Pre-compute rotation matrix entries */ 173 /* Pre-compute rotation matrix entries */ 231 struct matrix matrix; local 237 matrix_load_identity(&matrix); 238 matrix_scale(&matrix, 1.f, arc->a/arc->b); 239 matrix_rotate(&matrix, -arc->theta); 240 matrix_map_point(&matrix, 243 matrix_map_point(&matrix, [all...] |
| path.c | 32 #include "matrix.h" 64 struct matrix matrix; member in struct:path::__anon18839 69 struct matrix matrix; member in struct:path::__anon18840 292 struct matrix *matrix) 298 matrix_map_point(matrix, x0, y0, &x0, &y0); 360 static struct polygon_array * path_get_fill_polygons(struct path *p, struct matrix *matrix) 812 struct matrix *matrix; member in struct:transform_data [all...] |
| /external/chromium_org/third_party/mesa/src/src/glsl/ |
| ast_function.cpp | 514 * Dereference a specific component from a scalar, vector, or matrix 536 /* Dereference a row of the matrix, then call this function again to get 854 * Generate assignment of a portion of a vector to a portion of a matrix column 877 * that are to be assigned to the column of the matrix. 895 * Generate inline code for a matrix constructor 916 /* There are three kinds of matrix constructors. 918 * - Construct a matrix from a single scalar by replicating that scalar to 919 * along the diagonal of the matrix and setting all other components to 922 * - Construct a matrix from an arbirary combination of vectors and 924 * to the matrix in colum-major order until the matrix is full 1412 ir_rvalue *matrix = (ir_rvalue *) n; local [all...] |
| /external/chromium_org/third_party/qcms/src/ |
| qcmsint.h | 54 float ALIGN matrix[3][4]; member in struct:_qcms_transform 99 struct matrix { struct 109 struct matrix matrix; member in struct:qcms_modular_transform 249 struct matrix chromaticAdaption;
|
| /external/chromium_org/third_party/skia/samplecode/ |
| SampleSlides.cpp | 285 SkMatrix matrix; local 296 matrix.setScale(-SK_Scalar1, SK_Scalar1); 297 matrix.postTranslate(pathLen, 0); 298 canvas->drawTextOnPath(text, len, path, &matrix, paint); 301 matrix.setScale(SK_Scalar1, -SK_Scalar1); 302 canvas->drawTextOnPath(text, len, path, &matrix, paint); 305 matrix.setScale(-SK_Scalar1, -SK_Scalar1); 306 matrix.postTranslate(pathLen, 0); 307 canvas->drawTextOnPath(text, len, path, &matrix, paint); 562 static SkPathEffect* MakeDotEffect(SkScalar radius, const SkMatrix& matrix) { [all...] |
| /external/chromium_org/third_party/skia/src/effects/ |
| SkBlurMaskFilter.cpp | 81 bool filterRectMask(SkMask* dstM, const SkRect& r, const SkMatrix& matrix, 83 bool filterRRectMask(SkMask* dstM, const SkRRect& r, const SkMatrix& matrix, 160 const SkMatrix& matrix, 162 SkScalar sigma = this->computeXformedSigma(matrix); 167 const SkMatrix& matrix, 169 SkScalar sigma = computeXformedSigma(matrix); 176 const SkMatrix& matrix, 178 SkScalar sigma = computeXformedSigma(matrix); 267 SkBlurMaskFilterImpl::filterRRectToNine(const SkRRect& rrect, const SkMatrix& matrix, 319 filterResult = this->filterRRectMask(&dstM, rrect, matrix, &margin 1171 SkMatrix matrix; local [all...] |
| SkPerlinNoiseShader.cpp | 84 const SkMatrix& matrix) 88 matrix.mapVectors(&wavelength, 1); 93 matrix.mapVectors(&sizeVec, 1); 551 const SkMatrix& matrix, uint8_t alpha) { 553 permutationsTexture, noiseTexture, matrix, alpha)); 570 const SkMatrix& matrix() const { return fCoordTransform.getMatrix(); } function in class:SkPerlinNoiseShader::PaintingData::GrPerlinNoiseEffect 593 const SkMatrix& matrix, uint8_t alpha) 603 fCoordTransform.reset(kLocal_GrCoordSet, matrix); 980 SkMatrix matrix = context->getMatrix(); local [all...] |
| /external/chromium_org/third_party/skia/src/effects/gradients/ |
| SkTwoPointConicalGradient_gpu.cpp | 40 // Inverse of the current local matrix is passed in then, 65 const SkMatrix& matrix, 67 return SkNEW_ARGS(Edge2PtConicalEffect, (ctx, shader, matrix, tm)); 93 const SkMatrix& matrix, 95 : INHERITED(ctx, shader, matrix, tm), 317 // Inverse of the current local matrix is passed in then, 326 SkMatrix matrix; local 328 matrix.setTranslate(-centerEnd.fX, -centerEnd.fY); 329 matrix.postScale(invRadius, invRadius); 332 matrix.mapPoints(&focalTrans, &focal, 1) 780 SkMatrix matrix; local 1306 SkMatrix matrix; local [all...] |
| /external/chromium_org/third_party/skia/src/pdf/ |
| SkPDFShader.cpp | 26 static bool inverseTransformBBox(const SkMatrix& matrix, SkRect* bbox) { 28 if (!matrix.invert(&inverse)) { 35 static void unitToPointsMatrix(const SkPoint pts[2], SkMatrix* matrix) { 41 matrix->setSinCos(vec.fY, vec.fX); 42 matrix->preScale(mag, mag); 43 matrix->postTranslate(pts[0].fX, pts[0].fY); 220 * inversePerspectiveMatrix is the inverse perspective matrix. 229 // Perspective matrix should be: 653 const SkMatrix& matrix, 657 SkNEW_ARGS(State, (shader, matrix, surfaceBBox))) 1251 SkMatrix matrix; local [all...] |
| /external/chromium_org/ui/compositor/ |
| layer_unittest.cc | 236 const SkMatrix& matrix = canvas->sk_canvas()->getTotalMatrix(); variable 237 scale_x_ = matrix.getScaleX(); 238 scale_y_ = matrix.getScaleY(); [all...] |