Fix state restoration logic in canvas 2d wakeup from hibernation
This fixes an important detail that was overlooked in
https://codereview.chromium.org/1507863005/: After a Canvas2DLayerBridge
wakes up from hibernation, if deferred rendering is disabled, the
matrix+clip stack must be reconstructed on the new SkCanas. Same
thing when a hibernating canvas switches to software rendering mode for
rendering in the background.
BUG=567161
Review URL: https://codereview.chromium.org/1520123002
Cr-Commit-Position: refs/heads/master@{#365093}
4 files changed