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

Unified Diff: include/private/SkFixed.h

Issue 2221103002: Analytic AntiAlias for Convex Shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix alpha computation Created 4 years, 4 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
Index: include/private/SkFixed.h
diff --git a/include/private/SkFixed.h b/include/private/SkFixed.h
index be3bb5d6045d9b24fd98096295b3385be409d5d3..083d02394176e92647189be4c1d4f2efbcb9bdd9 100644
--- a/include/private/SkFixed.h
+++ b/include/private/SkFixed.h
@@ -88,6 +88,10 @@ inline SkFixed SkFixedMul_longlong(SkFixed a, SkFixed b) {
}
#define SkFixedMul(a,b) SkFixedMul_longlong(a,b)
+inline SkFixed SkFixedMul_lowprec(SkFixed a, SkFixed b) {
reed1 2016/08/18 20:31:00 is this referenced from several files? wondering i
liyuqian 2016/08/22 15:30:48 It's used in SkEdge.h, SkEdge.cpp (SkAnalyticEdge.
+ return (a >> 8) * (b >> 8);
+}
+
#if defined(SK_CPU_ARM32)
/* This guy does not handle NaN or other obscurities, but is faster than
« no previous file with comments | « gyp/core.gypi ('k') | samplecode/SampleApp.cpp » ('j') | samplecode/SampleApp.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698