Fix two SkRecord-backed layer hoisting bugs
authorrobertphillips <robertphillips@google.com>
Mon, 8 Sep 2014 16:53:58 +0000 (09:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 8 Sep 2014 16:53:58 +0000 (09:53 -0700)
commit7c0cfd4ff8f6db50a8731c886db732b106268937
tree0220bf2943e57b16c15c50e2a2f1327c7bab9d81
parent23c94f05cad79f6f8d303c1b4ffb6d0b91671e83
Fix two SkRecord-backed layer hoisting bugs

The two bugs are/were:
The old loop to draw the hoisted layers included the saveLayer call which caused double application of the layer's paint (This is the +1 change).

The hoisted layer is intended to be drawn in device coordinates. The old code was drawing it in the coordinate space of the saveLayer thus it was misplaced (This is the setMatrix change).

R=bsalomon@google.com

Author: robertphillips@google.com

Review URL: https://codereview.chromium.org/551843002
src/gpu/GrLayerHoister.cpp
src/gpu/GrRecordReplaceDraw.cpp