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

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: Make alpha computation cleaner and faster 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
« no previous file with comments | « gyp/core.gypi ('k') | samplecode/SampleApp.cpp » ('j') | src/core/SkAntiRun.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
+ 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') | src/core/SkAntiRun.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698