diff options
| author | John Reck <jreck@google.com> | 2016-01-19 11:46:52 -0800 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2016-01-19 12:58:48 -0800 |
| commit | 9372ac3621848085e77b867f220c0b5ffce4010d (patch) | |
| tree | 2077130e6ffe97d3aa03ae8bb7a861aaa452fb85 /libs/hwui/renderstate/RenderState.cpp | |
| parent | 663d09ab4273f3e2c68bfaa72d4973f58e5cc023 (diff) | |
Fix ordering of texture->upload arguments
Caught by scatter-shotting GL_CHECKPOINTS which
seem generally useful to have
Bug: 26609444
Change-Id: Ie31d9297d8dae56405126720f338b4256c8bae77
Diffstat (limited to 'libs/hwui/renderstate/RenderState.cpp')
| -rw-r--r-- | libs/hwui/renderstate/RenderState.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/hwui/renderstate/RenderState.cpp b/libs/hwui/renderstate/RenderState.cpp index b6dba02cb01d..e71d6eed2197 100644 --- a/libs/hwui/renderstate/RenderState.cpp +++ b/libs/hwui/renderstate/RenderState.cpp @@ -241,6 +241,8 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { const Glop::Mesh::Indices& indices = mesh.indices; const Glop::Fill& fill = glop.fill; + GL_CHECKPOINT(); + // --------------------------------------------- // ---------- Program + uniform setup ---------- // --------------------------------------------- @@ -284,6 +286,8 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { roundedOutRadius); } + GL_CHECKPOINT(); + // -------------------------------- // ---------- Mesh setup ---------- // -------------------------------- @@ -335,11 +339,15 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { // Shader uniforms SkiaShader::apply(*mCaches, fill.skiaShaderData); + GL_CHECKPOINT(); + // ------------------------------------ // ---------- GL state setup ---------- // ------------------------------------ blend().setFactors(glop.blend.src, glop.blend.dst); + GL_CHECKPOINT(); + // ------------------------------------ // ---------- Actual drawing ---------- // ------------------------------------ @@ -368,6 +376,8 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { glDrawArrays(mesh.primitiveMode, 0, mesh.elementCount); } + GL_CHECKPOINT(); + // ----------------------------------- // ---------- Mesh teardown ---------- // ----------------------------------- @@ -377,6 +387,8 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { if (vertices.attribFlags & VertexAttribFlags::Color) { glDisableVertexAttribArray(colorLocation); } + + GL_CHECKPOINT(); } void RenderState::dump() { |
