Loading libs/hwui/OpenGLRenderer.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -455,8 +455,7 @@ bool OpenGLRenderer::createLayer(sp<Snapshot> snapshot, float left, float top, #endif // Clear the FBO bounds.snapToPixelBoundaries(); glScissor(0.0f, 0.0f, bounds.getWidth(), bounds.getHeight()); glScissor(0.0f, 0.0f, bounds.getWidth() + 1.0f, bounds.getHeight() + 1.0f); glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glClear(GL_COLOR_BUFFER_BIT); Loading libs/hwui/Rect.h +4 −4 Original line number Diff line number Diff line Loading @@ -149,10 +149,10 @@ struct Rect { } void snapToPixelBoundaries() { left = floor(left); top = floor(top); right = ceil(right); bottom = ceil(bottom); left = floorf(left); top = floorf(top); right = ceilf(right); bottom = ceilf(bottom); } void dump() const { Loading Loading
libs/hwui/OpenGLRenderer.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -455,8 +455,7 @@ bool OpenGLRenderer::createLayer(sp<Snapshot> snapshot, float left, float top, #endif // Clear the FBO bounds.snapToPixelBoundaries(); glScissor(0.0f, 0.0f, bounds.getWidth(), bounds.getHeight()); glScissor(0.0f, 0.0f, bounds.getWidth() + 1.0f, bounds.getHeight() + 1.0f); glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glClear(GL_COLOR_BUFFER_BIT); Loading
libs/hwui/Rect.h +4 −4 Original line number Diff line number Diff line Loading @@ -149,10 +149,10 @@ struct Rect { } void snapToPixelBoundaries() { left = floor(left); top = floor(top); right = ceil(right); bottom = ceil(bottom); left = floorf(left); top = floorf(top); right = ceilf(right); bottom = ceilf(bottom); } void dump() const { Loading