Home
last modified time | relevance | path

Searched refs:Matrix4 (Results 1 – 19 of 19) sorted by relevance

/aosp12/frameworks/base/libs/hwui/
H A DMatrix.h47 class Matrix4 {
100 friend bool operator==(const Matrix4& a, const Matrix4& b) {
104 friend bool operator!=(const Matrix4& a, const Matrix4& b) { return !(a == b); }
118 void loadMultiply(const Matrix4& u, const Matrix4& v);
126 Matrix4 inv; in multiplyInverse()
133 Matrix4 u; in multiply()
152 Matrix4 u;
167 Matrix4 u; in scale()
173 Matrix4 u; in skew()
179 Matrix4 u; in rotate()
[all …]
H A DMatrix.cpp40 const Matrix4& Matrix4::identity() { in identity()
41 static Matrix4 sIdentity; in identity()
45 void Matrix4::loadIdentity() { in loadIdentity()
73 uint8_t Matrix4::getType() const { in getType()
120 bool Matrix4::rectToRect() const { in rectToRect()
138 bool Matrix4::isSimple() const { in isSimple()
142 bool Matrix4::isIdentity() const { in isIdentity()
150 void Matrix4::load(const float* v) { in load()
198 void Matrix4::loadInverse(const Matrix4& v) { in loadInverse()
276 void Matrix4::multiply(float v) { in multiply()
[all …]
H A DDamageAccumulator.h38 class Matrix4; variable
51 void pushTransform(const Matrix4* transform);
62 void computeCurrentTransform(Matrix4* outMatrix) const;
H A DDamageAccumulator.cpp38 const Matrix4* matrix4;
55 static void computeTransformImpl(const DirtyStack* currentFrame, Matrix4* outMatrix) { in computeTransformImpl()
75 void DamageAccumulator::computeCurrentTransform(Matrix4* outMatrix) const { in computeCurrentTransform()
97 void DamageAccumulator::pushTransform(const Matrix4* transform) { in pushTransform()
122 static inline void mapRect(const Matrix4* matrix, const SkRect& in, SkRect* out) { in mapRect()
211 Matrix4* outMatrix) { in computeTransformImpl()
297 Matrix4 stretchMatrix; in findNearestStretchEffect()
H A DReadback.cpp215 Matrix4 texTransform; in copySurfaceIntoLegacy()
253 Matrix4 transform; in copyHWBitmapInto()
282 Matrix4 transform; in copyImageInto()
288 CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, Matrix4& texTransform, in copyImageInto()
308 if (texTransform[Matrix4::kSkewX] >= 0.5f || texTransform[Matrix4::kSkewX] <= -0.5f) { in copyImageInto()
H A DReadback.h59 CopyResult copyImageInto(const sk_sp<SkImage>& image, Matrix4& texTransform,
H A DRenderProperties.h52 class Matrix4; variable
/aosp12/frameworks/base/libs/hwui/tests/unit/
H A DDamageAccumulatorTests.cpp35 da.pushTransform(&Matrix4::identity()); in TEST()
38 da.pushTransform(&Matrix4::identity()); in TEST()
54 Matrix4 translate; in TEST()
70 da.pushTransform(&Matrix4::identity()); in TEST()
72 da.pushTransform(&Matrix4::identity()); in TEST()
75 da.pushTransform(&Matrix4::identity()); in TEST()
H A DMatrixTests.cpp26 Matrix4 scaleMatrix; in TEST()
40 Matrix4 skewMatrix; in TEST()
H A DSkiaRenderPropertiesTests.cpp127 Matrix4 matrix; in TEST()
139 Matrix4 actual(canvas.getTotalMatrix()); in TEST()
H A DSkiaDisplayListTests.cpp246 Matrix4 mat4; in RENDERTHREAD_SKIA_PIPELINE_TEST()
287 Matrix4 mat4; in RENDERTHREAD_SKIA_PIPELINE_TEST()
308 Matrix4 mat4; in RENDERTHREAD_SKIA_PIPELINE_TEST()
H A DDeferredLayerUpdaterTests.cpp39 EXPECT_EQ(Matrix4::identity(), layerUpdater->backingLayer()->getTexTransform()); in RENDERTHREAD_TEST()
H A DRenderNodeDrawableTests.cpp532 Matrix4 windowTransform; in RENDERTHREAD_SKIA_PIPELINE_TEST()
/aosp12/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaDisplayList.cpp68 static bool intersects(const SkISize screenSize, const Matrix4& mat, const SkRect& bounds) { in intersects()
112 Matrix4 mat4(child.getRecordedMatrix()); in prepareListAndChildren()
152 Matrix4 totalMatrix; in prepareListAndChildren()
154 Matrix4 canvasMatrix(cachedMatrix); in prepareListAndChildren()
H A DSkiaLayer.h31 Matrix4 inverseTransformInWindow;
H A DSkiaPipeline.cpp185 Matrix4 windowTransform; in createOrUpdateLayer()
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DTestTrivialModel.cpp27 typedef float Matrix4[4]; typedef
43 const Matrix4 matrix2b = {100.f, 200.f, 300.f, 400.f};
295 ASSERT_EQ(execution.setInput(1, matrix2b, sizeof(Matrix4)), Result::NO_ERROR); in TEST_F()
324 ASSERT_EQ(execution.setInput(1, matrix2b, sizeof(Matrix4)), Result::NO_ERROR); in TEST_F()
/aosp12/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.h134 static bool matricesAreApproxEqual(const Matrix4& a, const Matrix4& b) { in matricesAreApproxEqual()
/aosp12/frameworks/base/libs/hwui/jni/
H A Dandroid_graphics_RenderNode.cpp571 Matrix4 transform; in android_view_RenderNode_requestPositionUpdates()