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

Unified Diff: include/core/SkColor.h

Issue 1664663003: extend compose-colorfilter to 4f (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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/core/SkColor.h
diff --git a/include/core/SkColor.h b/include/core/SkColor.h
index 461a53877dd799db9d989f98da9be8d767d85010..90453f548cd02f8f5568dcedba033c5ab0671be5 100644
--- a/include/core/SkColor.h
+++ b/include/core/SkColor.h
@@ -160,6 +160,8 @@ typedef SkPMColor (*SkXfermodeProc)(SkPMColor src, SkPMColor dst);
///////////////////////////////////////////////////////////////////////////////////////////////////
+struct SkColor4f;
+
/*
* The float values are 0...1 premultiplied
*/
@@ -174,6 +176,8 @@ struct SkPM4f {
float a() const { return fVec[A]; }
+ SkColor4f unpremul() const;
+
static SkPM4f FromPMColor(SkPMColor);
#ifdef SK_DEBUG
« no previous file with comments | « gm/color4f.cpp ('k') | include/core/SkColorFilter.h » ('j') | src/core/SkColorFilter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698