Index: src/core/SkBlitter.h |
diff --git a/src/core/SkBlitter.h b/src/core/SkBlitter.h |
index 2d4a0defbf8e77cebd9e770c473ba1aaacbfc0c2..649093770123448b5e85942d7ff850bb9c2101ff 100644 |
--- a/src/core/SkBlitter.h |
+++ b/src/core/SkBlitter.h |
@@ -18,6 +18,12 @@ |
#include "SkShader.h" |
#include "SkSmallAllocator.h" |
+#ifdef SK_SUPPORT_LEGACY_BLITANTIH2V2 |
+ #define SK_BLITANTIH2V2_VIRTUAL |
+#else |
+ #define SK_BLITANTIH2V2_VIRTUAL virtual |
+#endif |
+ |
/** SkBlitter and its subclasses are responsible for actually writing pixels |
into memory. Besides efficiency, they handle clipping and antialiasing. |
*/ |
@@ -54,7 +60,7 @@ public: |
virtual const SkBitmap* justAnOpaqueColor(uint32_t* value); |
// (x, y), (x + 1, y) |
- void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) { |
+ SK_BLITANTIH2V2_VIRTUAL void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) { |
int16_t runs[3]; |
uint8_t aa[2]; |
@@ -67,7 +73,7 @@ public: |
} |
// (x, y), (x, y + 1) |
- void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) { |
+ SK_BLITANTIH2V2_VIRTUAL void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) { |
int16_t runs[2]; |
uint8_t aa[1]; |