Searched refs:divx (Results 1 - 2 of 2) sorted by relevance
/external/skia/include/core/ |
H A D | SkMatrix.h | 183 /** Set the matrix to scale by 1/divx and 1/divy. Returns false and doesn't 184 touch the matrix if either divx or divy is zero. 186 bool setIDiv(int divx, int divy); 264 M' = S(1/divx, 1/divy, 0, 0) * M 266 bool postIDiv(int divx, int divy);
|
/external/skia/src/core/ |
H A D | SkMatrix.cpp | 235 bool SkMatrix::setIDiv(int divx, int divy) { argument 236 if (!divx || !divy) { 239 this->setScale(SK_Scalar1 / divx, SK_Scalar1 / divy); 310 bool SkMatrix::postIDiv(int divx, int divy) { argument 311 if (divx == 0 || divy == 0) { 316 fMat[kMScaleX] = roundidiv(fMat[kMScaleX], divx); 317 fMat[kMSkewX] = roundidiv(fMat[kMSkewX], divx); 318 fMat[kMTransX] = roundidiv(fMat[kMTransX], divx); 324 const float invX = 1.f / divx;
|
Completed in 130 milliseconds