ui: Make compositor unittests access the canvas through PaintRecorder.
commitc73232294c5510e8f05e61b48708b7c2f48faae3
authordanakj <danakj@chromium.org>
Tue, 7 Apr 2015 21:09:38 +0000 (7 14:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Apr 2015 21:10:59 +0000 (7 21:10 +0000)
treecc5b3ccace71b8a7eea45b463e14eca411d86f8e
parentad0863803901e6c477f976de0e6218b154fee6d5
ui: Make compositor unittests access the canvas through PaintRecorder.

Don't access the canvas() through the PaintContext, to allow the
PaintContext to be backed by a DisplayItemList instead of a Canvas in
the future.

R=piman@chromium.org, sadrul
BUG=466426

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

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