Loading libs/hwui/Glop.h +0 −4 Original line number Diff line number Diff line Loading @@ -135,10 +135,6 @@ struct Glop { } fill; struct Transform { // Orthographic projection matrix for current FBO // TODO: move out of Glop, since this is static per FBO Matrix4 ortho; // modelView transform, accounting for delta between mesh transform and content of the mesh // often represents x/y offsets within command, or scaling for mesh unit size Matrix4 modelView; Loading libs/hwui/GlopBuilder.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -461,11 +461,10 @@ GlopBuilder& GlopBuilder::setFillTextureLayer(Layer& layer, float alpha) { // Transform //////////////////////////////////////////////////////////////////////////////// void GlopBuilder::setTransform(const Matrix4& ortho, const Matrix4& canvas, void GlopBuilder::setTransform(const Matrix4& canvas, const int transformFlags) { TRIGGER_STAGE(kTransformStage); mOutGlop->transform.ortho = ortho; mOutGlop->transform.canvas = canvas; mOutGlop->transform.transformFlags = transformFlags; } Loading libs/hwui/GlopBuilder.h +2 −3 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ public: GlopBuilder& setFillTextureLayer(Layer& layer, float alpha); GlopBuilder& setTransform(const Snapshot& snapshot, const int transformFlags) { setTransform(snapshot.getOrthoMatrix(), *snapshot.transform, transformFlags); setTransform(*snapshot.transform, transformFlags); return *this; } Loading Loading @@ -102,8 +102,7 @@ private: void setFill(int color, float alphaScale, SkXfermode::Mode mode, Blend::ModeOrderSwap modeUsage, const SkShader* shader, const SkColorFilter* colorFilter); void setTransform(const Matrix4& ortho, const Matrix4& canvas, const int transformFlags); void setTransform(const Matrix4& canvas, const int transformFlags); enum StageFlags { kInitialStage = 0, Loading libs/hwui/OpenGLRenderer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1405,7 +1405,7 @@ void OpenGLRenderer::renderGlop(const Glop& glop, GlopRenderType type) { setStencilFromClip(); } mRenderState.render(glop); mRenderState.render(glop, currentSnapshot()->getOrthoMatrix()); if (type == GlopRenderType::Standard && !mRenderState.stencil().isWriteEnabled()) { // TODO: specify more clearly when a draw should dirty the layer. // is writing to the stencil the only time we should ignore this? Loading libs/hwui/renderstate/RenderState.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -208,7 +208,7 @@ void RenderState::postDecStrong(VirtualLightRefBase* object) { // Render /////////////////////////////////////////////////////////////////////////////// void RenderState::render(const Glop& glop) { void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { const Glop::Mesh& mesh = glop.mesh; const Glop::Mesh::Vertices& vertices = mesh.vertices; const Glop::Mesh::Indices& indices = mesh.indices; Loading @@ -223,7 +223,7 @@ void RenderState::render(const Glop& glop) { fill.program->setColor(fill.color); } fill.program->set(glop.transform.ortho, fill.program->set(orthoMatrix, glop.transform.modelView, glop.transform.meshTransform(), glop.transform.transformFlags & TransformFlags::OffsetByFudgeFactor); Loading Loading
libs/hwui/Glop.h +0 −4 Original line number Diff line number Diff line Loading @@ -135,10 +135,6 @@ struct Glop { } fill; struct Transform { // Orthographic projection matrix for current FBO // TODO: move out of Glop, since this is static per FBO Matrix4 ortho; // modelView transform, accounting for delta between mesh transform and content of the mesh // often represents x/y offsets within command, or scaling for mesh unit size Matrix4 modelView; Loading
libs/hwui/GlopBuilder.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -461,11 +461,10 @@ GlopBuilder& GlopBuilder::setFillTextureLayer(Layer& layer, float alpha) { // Transform //////////////////////////////////////////////////////////////////////////////// void GlopBuilder::setTransform(const Matrix4& ortho, const Matrix4& canvas, void GlopBuilder::setTransform(const Matrix4& canvas, const int transformFlags) { TRIGGER_STAGE(kTransformStage); mOutGlop->transform.ortho = ortho; mOutGlop->transform.canvas = canvas; mOutGlop->transform.transformFlags = transformFlags; } Loading
libs/hwui/GlopBuilder.h +2 −3 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ public: GlopBuilder& setFillTextureLayer(Layer& layer, float alpha); GlopBuilder& setTransform(const Snapshot& snapshot, const int transformFlags) { setTransform(snapshot.getOrthoMatrix(), *snapshot.transform, transformFlags); setTransform(*snapshot.transform, transformFlags); return *this; } Loading Loading @@ -102,8 +102,7 @@ private: void setFill(int color, float alphaScale, SkXfermode::Mode mode, Blend::ModeOrderSwap modeUsage, const SkShader* shader, const SkColorFilter* colorFilter); void setTransform(const Matrix4& ortho, const Matrix4& canvas, const int transformFlags); void setTransform(const Matrix4& canvas, const int transformFlags); enum StageFlags { kInitialStage = 0, Loading
libs/hwui/OpenGLRenderer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1405,7 +1405,7 @@ void OpenGLRenderer::renderGlop(const Glop& glop, GlopRenderType type) { setStencilFromClip(); } mRenderState.render(glop); mRenderState.render(glop, currentSnapshot()->getOrthoMatrix()); if (type == GlopRenderType::Standard && !mRenderState.stencil().isWriteEnabled()) { // TODO: specify more clearly when a draw should dirty the layer. // is writing to the stencil the only time we should ignore this? Loading
libs/hwui/renderstate/RenderState.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -208,7 +208,7 @@ void RenderState::postDecStrong(VirtualLightRefBase* object) { // Render /////////////////////////////////////////////////////////////////////////////// void RenderState::render(const Glop& glop) { void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { const Glop::Mesh& mesh = glop.mesh; const Glop::Mesh::Vertices& vertices = mesh.vertices; const Glop::Mesh::Indices& indices = mesh.indices; Loading @@ -223,7 +223,7 @@ void RenderState::render(const Glop& glop) { fill.program->setColor(fill.color); } fill.program->set(glop.transform.ortho, fill.program->set(orthoMatrix, glop.transform.modelView, glop.transform.meshTransform(), glop.transform.transformFlags & TransformFlags::OffsetByFudgeFactor); Loading