Searched defs:matrix (Results 151 - 175 of 654) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/include/gpu/
H A DGrProcessorStage.h51 // We always track the coord change matrix, but it has no effect when explicit local coords
71 * @param matrix The transformation from the old coord system in which geometry is specified
74 void localCoordChange(const SkMatrix& matrix) { argument
76 fCoordChangeMatrix.preConcat(matrix);
79 fCoordChangeMatrix = matrix;
122 * Gets the matrix representing all changes of coordinate system since the GrProcessor was
/external/chromium_org/third_party/skia/samplecode/
H A DSampleCircle.cpp101 SkMatrix matrix; local
102 matrix.setScale(SkIntToScalar(100), SkIntToScalar(100));
103 matrix.postTranslate(SkIntToScalar(200), SkIntToScalar(200));
104 canvas->concat(matrix);
H A DSampleFuzz.cpp327 SkMatrix matrix; local
328 set2x3(&matrix, make_number(),make_number(),make_number(),make_number(),make_number(),make_number());
329 canvas->concat(matrix);
334 SkMatrix matrix; local
335 set2x3(&matrix, make_number(),make_number(),make_number(),make_number(),make_number(),make_number());
336 canvas->setMatrix(matrix);
H A DSamplePolyToPoly.cpp16 extern bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]);
87 SkMatrix matrix; local
96 matrix.setPolyToPoly(src, dst, count);
97 canvas->concat(matrix);
H A DSampleStrokePath.cpp37 SkMatrix matrix; local
38 matrix.setRectToRect(srcR, dstR, SkMatrix::kCenter_ScaleToFit);
39 canvas->concat(matrix);
81 SkMatrix matrix; local
83 matrix.setScale(scale, scale);
84 path->transform(matrix);
/external/chromium_org/third_party/skia/src/animator/
H A DSkPathParts.h160 SkDrawMatrix* matrix; member in class:SkAddPath
/external/chromium_org/third_party/skia/src/core/
H A DSkBBoxHierarchyRecord.cpp87 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 DSkDrawProcs.h67 * the matrix is <= 1.0, then this returns true, and sets coverage (simulating
71 inline bool SkDrawTreatAsHairline(const SkPaint& paint, const SkMatrix& matrix, argument
87 return SkDrawTreatAAStrokeAsHairline(strokeWidth, matrix, coverage);
H A DSkPictureStateTree.cpp104 void SkPictureStateTree::Iterator::setCurrentMatrix(const SkMatrix* matrix) { argument
105 SkASSERT(matrix);
107 if (matrix == fCurrentMatrix) {
111 // The matrix is in recording space, but we also inherit
112 // a playback matrix from out target canvas.
113 SkMatrix m = *matrix;
116 fCurrentMatrix = matrix;
171 // restore() may change the matrix, so we need to reapply.
176 // restore() may change the matrix, so we need to reapply.
190 // restore() may change the matrix, s
[all...]
H A DSkRRect.cpp310 static bool matrix_only_scale_and_translate(const SkMatrix& matrix) { argument
313 return (matrix.getType() & m) == 0;
316 bool SkRRect::transform(const SkMatrix& matrix, SkRRect* dst) const { argument
326 if (matrix.isIdentity()) {
333 if (!matrix_only_scale_and_translate(matrix)) {
338 if (!matrix.mapRect(&newRect, fRect)) {
359 SkScalar xScale = matrix.getScaleX();
364 SkScalar yScale = matrix.getScaleY();
/external/chromium_org/third_party/skia/src/effects/
H A DSk1DPathEffect.cpp94 SkMatrix matrix; local
98 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0);
99 matrix.preTranslate(-sx, 0);
100 matrix.postTranslate(pos.fX, pos.fY);
101 matrix.mapPoints(&dst[i], &pt, 1);
201 SkMatrix matrix; local
202 if (meas.getMatrix(distance, &matrix)) {
203 dst->addPath(fPath, matrix);
H A DSk2DPathEffect.cpp114 SkMatrix matrix; local
115 buffer.readMatrix(&matrix);
117 return SkLine2DPathEffect::Create(width, matrix);
138 SkMatrix matrix; local
139 buffer.readMatrix(&matrix);
142 return SkPath2DPathEffect::Create(matrix, path);
H A DSkColorFilterImageFilter.cpp29 // To detect if we need to apply clamping after applying a matrix, we check if
51 bool matrix_needs_clamping(SkScalar matrix[20]) { argument
52 return component_needs_clamping(matrix)
53 || component_needs_clamping(matrix+5)
54 || component_needs_clamping(matrix+10)
55 || component_needs_clamping(matrix+15);
H A DSkEmbossMaskFilter.cpp78 const SkMatrix& matrix, SkIPoint* margin) const {
79 SkScalar sigma = matrix.mapRadius(fBlurSigma);
107 // run the light direction through the matrix...
109 matrix.mapVectors((SkVector*)(void*)light.fDirection,
77 filterMask(SkMask* dst, const SkMask& src, const SkMatrix& matrix, SkIPoint* margin) const argument
H A DSkMatrixImageFilter.cpp44 SkMatrix matrix; local
45 buffer.readMatrix(&matrix);
47 return Create(matrix, level, common.getInput(0), common.uniqueID());
75 SkMatrix matrix; local
76 if (!ctx.ctm().invert(&matrix)) {
79 matrix.postConcat(fTransform);
80 matrix.postConcat(ctx.ctm());
81 matrix.mapRect(&dstRect, srcRect);
91 canvas.concat(matrix);
109 SkMatrix matrix; local
122 SkMatrix matrix; local
[all...]
/external/chromium_org/third_party/skia/src/gpu/gl/
H A DGrGLProgramEffects.cpp23 * Retrieves the final matrix that a transform needs to apply to its source coords.
137 const SkMatrix& matrix = get_transform_matrix(effectStage, fHasExplicitLocalCoords, t); local
138 if (!transforms[t].fCurrentValue.cheapEqualTo(matrix)) {
139 pdman.setSkMatrix(transforms[t].fHandle, matrix);
140 transforms[t].fCurrentValue = matrix;
167 SkFAIL("Unexpected matrix type.");
/external/chromium_org/third_party/skia/src/utils/
H A DSkGatherPixelRefsAndRects.h113 const SkMatrix& matrix, const SkPaint& paint) SK_OVERRIDE {
115 totMatrix.setConcat(*draw.fMatrix, matrix);
130 // Sprites aren't affected by current matrix, so we can't reuse drawRect.
131 SkMatrix matrix; variable
132 matrix.setTranslate(SkIntToScalar(x), SkIntToScalar(y));
137 matrix.mapRect(&mappedRect, bitmapRect);
151 SkMatrix matrix; variable
152 matrix.setRectToRect(bitmapRect, dst, SkMatrix::kFill_ScaleToFit);
153 this->drawBitmap(draw, bitmap, matrix, paint);
245 const SkPath& path, const SkMatrix* matrix,
[all...]
H A DSkLayer.cpp77 void SkLayer::setMatrix(const SkMatrix& matrix) { argument
78 fMatrix = matrix;
81 void SkLayer::setChildrenMatrix(const SkMatrix& matrix) { argument
82 fChildrenMatrix = matrix;
141 void SkLayer::getLocalTransform(SkMatrix* matrix) const {
142 matrix->setTranslate(m_position.fX, m_position.fY);
146 matrix->preTranslate(tx, ty);
147 matrix->preConcat(this->getMatrix());
148 matrix->preTranslate(-tx, -ty);
151 void SkLayer::localToGlobal(SkMatrix* matrix) cons
[all...]
/external/chromium_org/third_party/skia/src/views/animated/
H A DSkImageView.cpp72 bool SkImageView::getImageMatrix(SkMatrix* matrix) const
77 if (matrix)
78 *matrix = *fMatrix;
83 if (matrix)
84 matrix->reset();
89 void SkImageView::setImageMatrix(const SkMatrix* matrix) argument
93 if (matrix && !matrix->isIdentity())
97 *fMatrix = *matrix;
111 // only redraw if we changed our matrix an
152 SkMatrix matrix; local
[all...]
/external/chromium_org/ui/gfx/geometry/
H A Dmatrix3_f.cc60 Matrix3F matrix; local
61 matrix.set(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
62 return matrix;
67 Matrix3F matrix; local
68 matrix.set(1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f);
69 return matrix;
74 Matrix3F matrix; local
75 matrix.set(1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f);
76 return matrix;
81 Matrix3F matrix; local
[all...]
/external/chromium_org/ui/gfx/
H A Dtransform.h24 // 4x4 transformation matrix. Transform is cheap and explicitly allows
35 // Skips initializing this matrix to avoid overhead, when we know it will be
43 // Constructs a transform from explicit 16 matrix elements. Elements
61 // Constructs a transform from explicit 2d elements. All other matrix
63 // matrix.
119 // Returns true if this is the identity matrix.
122 // Returns true if the matrix is either identity or pure translation.
125 // Returns true if the matrix is either identity or pure translation,
129 // Returns true if the matrix is either a positive scale and/or a translation.
137 // Returns true if the matrix i
248 const SkMatrix44& matrix() const { return matrix_; } function in class:gfx::Transform
249 SkMatrix44& matrix() { return matrix_; } function in class:gfx::Transform
[all...]
/external/eigen/Eigen/src/Core/
H A DArrayWrapper.h18 * \brief Expression of a mathematical vector or matrix as an array object
51 inline ArrayWrapper(ExpressionType& matrix) : m_expression(matrix) {} argument
138 * \brief Expression of an array as a mathematical vector or matrix
140 * This class is the return type of ArrayBase::matrix(), and most of the time
143 * \sa MatrixBase::matrix(), class ArrayWrapper
H A DDiagonal.h19 * \brief Expression of a diagonal/subdiagonal/superdiagonal in a matrix
26 * The matrix is not required to be square.
29 * of a square matrix. It is the return type of MatrixBase::diagonal() and MatrixBase::diagonal(Index) and most of the
73 inline Diagonal(MatrixType& matrix, Index a_index = DiagIndex) : m_matrix(matrix), m_index(a_index) {} argument
158 /** \returns an expression of the main diagonal of the matrix \c *this
181 /** \returns an expression of the \a DiagIndex-th sub or super diagonal of the matrix \c *this
207 /** \returns an expression of the \a DiagIndex-th sub or super diagonal of the matrix \c *this
H A DDiagonalProduct.h52 inline DiagonalProduct(const MatrixType& matrix, const DiagonalType& diagonal) argument
53 : m_matrix(matrix), m_diagonal(diagonal)
55 eigen_assert(diagonal.diagonal().size() == (ProductOrder == OnTheLeft ? matrix.rows() : matrix.cols()));
118 /** \returns the diagonal matrix product of \c *this by the diagonal matrix \a diagonal.
/external/eigen/Eigen/src/Eigenvalues/
H A DComplexEigenSolver.h26 * \tparam _MatrixType the type of the matrix of which we are
30 * The eigenvalues and eigenvectors of a matrix \f$ A \f$ are scalars
32 * \f$. If \f$ D \f$ is a diagonal matrix with the eigenvalues on
33 * the diagonal, and \f$ V \f$ is a matrix with the eigenvectors as
34 * its columns, then \f$ A V = V D \f$. The matrix \f$ V \f$ is
80 /** \brief Type for matrix of eigenvectors as returned by eigenvectors().
82 * This is a square matrix with entries of type #ComplexScalar.
116 /** \brief Constructor; computes eigendecomposition of given matrix.
118 * \param[in] matrix Square matrix whos
125 ComplexEigenSolver(const MatrixType& matrix, bool computeEigenvectors = true) argument
252 compute(const MatrixType& matrix, bool computeEigenvectors) argument
[all...]

Completed in 237 milliseconds

1234567891011>>