aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2015-04-15 17:34:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-15 17:34:27 -0700
commit33afdaa5213cf118b3ca290bb343253c8593756d (patch)
treedf0669f369431061e77c2c91e6dd49bc35fa47ea
parent639a82855b94b93c4fa45560e67df8ec4a8bbb3a (diff)
make blitAntiH2 virtual, to prep for larger change
testing... BUG=skia: TBR= Review URL: https://codereview.chromium.org/1048323005
-rw-r--r--src/core/SkBlitter.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/SkBlitter.h b/src/core/SkBlitter.h
index 2d4a0defbf..8d9f7bcbed 100644
--- a/src/core/SkBlitter.h
+++ b/src/core/SkBlitter.h
@@ -8,6 +8,12 @@
#ifndef SkBlitter_DEFINED
#define SkBlitter_DEFINED
+#ifdef SK_SUPPORT_LEGACY_BLITANTIH2V2
+ #define SK_BLITANTIH2V2_VIRTUAL
+#else
+ #define SK_BLITANTIH2V2_VIRTUAL virtual
+#endif
+
#include "SkBitmap.h"
#include "SkBitmapProcShader.h"
#include "SkMask.h"
@@ -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];