ui: Instantiate a single SkPictureRecorder per PaintContext
commit213fa687d89c30cd2b1e14f0c47417f02de880e6
authordanakj <danakj@chromium.org>
Tue, 14 Apr 2015 21:37:12 +0000 (14 14:37 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Apr 2015 21:38:08 +0000 (14 21:38 +0000)
treee473a13079dfa05df246af176373a6bd5692209c
parentfae24d7194f945f1bc814f268cc5def3204b114c
ui: Instantiate a single SkPictureRecorder per PaintContext

Instead of making a new SkPictureRecorder for each painting block,
make one in the PaintContext and reuse it across PaintRecorders.

This was found to be a hot point in the blink slimming paint
implementation and a similar CL was done there as
https://codereview.chromium.org/1087633002/.

R=piman@chromium.org
BUG=466426

Review URL: https://codereview.chromium.org/1088843003

Cr-Commit-Position: refs/heads/master@{#325128}
ui/compositor/paint_context.cc
ui/compositor/paint_context.h
ui/compositor/paint_recorder.cc
ui/compositor/paint_recorder.h