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

Unified Diff: src/core/SkOpts.cpp

Issue 2152583002: Remove bulk float <-> half routines. These are dead code. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
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
« no previous file with comments | « src/core/SkOpts.h ('k') | tests/Float16Test.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkOpts.cpp
diff --git a/src/core/SkOpts.cpp b/src/core/SkOpts.cpp
index be716a9bd38db6f0492995ea5e983d9d8cf01f45..bc9ec536ac41c279412649bb8d98e120422e495c 100644
--- a/src/core/SkOpts.cpp
+++ b/src/core/SkOpts.cpp
@@ -33,19 +33,6 @@
#include "SkTextureCompressor_opts.h"
#include "SkXfermode_opts.h"
-namespace SK_OPTS_NS {
- static void float_to_half(uint16_t dst[], const float src[], int n) {
- while (n-->0) {
- *dst++ = SkFloatToHalf(*src++);
- }
- }
- static void half_to_float(float dst[], const uint16_t src[], int n) {
- while (n-->0) {
- *dst++ = SkHalfToFloat(*src++);
- }
- }
-}
-
namespace SkOpts {
// Define default function pointer values here...
// If our global compile options are set high enough, these defaults might even be
@@ -83,9 +70,6 @@ namespace SkOpts {
DEFINE_DEFAULT(inverted_CMYK_to_RGB1);
DEFINE_DEFAULT(inverted_CMYK_to_BGR1);
- DEFINE_DEFAULT(half_to_float);
- DEFINE_DEFAULT(float_to_half);
-
DEFINE_DEFAULT(srcover_srgb_srgb);
DEFINE_DEFAULT(color_xform_RGB1_to_2dot2);
« no previous file with comments | « src/core/SkOpts.h ('k') | tests/Float16Test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698