Merge "Fix translated VertexBuffer layer damage calculation" into lmp-dev

This commit is contained in:
Chris Craik
2014-07-15 20:09:54 +00:00
committed by Android (Google) Code Review

View File

@@ -2351,7 +2351,8 @@ status_t OpenGLRenderer::drawVertexBuffer(float translateX, float translateY,
return DrawGlInfo::kStatusDone;
}
const Rect& bounds = vertexBuffer.getBounds();
Rect bounds(vertexBuffer.getBounds());
bounds.translate(translateX, translateY);
dirtyLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, *currentTransform());
int color = paint->getColor();