diff options
author | mtklein <mtklein@chromium.org> | 2014-08-11 08:08:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-11 08:08:43 -0700 |
commit | 5ad6ee1b2ce54f8e59b9f5a337c688a98a4b0f2a (patch) | |
tree | f1198834aac166b6c3d9f79e056e0f2364c65d7e /src/core/SkRecordDraw.h | |
parent | 136aa8fb7e8e00e0a7eed0c721fab070949222ad (diff) |
Plumbing for using a BBH in SkRecordDraw.
For now this only creates a degenerate bounding box hierarchy where all ops
just have maximal bounds. I will flesh out FillBounds in future CL(s).
Not quite sure why QuadTree and TileGrid aren't drawing right---haven't even
looked at the diffs yet---so I've disabled those test modes for now. RTree
seems fine, so that'll at least get us coverage for all this new plumbing.
BUG=skia:
R=robertphillips@google.com, mtklein@google.com, reed@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/454123003
Diffstat (limited to 'src/core/SkRecordDraw.h')
-rw-r--r-- | src/core/SkRecordDraw.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/SkRecordDraw.h b/src/core/SkRecordDraw.h index a9557f45ea..8da7fb5e4a 100644 --- a/src/core/SkRecordDraw.h +++ b/src/core/SkRecordDraw.h @@ -8,12 +8,16 @@ #ifndef SkRecordDraw_DEFINED #define SkRecordDraw_DEFINED -#include "SkRecord.h" +#include "SkBBoxHierarchy.h" #include "SkCanvas.h" #include "SkDrawPictureCallback.h" +#include "SkRecord.h" + +// Fill a BBH to be used by SkRecordDraw to accelerate playback. +void SkRecordFillBounds(const SkRecord&, SkBBoxHierarchy*); // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::Draw. -void SkRecordDraw(const SkRecord&, SkCanvas*, SkDrawPictureCallback* = NULL); +void SkRecordDraw(const SkRecord&, SkCanvas*, const SkBBoxHierarchy*, SkDrawPictureCallback*); namespace SkRecords { |