5#include "flutter/flow/raster_cache_util.h"
21 if (out_tx != in_tx || out_ty != in_ty) {
36 if (in.
rc(0, 1) != 0 || in.
rc(0, 2) != 0) {
40 if (in.
rc(1, 0) != 0 || in.
rc(1, 2) != 0) {
44 if (in.
rc(3, 0) != 0 || in.
rc(3, 1) != 0 || in.
rc(3, 2) != 0 ||
56 if (out_tx != in_tx || out_ty != in_ty) {
60 out->setRC(0, 3, out_tx);
61 out->setRC(1, 3, out_ty);
#define SkScalarRoundToScalar(x)
SkScalar rc(int r, int c) const
static constexpr int kMTransY
vertical translation
SkScalar getTranslateY() const
bool isScaleTranslate() const
static constexpr int kMTransX
horizontal translation
SkScalar getTranslateX() const
static bool ComputeIntegralTransCTM(const SkMatrix &in, SkMatrix *out)
Snap the translation components of the |in| matrix to integers and store the snapped matrix in |out|.