aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRecords.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-08-22 11:44:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-22 11:44:26 -0700
commit5f0e82204ecca0805a7689cdba5f802458e103f4 (patch)
tree2343461173da35e4df8ec89d362e870b513bc8b7 /src/core/SkRecords.h
parent3e42a4638559d71481ba598857f2d0c715c8d4b3 (diff)
Support comment groups in SkRecord.
This should fix the failing paint-command-log-nodes.html layout test. BUG=406425 R=tomhudson@chromium.org Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/501533003
Diffstat (limited to 'src/core/SkRecords.h')
-rw-r--r--src/core/SkRecords.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/SkRecords.h b/src/core/SkRecords.h
index f3d96d4aa9..f216897dca 100644
--- a/src/core/SkRecords.h
+++ b/src/core/SkRecords.h
@@ -37,6 +37,9 @@ namespace SkRecords {
M(ClipRect) \
M(ClipRegion) \
M(Clear) \
+ M(BeginCommentGroup) \
+ M(AddComment) \
+ M(EndCommentGroup) \
M(DrawBitmap) \
M(DrawBitmapMatrix) \
M(DrawBitmapNine) \
@@ -211,6 +214,11 @@ RECORD4(ClipRect, SkIRect, devBounds, SkRect, rect, SkRegion::Op, op, bool
RECORD3(ClipRegion, SkIRect, devBounds, SkRegion, region, SkRegion::Op, op);
RECORD1(Clear, SkColor, color);
+
+RECORD1(BeginCommentGroup, PODArray<char>, description);
+RECORD2(AddComment, PODArray<char>, key, PODArray<char>, value);
+RECORD0(EndCommentGroup);
+
// While not strictly required, if you have an SkPaint, it's fastest to put it first.
RECORD4(DrawBitmap, Optional<SkPaint>, paint,
ImmutableBitmap, bitmap,