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

Unified Diff: include/utils/SkDebugUtils.h

Issue 1585553002: remove SkDebugUtils.h -- unused (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 | « gyp/utils.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/utils/SkDebugUtils.h
diff --git a/include/utils/SkDebugUtils.h b/include/utils/SkDebugUtils.h
deleted file mode 100644
index 00ed41fecd122a4e317a004fcce87b84d41d2f75..0000000000000000000000000000000000000000
--- a/include/utils/SkDebugUtils.h
+++ /dev/null
@@ -1,94 +0,0 @@
-
-/*
- * Copyright 2013 Google, Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-#ifndef SkDebugUtils_DEFINED
-#define SkDebugUtils_DEFINED
-
-#include "SkTypes.h"
-
-// These functions dump 0, 1, and 2d arrays of data in a format that's
-// compatible with Mathematica for quick visualization
-
-
-template<class T>
-inline void SkDebugDumpMathematica( const T val ) {
- SkDEBUGFAIL("Need to specialize SkDebugDumpMathematica for your type, sorry.");
-}
-
-template<class T>
-inline void SkDebugDumpMathematica(const char *name, const T *array, int size) {
- SkDebugf("%s", name);
- SkDebugf(" = {");
- for (int i=0 ; i < size ; i++) {
- SkDebugDumpMathematica<T>(array[i]);
- if (i != size-1) SkDebugf(", ");
- }
- SkDebugf("};\n");
-}
-
-template<class T>
-inline void SkDebugDumpMathematica(const char *name, const T *array, int width, int height) {
- SkDebugf("%s", name);
- SkDebugf(" = {\n");
- for (int i=0 ; i < height ; i++) {
- SkDebugf(" {");
- for (int j = 0 ; j < width ; j++) {
- SkDebugDumpMathematica<T>(array[i*width + j]);
- if (j != width-1) {
- SkDebugf(", ");
- }
- }
- SkDebugf("}");
- if (i != height-1) {
- SkDebugf(", \n");
- }
- }
- SkDebugf("\n};\n");
-}
-
-template<class T>
-inline void SkDebugDumpMathematica( const char *name, const T val ) {
- SkDebugf("%s", name);
- SkDebugf(" = ");
- SkDebugDumpMathematica<T>(val);
- SkDebugf(";\n");
-}
-
-template<>
-inline void SkDebugDumpMathematica<uint8_t>( const uint8_t val ) {
- SkDebugf("%u", val);
-}
-
-template<>
-inline void SkDebugDumpMathematica<unsigned int>( const unsigned int val ) {
- SkDebugf("%u", val);
-}
-
-template<>
-inline void SkDebugDumpMathematica<int>( const int val ) {
- SkDebugf("%d", val);
-}
-
-template<>
-inline void SkDebugDumpMathematica<size_t>( const size_t val ) {
- SkDebugf("%u", val);
-}
-
-template<>
-inline void SkDebugDumpMathematica<const char *>( const char * val ) {
- SkDebugf("%s", val);
-}
-
-template<>
-inline void SkDebugDumpMathematica<float>( float val ) {
- SkDebugf("%f", val);
-}
-
-
-#endif
« no previous file with comments | « gyp/utils.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698