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

Unified Diff: src/core/SkNx.h

Issue 2184543003: Perform color correction on png decodes (Closed) Base URL: https://skia.googlesource.com/skia.git@colorjpegs
Patch Set: Created 4 years, 5 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: src/core/SkNx.h
diff --git a/src/core/SkNx.h b/src/core/SkNx.h
index 253fcf22fea111b8eca4f689145121f51040312e..1868b2486832d1ff9525561d076b71c36bfae18e 100644
--- a/src/core/SkNx.h
+++ b/src/core/SkNx.h
@@ -166,6 +166,8 @@ struct SkNx<1,T> {
SkNx thenElse(const SkNx& t, const SkNx& e) const { return fVal != 0 ? t : e; }
+ SkNx logicalShiftRight(int bits) const { return ((unsigned) fVal) >> bits; }
+
private:
// Helper functions to choose the right float/double methods. (In <cmath> madness lies...)
static float Abs(float val) { return ::fabsf(val); }
« no previous file with comments | « src/core/SkColorSpaceXform.cpp ('k') | src/core/SkOpts.h » ('j') | src/opts/SkOpts_sse41.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698