aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkUtils.cpp
diff options
context:
space:
mode:
authorGravatar tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-26 21:48:58 +0000
committerGravatar tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-26 21:48:58 +0000
commit48552314f6d101f3fd094d5f2fd6f70fe9aad841 (patch)
tree3f1900ce9e4801313b481d0a5420ef5d07ed92e0 /src/core/SkUtils.cpp
parent4f65a2750007725349774e53067df3307376257c (diff)
Fix a few clang errors while trying to build tools target.
Most of the errors were like: ../../src/gpu/gl/GrGLEffectMatrix.cpp:74:9: error: variable 'varyingType' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized] ../../src/gpu/gl/debug/GrDebugGL.h:125:21: error: private field 'fMaxTextureUnits' is not used [-Werror,-Wunused-private-field] ../../src/core/SkBitmapSampler.cpp:312:25: error: private field 'fProcTable' is not used [-Werror,-Wunused-private-field] R=bsalomon@google.com,scroggo@google.com Review URL: https://codereview.chromium.org/12915007 git-svn-id: http://skia.googlecode.com/svn/trunk@8403 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkUtils.cpp')
-rw-r--r--src/core/SkUtils.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/core/SkUtils.cpp b/src/core/SkUtils.cpp
index 1af64c2aea..e460ac8f6e 100644
--- a/src/core/SkUtils.cpp
+++ b/src/core/SkUtils.cpp
@@ -395,36 +395,3 @@ size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues,
}
return size;
}
-
-///////////////////////////////////////////////////////////////////////////////
-
-#include <stdlib.h>
-
-#if 0
-static int round_to_K(size_t bytes) {
- return (bytes + 512) >> 10;
-}
-#endif
-
-SkAutoMemoryUsageProbe::SkAutoMemoryUsageProbe(const char label[])
- : fLabel(label) {
-#if 0
- struct mallinfo mi = mallinfo();
-
- fBytesAllocated = mi.uordblks;
-#endif
-}
-
-SkAutoMemoryUsageProbe::~SkAutoMemoryUsageProbe() {
-#if 0
- struct mallinfo mi = mallinfo();
-
- printf("SkAutoMemoryUsageProbe ");
- if (fLabel) {
- printf("<%s> ", fLabel);
- }
- printf("delta %dK, current total allocated %dK\n",
- round_to_K(mi.uordblks - fBytesAllocated),
- round_to_K(mi.uordblks));
-#endif
-}