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

Unified Diff: src/core/SkBlitter.h

Issue 1084283003: Speeup hairline curves (quads and cubics) (patchset #7 id:120001 of https://codereview.chromium.org… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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/core/SkBlitter_ARGB32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « no previous file | src/core/SkBlitter_ARGB32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698