Minor changes

https://codereview.chromium.org/39973004/



git-svn-id: http://skia.googlecode.com/svn/trunk/src@11940 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/effects/SkBitmapAlphaThresholdShader.cpp b/effects/SkBitmapAlphaThresholdShader.cpp
index 7fb09fd..1b54425 100644
--- a/effects/SkBitmapAlphaThresholdShader.cpp
+++ b/effects/SkBitmapAlphaThresholdShader.cpp
@@ -9,7 +9,7 @@
 
 class BATShader : public SkShader {
 public:
-    SK_DECLARE_INST_COUNT(SkThresholdShader);
+    SK_DECLARE_INST_COUNT(BATShader);
 
     BATShader(const SkBitmap& bitmap, SkRegion region, U8CPU);
     BATShader(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {
@@ -34,6 +34,8 @@
     typedef SkShader INHERITED;
 };
 
+SK_DEFINE_INST_COUNT(BATShader)
+
 SkShader* SkBitmapAlphaThresholdShader::Create(const SkBitmap& bitmap,
                                                const SkRegion& region,
                                                U8CPU threshold) {
diff --git a/gpu/GrTexture.cpp b/gpu/GrTexture.cpp
index 5a3e6aa..b5a0195 100644
--- a/gpu/GrTexture.cpp
+++ b/gpu/GrTexture.cpp
@@ -42,6 +42,7 @@
         return;
     }
 
+    SkASSERT(0 == this->getDeferredRefCount());
     this->INHERITED::internal_dispose();
 }