/frameworks/native/libs/ui/tests/ |
D | mat_test.cpp | 33 mat4 m0; in TEST_F() 34 EXPECT_EQ(sizeof(mat4), sizeof(float)*16); in TEST_F() 38 mat4 m0; in TEST_F() 39 mat4 m1(2); in TEST_F() 48 mat4 m0; in TEST_F() 66 mat4 m1(2); in TEST_F() 67 mat4 m2(vec4(2)); in TEST_F() 68 mat4 m3(m2); in TEST_F() 74 mat4 m4(vec4(1), vec4(2), vec4(3), vec4(4)); in TEST_F() 78 mat4 m0; in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/Effects/ |
D | Daltonizer.cpp | 43 const mat4& Daltonizer::operator()() { in operator ()() 53 const mat4 rgb2xyz( 0.4124, 0.2126, 0.0193, 0, in update() 59 const mat4 xyz2lms( 0.7328,-0.7036, 0.0030, 0, in update() 65 const mat4 rgb2lms(xyz2lms*rgb2xyz); in update() 68 const mat4 lms2rgb(inverse(rgb2lms)); in update() 97 const mat4 lms2lmsp( 0.0000, 0.0000, 0.0000, 0, in update() 103 const mat4 lms2lmsd( 1.0000, -p0.x / p0.y, 0.0000, 0, in update() 109 const mat4 lms2lmst( 1.0000, 0.0000, -p1.x / p1.z, 0, in update() 121 const mat4 errp( 1.0, 0.7, 0.7, 0, in update() 127 const mat4 errd( 1.0, 0.0, 0.0, 0, in update() [all …]
|
D | Daltonizer.h | 47 const mat4& operator()(); 55 mat4 mColorTransform;
|
/frameworks/base/libs/hwui/ |
D | SkiaShader.h | 54 static void setupProgram(Caches* caches, const mat4& modelViewMatrix, 64 static void setupProgram(Caches* caches, const mat4& modelViewMatrix, in setupProgram() 77 static void setupProgram(Caches* caches, const mat4& modelViewMatrix, 88 static void setupProgram(Caches* caches, const mat4& modelViewMatrix, 101 static void setupProgram(Caches* caches, const mat4& modelViewMatrix, 112 static void setupProgram(Caches* caches, const mat4& modelViewMatrix,
|
D | SkiaShader.cpp | 71 static void computeScreenSpaceMatrix(mat4& screenSpace, const SkMatrix& unitMatrix, in computeScreenSpaceMatrix() 72 const SkMatrix& localMatrix, const mat4& modelViewMatrix) { in computeScreenSpaceMatrix() 73 mat4 shaderMatrix; in computeScreenSpaceMatrix() 139 typedef void (*setupProgramProc)(Caches* caches, const mat4& modelViewMatrix, 155 void SkiaShader::setupProgram(Caches* caches, const mat4& modelViewMatrix, in setupProgram() 170 void SkiaLayerShader::setupProgram(Caches* caches, const mat4& modelViewMatrix, in setupProgram() 183 mat4 textureTransform; in setupProgram() 263 void SkiaBitmapShader::setupProgram(Caches* caches, const mat4& modelViewMatrix, in setupProgram() 284 mat4 textureTransform; in setupProgram() 366 void SkiaGradientShader::setupProgram(Caches* caches, const mat4& modelViewMatrix, in setupProgram() [all …]
|
D | Program.cpp | 156 void Program::set(const mat4& projectionMatrix, const mat4& modelViewMatrix, in set() 157 const mat4& transformMatrix, bool offset) { in set() 162 mat4 p(projectionMatrix); in set() 175 mat4 t(transformMatrix); in set()
|
D | PathTessellator.h | 54 const mat4& transform, VertexBuffer& vertexBuffer); 68 const mat4& transform, VertexBuffer& vertexBuffer); 82 const mat4& transform, VertexBuffer& vertexBuffer);
|
D | Layer.h | 269 inline mat4& getTexTransform() { in getTexTransform() 273 inline mat4& getTransform() { in getTransform() 408 mat4 texTransform; 413 mat4 transform; 418 mat4 cachedInvTransformInWindow;
|
D | Program.h | 360 void set(const mat4& projectionMatrix, const mat4& modelViewMatrix, 361 const mat4& transformMatrix, bool offset = false); 434 mat4 mProjection;
|
D | Snapshot.h | 230 mat4* transform; 298 mat4 mOrthoMatrix; 306 mat4 mTransformRoot;
|
D | Matrix.cpp | 481 len = data[mat4::kScaleX] * data[mat4::kScaleX] + data[mat4::kSkewX] * data[mat4::kSkewX]; in decomposeScale() 482 sx = copysignf(sqrtf(len), data[mat4::kScaleX]); in decomposeScale() 483 len = data[mat4::kScaleY] * data[mat4::kScaleY] + data[mat4::kSkewY] * data[mat4::kSkewY]; in decomposeScale() 484 sy = copysignf(sqrtf(len), data[mat4::kScaleY]); in decomposeScale()
|
D | RenderNode.cpp | 467 void RenderNode::applyViewPropertyTransforms(mat4& matrix, bool true3dTransform) const { in applyViewPropertyTransforms() 472 mat4 stat(*properties().getStaticMatrix()); in applyViewPropertyTransforms() 475 mat4 anim(*properties().getAnimationMatrix()); in applyViewPropertyTransforms() 488 mat4 true3dMat; in applyViewPropertyTransforms() 523 properties().getOutline().getPath(), &mProjectedNodes, &mat4::identity()); in computeOrdering() 531 const mat4* transformFromProjectionSurface) { in computeOrderingImpl() 559 const mat4* projectionTransform = NULL; in computeOrderingImpl() 568 projectionTransform = &mat4::identity(); in computeOrderingImpl() 670 mat4 shadowMatrixXY(transformFromParent); in issueDrawShadowOperation() 674 mat4 shadowMatrixZ(transformFromParent); in issueDrawShadowOperation()
|
D | RenderNode.h | 180 void applyViewPropertyTransforms(mat4& matrix, bool true3dTransform = false) const; 200 const mat4* transformFromProjectionSurface);
|
D | ShadowTessellator.h | 76 const mat4& receiverTransform, const Vector3& lightCenter, int lightRadius,
|
D | OpenGLRenderer.h | 324 bool findBestFontTransform(const mat4& transform, SkMatrix* outMatrix) const; 597 const float right, const float bottom, const mat4 transform); 895 void setupDrawTextureTransformUniforms(mat4& transform); 963 mat4 mModelViewMatrix;
|
D | Snapshot.cpp | 181 mat4 inverse; in getLocalClip() 206 mat4 inverse; in resetTransform()
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
D | Description.h | 52 mat4 mProjectionMatrix; 55 mat4 mColorMatrix; 67 void setProjectionMatrix(const mat4& mtx); 68 void setColorMatrix(const mat4& mtx);
|
D | Description.cpp | 80 void Description::setProjectionMatrix(const mat4& mtx) { in setProjectionMatrix() 85 void Description::setColorMatrix(const mat4& mtx) { in setColorMatrix() 86 const mat4 identity; in setColorMatrix()
|
D | GLES20RenderEngine.cpp | 95 mat4 m; in setViewportAndProjection() 97 m = mat4::ortho(l, r, t, b, 0, 1); in setViewportAndProjection() 99 m = mat4::ortho(l, r, b, t, 0, 1); in setViewportAndProjection() 108 m = mat4::rotate(rot90InRadians, vec3(0,0,1)) * m; in setViewportAndProjection() 111 m = mat4::rotate(rot90InRadians * 2.0f, vec3(0,0,1)) * m; in setViewportAndProjection() 114 m = mat4::rotate(rot90InRadians * 3.0f, vec3(0,0,1)) * m; in setViewportAndProjection() 246 void GLES20RenderEngine::beginGroup(const mat4& colorTransform) { in beginGroup() 311 mState.setColorMatrix(mat4()); in endGroup()
|
D | Texture.h | 31 mat4 mTextureMatrix; 49 const mat4& getMatrix() const;
|
D | Texture.cpp | 43 mTextureMatrix = mat4(matrix); in setMatrix() 63 const mat4& Texture::getMatrix() const { in getMatrix()
|
D | GLES20RenderEngine.h | 51 mat4 colorTransform; 80 virtual void beginGroup(const mat4& colorTransform);
|
D | GLES11RenderEngine.h | 65 virtual void beginGroup(const mat4& colorTransform);
|
/frameworks/base/core/res/res/raw/ |
D | color_fade_vert.vert | 1 uniform mat4 proj_matrix; 2 uniform mat4 tex_matrix;
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/res/raw/ |
D | shaderarrayv.glsl | 13 mat4 model0 = UNI_model[0];
|