aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPM4fPriv.h
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2018-06-04 15:36:52 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-04 19:57:19 +0000
commit158915496f36ebc0bee8e6cae41ed28ba5086acb (patch)
tree0d554df0de615d097d73113c7c3695bea0b4af55 /src/core/SkPM4fPriv.h
parent69d0e51d74d8a0e38626c1973655214cabda62d9 (diff)
rm dead code
Change-Id: Ie3e693e07f748fc46cdd9f1d4fe4af530882e915 Reviewed-on: https://skia-review.googlesource.com/131920 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core/SkPM4fPriv.h')
-rw-r--r--src/core/SkPM4fPriv.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/core/SkPM4fPriv.h b/src/core/SkPM4fPriv.h
index b6c2a4b1c6..df88d2a4c9 100644
--- a/src/core/SkPM4fPriv.h
+++ b/src/core/SkPM4fPriv.h
@@ -16,15 +16,6 @@
#include "SkSRGB.h"
#include "../jumper/SkJumper.h"
-static inline Sk4f set_alpha(const Sk4f& px, float alpha) {
- return { px[0], px[1], px[2], alpha };
-}
-
-static inline float get_alpha(const Sk4f& px) {
- return px[3];
-}
-
-
static inline Sk4f Sk4f_fromL32(uint32_t px) {
return SkNx_cast<float>(Sk4b::Load(&px)) * (1/255.0f);
}
@@ -51,31 +42,6 @@ static inline uint32_t Sk4f_toS32(const Sk4f& px) {
return s32;
}
-
-// SkColor handling:
-// SkColor has an ordering of (b, g, r, a) if cast to an Sk4f, so the code swizzles r and b to
-// produce the needed (r, g, b, a) ordering.
-static inline Sk4f Sk4f_from_SkColor(SkColor color) {
- return swizzle_rb(Sk4f_fromS32(color));
-}
-
-static inline void assert_unit(float x) {
- SkASSERT(0 <= x && x <= 1);
-}
-
-static inline float exact_srgb_to_linear(float srgb) {
- assert_unit(srgb);
- float linear;
- if (srgb <= 0.04045) {
- linear = srgb / 12.92f;
- } else {
- linear = powf((srgb + 0.055f) / 1.055f, 2.4f);
- }
- assert_unit(linear);
- return linear;
-}
-
-// N.B. scratch_matrix_3x4 must live at least as long as p.
static inline void append_gamut_transform(SkRasterPipeline* p,
SkArenaAlloc* alloc,
SkColorSpace* src,