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

Unified Diff: src/record/SkRecordOpts.cpp

Issue 247573003: Fix build: Windows has dibs on IGNORE (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 | « no previous file | src/record/SkRecords.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/record/SkRecordOpts.cpp
diff --git a/src/record/SkRecordOpts.cpp b/src/record/SkRecordOpts.cpp
index 1b23acde5816c3e228d578974082fd3707da12ea..3cf135fb7eeedffbc7510a70b54e1c17491f7a5a 100644
--- a/src/record/SkRecordOpts.cpp
+++ b/src/record/SkRecordOpts.cpp
@@ -58,18 +58,18 @@ private:
// If the command doesn't draw anything, that doesn't reset the state back to inactive.
// TODO(mtklein): do this with some sort of template-based trait mechanism instead of macros
-#define IGNORE(T) template <> void SaveRestoreNooper::operator()(SkRecords::T*) {}
-IGNORE(NoOp)
-IGNORE(Concat)
-IGNORE(SetMatrix)
-IGNORE(ClipRect)
-IGNORE(ClipRRect)
-IGNORE(ClipPath)
-IGNORE(ClipRegion)
-IGNORE(PairedPushCull)
-IGNORE(PushCull)
-IGNORE(PopCull)
-#undef CLIP
+#define DOESNT_DRAW(T) template <> void SaveRestoreNooper::operator()(SkRecords::T*) {}
+DOESNT_DRAW(NoOp)
+DOESNT_DRAW(Concat)
+DOESNT_DRAW(SetMatrix)
+DOESNT_DRAW(ClipRect)
+DOESNT_DRAW(ClipRRect)
+DOESNT_DRAW(ClipPath)
+DOESNT_DRAW(ClipRegion)
+DOESNT_DRAW(PairedPushCull)
+DOESNT_DRAW(PushCull)
+DOESNT_DRAW(PopCull)
+#undef DOESNT_DRAW
template <>
void SaveRestoreNooper::operator()(SkRecords::Save* r) {
« no previous file with comments | « no previous file | src/record/SkRecords.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698