aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-02 19:57:10 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-02 19:57:10 +0000
commit11f20d6270beb6134b28ec06325bd3008f1204be (patch)
tree42dfaddda30f68fd86150372ed41cd99434e3c15 /include/gpu
parent10a9fb86a9cd11f7fd590410e2aa0906587555e6 (diff)
Remove GrInstanceCounter.
R=reed@google.com Review URL: https://codereview.appspot.com/6849125 git-svn-id: http://skia.googlecode.com/svn/trunk@6972 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrInstanceCounter.h40
-rw-r--r--include/gpu/GrTypes.h3
2 files changed, 0 insertions, 43 deletions
diff --git a/include/gpu/GrInstanceCounter.h b/include/gpu/GrInstanceCounter.h
deleted file mode 100644
index b3e21d22d4..0000000000
--- a/include/gpu/GrInstanceCounter.h
+++ /dev/null
@@ -1,40 +0,0 @@
-
-/*
- * Copyright 2010 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-
-#ifndef GrInstanceCounter_DEFINED
-#define GrInstanceCounter_DEFINED
-
-#include "GrTypes.h"
-
-template <typename T> class GrInstanceCounter {
-public:
- GrInstanceCounter() {
- ++gCounter;
- GrPrintf("+ %s %d\n", T::InstanceCounterClassName(), gCounter);
- }
-
- ~GrInstanceCounter() {
- --gCounter;
- GrPrintf("- %s %d\n", T::InstanceCounterClassName(), gCounter);
- }
-
-private:
- static int gCounter;
-};
-
-template <typename T> int GrInstanceCounter<T>::gCounter;
-
-#define DECLARE_INSTANCE_COUNTER(T) \
- static const char* InstanceCounterClassName() { return #T; } \
- friend class GrInstanceCounter<T>; \
- GrInstanceCounter<T> fInstanceCounter
-
-#endif
-
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index 0c7b4585d2..d7241b499c 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -664,7 +664,4 @@ typedef GrBackendRenderTargetDesc GrPlatformRenderTargetDesc;
///////////////////////////////////////////////////////////////////////////////
-// this is included only to make it easy to use this debugging facility
-#include "GrInstanceCounter.h"
-
#endif