Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: src/record/SkRecords.h

Issue 224723026: Add push/pop cull to SkRecord. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/record/SkRecorder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/record/SkRecords.h
diff --git a/src/record/SkRecords.h b/src/record/SkRecords.h
index 67cfb20c4ca4005029d0b3ac02a18b0fc0638e76..17a8e849ad5c4ceafa81dd913de7491cbe8b13d4 100644
--- a/src/record/SkRecords.h
+++ b/src/record/SkRecords.h
@@ -39,7 +39,9 @@ namespace SkRecords {
M(DrawSprite) \
M(DrawText) \
M(DrawTextOnPath) \
- M(DrawVertices)
+ M(DrawVertices) \
+ M(PushCull) \
+ M(PopCull)
// Defines SkRecords::Type, an enum of all record types.
#define ENUM(T) T##_Type,
@@ -125,6 +127,9 @@ RECORD0(Restore);
RECORD1(Save, SkCanvas::SaveFlags, flags);
RECORD3(SaveLayer, SkRect*, bounds, SkPaint*, paint, SkCanvas::SaveFlags, flags);
+RECORD1(PushCull, SkRect, rect);
+RECORD0(PopCull);
+
RECORD1(Concat, SkMatrix, matrix);
RECORD1(SetMatrix, SkMatrix, matrix);
« no previous file with comments | « src/record/SkRecorder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698