HomeSort by relevance Sort by last modified time
    Searched refs:SkMatrix (Results 1 - 25 of 138) sorted by null

1 2 3 4 5 6

  /external/webkit/WebCore/platform/graphics/skia/
TransformationMatrixSkia.cpp 38 TransformationMatrix::operator SkMatrix() const
40 SkMatrix result;
53 result.set(SkMatrix::kMPersp2, SK_Scalar1);
58 AffineTransform::operator SkMatrix() const
60 SkMatrix result;
73 result.set(SkMatrix::kMPersp2, SK_Scalar1);
  /external/skia/include/core/
SkRasterizer.h 24 class SkMatrix;
34 bool rasterize(const SkPath& path, const SkMatrix& matrix,
42 virtual bool onRasterize(const SkPath& path, const SkMatrix& matrix,
SkPerspIter.h 20 #include "SkMatrix.h"
30 SkPerspIter(const SkMatrix& m, SkScalar x, SkScalar y, int count);
48 const SkMatrix& fMatrix;
SkMaskFilter.h 25 class SkMatrix;
62 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&, SkIPoint* margin);
69 bool filterPath(const SkPath& devPath, const SkMatrix& devMatrix,
SkShader.h 23 #include "SkMatrix.h"
44 bool getLocalMatrix(SkMatrix* localM) const;
48 void setLocalMatrix(const SkMatrix& localM);
111 const SkMatrix& matrix);
152 virtual bool asABitmap(SkBitmap* outTexture, SkMatrix* outMatrix,
174 static MatrixClass ComputeMatrixClass(const SkMatrix&);
179 const SkMatrix& getTotalInverse() const { return fTotalInverse; }
184 SkMatrix* fLocalMatrix;
185 SkMatrix fTotalInverse;
SkShape.h 7 class SkMatrix;
25 void drawMatrix(SkCanvas*, const SkMatrix&);
SkMatrix.h 24 /** \class SkMatrix
26 The SkMatrix class holds a 3x3 matrix for transforming coordinates.
27 SkMatrix does not have a constructor, so it must be explicitly initialized
31 class SkMatrix {
170 bool setConcat(const SkMatrix& a, const SkMatrix& b);
203 bool preConcat(const SkMatrix& other);
240 bool postConcat(const SkMatrix& other);
293 bool invert(SkMatrix* inverse) const;
371 typedef void (*MapXYProc)(const SkMatrix& mat, SkScalar x, SkScalar y
    [all...]
SkDevice.h 27 class SkMatrix;
92 virtual void setMatrixClip(const SkMatrix&, const SkRegion&);
112 const SkMatrix& matrix, const SkPaint& paint);
121 const SkPath& path, const SkMatrix* matrix,
125 const SkPath& path, const SkMatrix* matrix);
SkDraw.h 23 #include "SkMatrix.h"
47 const SkMatrix* prePathMatrix, bool pathIsMutable) const;
48 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkPaint&) const;
56 const SkPath&, const SkMatrix*, const SkPaint&) const;
59 const SkPath& path, const SkMatrix* matrix) const;
76 SkMaskFilter* filter, const SkMatrix* filterMatrix,
87 const SkMatrix* fMatrix; // required
  /external/skia/include/views/
SkImageView.h 25 struct SkMatrix;
47 bool getImageMatrix(SkMatrix*) const;
48 void setImageMatrix(const SkMatrix*);
58 SkMatrix* fMatrix; // null or copy of caller's matrix ,,,,,
  /external/skia/include/utils/
SkLayer.h 23 #include "SkMatrix.h"
42 const SkMatrix& getMatrix() const { return fMatrix; }
43 const SkMatrix& getChildrenMatrix() const { return fChildrenMatrix; }
53 void setMatrix(const SkMatrix&);
54 void setChildrenMatrix(const SkMatrix&);
98 void getLocalTransform(SkMatrix* matrix) const;
104 void localToGlobal(SkMatrix* matrix) const;
126 SkMatrix fMatrix;
127 SkMatrix fChildrenMatrix;
  /external/skia/tests/
MatrixTest.cpp 2 #include "SkMatrix.h"
14 static bool nearly_equal(const SkMatrix& a, const SkMatrix& b) {
24 static bool is_identity(const SkMatrix& m) {
25 SkMatrix identity;
30 static void test_flatten(skiatest::Reporter* reporter, const SkMatrix& m) {
32 char buffer[SkMatrix::kMaxFlattenSize + 100];
36 REPORTER_ASSERT(reporter, size1 <= SkMatrix::kMaxFlattenSize);
38 SkMatrix m2;
43 char buffer2[SkMatrix::kMaxFlattenSize + 100]
    [all...]
  /frameworks/base/core/jni/android/graphics/
Matrix.cpp 18 // This file was generated from the C++ include file: SkMatrix.h
27 #include "SkMatrix.h"
35 static void finalizer(JNIEnv* env, jobject clazz, SkMatrix* obj) {
39 static SkMatrix* create(JNIEnv* env, jobject clazz, const SkMatrix* src) {
40 SkMatrix* obj = new SkMatrix();
48 static jboolean isIdentity(JNIEnv* env, jobject clazz, SkMatrix* obj) {
52 static jboolean rectStaysRect(JNIEnv* env, jobject clazz, SkMatrix* obj) {
56 static void reset(JNIEnv* env, jobject clazz, SkMatrix* obj)
    [all...]
  /external/skia/src/animator/
SkDrawMatrix.h 22 #include "SkMatrix.h"
39 SkMatrix& getMatrix();
46 void concat(SkMatrix& inMatrix) {
57 void set(SkMatrix& src) {
74 SkMatrix fConcat;
75 SkMatrix fMatrix;
  /external/skia/src/core/
SkMatrix.cpp 1 /* libs/corecg/SkMatrix.cpp
18 #include "SkMatrix.h"
39 void SkMatrix::reset() {
49 static inline int has_perspective(const SkMatrix& matrix) {
50 return matrix.getType() & SkMatrix::kPerspective_Mask;
71 uint8_t SkMatrix::computeTypeMask() const {
85 int m00 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleX]);
86 int m01 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewX]);
87 int m10 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewY]);
88 int m11 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleY])
    [all...]
SkShader.cpp 28 SkMatrix matrix;
54 buffer.writeMul4(fLocalMatrix, sizeof(SkMatrix));
58 bool SkShader::getLocalMatrix(SkMatrix* localM) const {
72 void SkShader::setLocalMatrix(const SkMatrix& localM) {
77 fLocalMatrix = (SkMatrix*)sk_malloc_throw(sizeof(SkMatrix));
92 const SkMatrix& matrix) {
93 const SkMatrix* m = &matrix;
94 SkMatrix total;
183 SkShader::MatrixClass SkShader::ComputeMatrixClass(const SkMatrix& mat)
    [all...]
SkBitmapProcShader.h 29 virtual bool setContext(const SkBitmap&, const SkPaint&, const SkMatrix&);
35 virtual bool asABitmap(SkBitmap*, SkMatrix*, TileMode*);
SkMaskFilter.cpp 25 bool SkMaskFilter::filterMask(SkMask*, const SkMask&, const SkMatrix&, SkIPoint*)
30 bool SkMaskFilter::filterPath(const SkPath& devPath, const SkMatrix& matrix,
SkBitmapShaderTemplate.h 41 virtual bool setContext(const SkBitmap& device, const SkPaint& paint, const SkMatrix& matrix)
57 if ((this->getTotalInverse().getType() & ~SkMatrix::kTranslate_Mask) == 0)
66 const SkMatrix& inv = this->getUnitInverse();
67 SkMatrix::MapPtProc invProc = this->getUnitInverseProc();
69 const SkMatrix& inv = this->getTotalInverse();
70 SkMatrix::MapPtProc invProc = this->getInverseMapPtProc();
202 if ((this->getTotalInverse().getType() & ~SkMatrix::kTranslate_Mask) == 0)
210 const SkMatrix& inv = this->getUnitInverse();
211 SkMatrix::MapPtProc invProc = this->getUnitInverseProc();
213 const SkMatrix& inv = this->getTotalInverse()
    [all...]
SkBitmapProcState_matrix.h 22 SkASSERT((s.fInvType & ~(SkMatrix::kTranslate_Mask |
23 SkMatrix::kScale_Mask)) == 0);
87 SkASSERT(s.fInvType & SkMatrix::kAffine_Mask);
88 SkASSERT((s.fInvType & ~(SkMatrix::kTranslate_Mask |
89 SkMatrix::kScale_Mask |
90 SkMatrix::kAffine_Mask)) == 0);
114 SkASSERT(s.fInvType & SkMatrix::kPerspective_Mask);
152 SkASSERT((s.fInvType & ~(SkMatrix::kTranslate_Mask |
153 SkMatrix::kScale_Mask)) == 0);
193 SkASSERT(s.fInvType & SkMatrix::kAffine_Mask)
    [all...]
  /external/skia/include/effects/
Sk2DPathEffect.h 21 #include "SkMatrix.h"
26 Sk2DPathEffect(const SkMatrix& mat);
56 const SkMatrix& getMatrix() const { return fMatrix; }
62 SkMatrix fMatrix, fInverse;
  /external/skia/src/opts/
SkBitmapProcState_opts_arm.cpp 30 SkASSERT(s.fInvType <= (SkMatrix::kTranslate_Mask | SkMatrix::kScale_Mask));
115 SkASSERT(s.fInvType <= (SkMatrix::kTranslate_Mask | SkMatrix::kScale_Mask));
196 if (fInvType <= (SkMatrix::kTranslate_Mask | SkMatrix::kScale_Mask)) {
  /external/skia/src/gl/
SkGLDevice.h 37 virtual void setMatrixClip(const SkMatrix& matrix, const SkRegion& clip);
47 const SkMatrix& matrix, const SkPaint& paint);
56 const SkPath& path, const SkMatrix* matrix,
68 const SkMatrix& matrix() const { return fMatrix; }
74 SkMatrix fMatrix;
SkGL.h 17 #include "SkMatrix.h"
200 void set(const SkMatrix& m) {
202 fMat[0] = SkScalarToGL(m[SkMatrix::kMScaleX]);
203 fMat[4] = SkScalarToGL(m[SkMatrix::kMSkewX]);
204 fMat[12] = SkScalarToGL(m[SkMatrix::kMTransX]);
206 fMat[1] = SkScalarToGL(m[SkMatrix::kMSkewY]);
207 fMat[5] = SkScalarToGL(m[SkMatrix::kMScaleY]);
208 fMat[13] = SkScalarToGL(m[SkMatrix::kMTransY]);
210 fMat[3] = SkPerspToGL(m[SkMatrix::kMPersp0]);
211 fMat[7] = SkPerspToGL(m[SkMatrix::kMPersp1])
    [all...]
  /external/skia/src/views/
SkImageView.cpp 6 #include "SkMatrix.h"
65 bool SkImageView::getImageMatrix(SkMatrix* matrix) const
82 void SkImageView::setImageMatrix(const SkMatrix* matrix)
89 fMatrix = (SkMatrix*)sk_malloc_throw(sizeof(SkMatrix));
122 static inline SkMatrix::ScaleToFit scaleTypeToScaleToFit(SkImageView::ScaleType st)
127 SkASSERT(SkImageView::kFitXY_ScaleType - 1 == SkMatrix::kFill_ScaleToFit);
128 SkASSERT(SkImageView::kFitStart_ScaleType - 1 == SkMatrix::kStart_ScaleToFit);
129 SkASSERT(SkImageView::kFitCenter_ScaleType - 1 == SkMatrix::kCenter_ScaleToFit);
130 SkASSERT(SkImageView::kFitEnd_ScaleType - 1 == SkMatrix::kEnd_ScaleToFit)
    [all...]

Completed in 573 milliseconds

1 2 3 4 5 6