diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-24 14:03:01 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-24 14:03:01 +0000 |
commit | 0255a5d2fe37f5b5b4e7c4cdb2ec3ab18a53deaf (patch) | |
tree | d390b74055024e76ad04d25d6ce7e1bb98aa95fd /src | |
parent | ccecbbb2eaef1042c860cf56427e8d237a95c312 (diff) |
Minor changes
https://codereview.chromium.org/39973004/
git-svn-id: http://skia.googlecode.com/svn/trunk@11940 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/effects/SkBitmapAlphaThresholdShader.cpp | 4 | ||||
-rw-r--r-- | src/gpu/GrTexture.cpp | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/effects/SkBitmapAlphaThresholdShader.cpp b/src/effects/SkBitmapAlphaThresholdShader.cpp index 7fb09fdbc3..1b54425548 100644 --- a/src/effects/SkBitmapAlphaThresholdShader.cpp +++ b/src/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 @@ private: typedef SkShader INHERITED; }; +SK_DEFINE_INST_COUNT(BATShader) + SkShader* SkBitmapAlphaThresholdShader::Create(const SkBitmap& bitmap, const SkRegion& region, U8CPU threshold) { diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp index 5a3e6aa22f..b5a0195df2 100644 --- a/src/gpu/GrTexture.cpp +++ b/src/gpu/GrTexture.cpp @@ -42,6 +42,7 @@ void GrTexture::internal_dispose() const { return; } + SkASSERT(0 == this->getDeferredRefCount()); this->INHERITED::internal_dispose(); } |