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

Unified Diff: src/core/SkBlitter.h

Issue 1085013003: Revert of add new blit2 methods in support of antialiased hairlines guard flag SK_SUPPORT_LEGACY_BLITANTIH2V2 (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 51d60a45761904191979411c88e8b70ecfc57971..9447bf1b51c4b8f241668ece4b615c8731bac3b4 100644
--- a/src/core/SkBlitter.h
+++ b/src/core/SkBlitter.h
@@ -1,3 +1,4 @@
+
/*
* Copyright 2006 The Android Open Source Project
*
@@ -5,14 +6,9 @@
* found in the LICENSE file.
*/
+
#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"
@@ -59,35 +55,6 @@
*/
virtual const SkBitmap* justAnOpaqueColor(uint32_t* value);
- // (x, y), (x + 1, y)
- SK_BLITANTIH2V2_VIRTUAL void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) {
- int16_t runs[3];
- uint8_t aa[2];
-
- runs[0] = 1;
- runs[1] = 1;
- runs[2] = 0;
- aa[0] = SkToU8(a0);
- aa[1] = SkToU8(a1);
- this->blitAntiH(x, y, aa, runs);
- }
-
- // (x, y), (x, y + 1)
- SK_BLITANTIH2V2_VIRTUAL void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) {
- int16_t runs[2];
- uint8_t aa[1];
-
- runs[0] = 1;
- runs[1] = 0;
- aa[0] = SkToU8(a0);
- this->blitAntiH(x, y, aa, runs);
- // reset in case the clipping blitter modified runs
- runs[0] = 1;
- runs[1] = 0;
- aa[0] = SkToU8(a1);
- this->blitAntiH(x, y + 1, aa, runs);
- }
-
/**
* Special method just to identify the null blitter, which is returned
* from Choose() if the request cannot be fulfilled. Default impl
« 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