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

Unified Diff: include/core/SkColor.h

Issue 1713653002: make SkPM4f private (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more files 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
« no previous file with comments | « gm/xferu64.cpp ('k') | include/core/SkXfermode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkColor.h
diff --git a/include/core/SkColor.h b/include/core/SkColor.h
index 101a9bdbed0a4d6a89838cd902d3780a36383ada..a40e5f1f1588eddbe37bad16f5705acb496f7c13 100644
--- a/include/core/SkColor.h
+++ b/include/core/SkColor.h
@@ -160,39 +160,7 @@ typedef SkPMColor (*SkXfermodeProc)(SkPMColor src, SkPMColor dst);
///////////////////////////////////////////////////////////////////////////////////////////////////
-struct SkColor4f;
-
-/*
- * The float values are 0...1 premultiplied
- */
-struct SkPM4f {
- enum {
- A = SK_A32_SHIFT/8,
- R = SK_R32_SHIFT/8,
- G = SK_G32_SHIFT/8,
- B = SK_B32_SHIFT/8,
- };
- float fVec[4];
-
- float a() const { return fVec[A]; }
-
- SkColor4f unpremul() const;
-
- static SkPM4f FromPMColor(SkPMColor);
-
- // half-float routines
- void toF16(uint16_t[4]) const;
- uint64_t toF16() const; // 4 float16 values packed into uint64_t
- static SkPM4f FromF16(const uint16_t[4]);
-
-#ifdef SK_DEBUG
- void assertIsUnit() const;
-#else
- void assertIsUnit() const {}
-#endif
-};
-
-typedef SkPM4f (*SkXfermodeProc4f)(const SkPM4f& src, const SkPM4f& dst);
+struct SkPM4f;
/*
* The float values are 0...1 unpremultiplied
« no previous file with comments | « gm/xferu64.cpp ('k') | include/core/SkXfermode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698