diff options
author | John Reck <jreck@google.com> | 2016-01-22 16:28:07 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2016-01-25 16:15:14 -0800 |
commit | 975591a7af883d866d86ab819e164c6004694744 (patch) | |
tree | b0247aebad80c7380141137e9de8d7edcf1ef89f /libs/hwui/renderstate/RenderState.cpp | |
parent | fe434a15d6bde9299b51dc284b336944e5cf8a1c (diff) |
Add fine-grained debug layer
Full GLES error checking layer via -include
trickery. Change DEBUG_OPENGL to a level system.
HIGH = every GL call is error checked
MODERATE = checkpointing at interesting spots
LOW = only asserts there are no errors at the end of a frame
or when the FBO changes
NONE = AIN'T GOT NO TIME FOR ERRORS GOTTA GO FAST!
Change-Id: Ibe81aae93d942059c4ddf1cbb11c828b7ce4c10b
Diffstat (limited to 'libs/hwui/renderstate/RenderState.cpp')
-rw-r--r-- | libs/hwui/renderstate/RenderState.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/hwui/renderstate/RenderState.cpp b/libs/hwui/renderstate/RenderState.cpp index 75dcf16123b5..81363d97876c 100644 --- a/libs/hwui/renderstate/RenderState.cpp +++ b/libs/hwui/renderstate/RenderState.cpp @@ -241,7 +241,7 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { const Glop::Mesh::Indices& indices = mesh.indices; const Glop::Fill& fill = glop.fill; - GL_CHECKPOINT(); + GL_CHECKPOINT(MODERATE); // --------------------------------------------- // ---------- Program + uniform setup ---------- @@ -286,7 +286,7 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { roundedOutRadius); } - GL_CHECKPOINT(); + GL_CHECKPOINT(MODERATE); // -------------------------------- // ---------- Mesh setup ---------- @@ -339,7 +339,7 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { // Shader uniforms SkiaShader::apply(*mCaches, fill.skiaShaderData); - GL_CHECKPOINT(); + GL_CHECKPOINT(MODERATE); Texture* texture = (fill.skiaShaderData.skiaShaderType & kBitmap_SkiaShaderType) ? fill.skiaShaderData.bitmapData.bitmapTexture : nullptr; const AutoTexture autoCleanup(texture); @@ -349,7 +349,7 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { // ------------------------------------ blend().setFactors(glop.blend.src, glop.blend.dst); - GL_CHECKPOINT(); + GL_CHECKPOINT(MODERATE); // ------------------------------------ // ---------- Actual drawing ---------- @@ -379,7 +379,7 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { glDrawArrays(mesh.primitiveMode, 0, mesh.elementCount); } - GL_CHECKPOINT(); + GL_CHECKPOINT(MODERATE); // ----------------------------------- // ---------- Mesh teardown ---------- @@ -391,7 +391,7 @@ void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { glDisableVertexAttribArray(colorLocation); } - GL_CHECKPOINT(); + GL_CHECKPOINT(MODERATE); } void RenderState::dump() { |