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

Unified Diff: src/core/SkBlitter.cpp

Issue 2388213003: Revert of Analytic AntiAlias for Convex Shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 2 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 | « src/core/SkAnalyticEdge.cpp ('k') | src/core/SkEdge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBlitter.cpp
diff --git a/src/core/SkBlitter.cpp b/src/core/SkBlitter.cpp
index b57bd43ad0a4ebe7bd123a03f4afadda235e7f3e..db9fcda93b19fc3b364859b0727de89e3b55888e 100644
--- a/src/core/SkBlitter.cpp
+++ b/src/core/SkBlitter.cpp
@@ -71,22 +71,17 @@
}
}
-/// Default implementation doesn't check for easy optimizations
-/// such as alpha == 255; also uses blitV(), which some subclasses
+/// Default implementation doesn't check for any easy optimizations
+/// such as alpha == 0 or 255; also uses blitV(), which some subclasses
/// may not support.
void SkBlitter::blitAntiRect(int x, int y, int width, int height,
SkAlpha leftAlpha, SkAlpha rightAlpha) {
- if (leftAlpha > 0) { // we may send in x = -1 with leftAlpha = 0
- this->blitV(x, y, height, leftAlpha);
- }
- x++;
+ this->blitV(x++, y, height, leftAlpha);
if (width > 0) {
this->blitRect(x, y, width, height);
x += width;
}
- if (rightAlpha > 0) {
- this->blitV(x, y, height, rightAlpha);
- }
+ this->blitV(x, y, height, rightAlpha);
}
//////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « src/core/SkAnalyticEdge.cpp ('k') | src/core/SkEdge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698