aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRecordDraw.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@chromium.org>2014-11-12 06:46:08 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-12 06:46:08 -0800
commit4e8e3421aa919a82eb1dd287fecbd079f5a320b4 (patch)
treeeb1a93b4b6bd62299b0092d53f8771a31f5a625a /src/core/SkRecordDraw.h
parentb103d0c64ae837ac1b6006b952e29347d8377490 (diff)
Move SkRecordComputeLayers and CollectLayers into SkRecordDraw.cpp
Rather then exposing parts of FillBounds (as in Expose FillBounds to allow GrPictureUtils::CollectLayers to be layered on top of it - https://codereview.chromium.org/698643002/), this CL moves CollectLayers into SkRecordDraw.cpp to accomplish the layering. Review URL: https://codereview.chromium.org/716913003
Diffstat (limited to 'src/core/SkRecordDraw.h')
-rw-r--r--src/core/SkRecordDraw.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/SkRecordDraw.h b/src/core/SkRecordDraw.h
index f3f00881ea..8df64cbecd 100644
--- a/src/core/SkRecordDraw.h
+++ b/src/core/SkRecordDraw.h
@@ -17,6 +17,13 @@
// Fill a BBH to be used by SkRecordDraw to accelerate playback.
void SkRecordFillBounds(const SkRect& cullRect, const SkRecord&, SkBBoxHierarchy*);
+#if SK_SUPPORT_GPU
+class GrAccelData;
+
+void SkRecordComputeLayers(const SkRect& cullRect, const SkRecord& record,
+ SkBBoxHierarchy* bbh, GrAccelData* data);
+#endif
+
// Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::Draw.
void SkRecordDraw(const SkRecord&, SkCanvas*, const SkBBoxHierarchy*, SkDrawPictureCallback*);