Enable basic drawing with SkRecord-based pictures.
authorMike Klein <mtklein@google.com>
Mon, 23 Jun 2014 19:13:26 +0000 (15:13 -0400)
committerMike Klein <mtklein@google.com>
Mon, 23 Jun 2014 19:13:26 +0000 (15:13 -0400)
commit744fb7313f31069e9eceeca4c0ff33dbe2fe1737
tree03301f1ecae486d27fc9c6a6de58a042d47f8c3f
parent5fb6bd4b7e8d00b7f2543ca10ec9022b32632f29
Enable basic drawing with SkRecord-based pictures.

I've tagged all the functions in SkPicture.cpp is // fRecord TODO or // fRecord
OK, depending on whether or not they're totally broken when used from an
SkRecord-based picture.  Obviously next steps are to eliminate all the TODOs,
then clean up the notes.

I converted SkPicture over to smart pointers too.  It's particularly helpful
that the smart pointers initialize to NULL by default.

For now I've got all the SkRecord-based code jammed in at the bottom of the file.  I figure it'll help me keep things straight for a bit, then we can rearrange later.

BUG=skia:
R=robertphillips@google.com

Review URL: https://codereview.chromium.org/333823007
debugger/QT/SkDebuggerGUI.cpp
include/core/SkPicture.h
src/core/SkPicture.cpp
src/core/SkPictureRecorder.cpp
src/gpu/GrPictureUtils.cpp
src/gpu/SkGpuDevice.cpp
tools/bench_playback.cpp