diff options
author | scroggo <scroggo@google.com> | 2015-01-30 07:34:48 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-30 07:34:48 -0800 |
commit | 1872ad0fe97d8e90446ee619b273de87e9b8c1fa (patch) | |
tree | b70f6d25cb461c2bdc017919144f5dd4f4e3bfa0 | |
parent | fc37ad168090637973bf21452aa2685cfcbb273c (diff) |
Remove unused globalRef/globalUnref.
BUG=skia:1482
Review URL: https://codereview.chromium.org/887993003
-rw-r--r-- | include/core/SkPixelRef.h | 16 | ||||
-rw-r--r-- | src/core/SkPixelRef.cpp | 11 |
2 files changed, 0 insertions, 27 deletions
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h index 109d3c911e..567e7fbf94 100644 --- a/include/core/SkPixelRef.h +++ b/include/core/SkPixelRef.h @@ -264,22 +264,6 @@ public: return NULL; } -#ifdef SK_BUILD_FOR_ANDROID - /** - * Acquire a "global" ref on this object. - * The default implementation just calls ref(), but subclasses can override - * this method to implement additional behavior. - */ - virtual void globalRef(void* data=NULL); - - /** - * Release a "global" ref on this object. - * The default implementation just calls unref(), but subclasses can override - * this method to implement additional behavior. - */ - virtual void globalUnref(); -#endif - // Register a listener that may be called the next time our generation ID changes. // // We'll only call the listener if we're confident that we are the only SkPixelRef with this diff --git a/src/core/SkPixelRef.cpp b/src/core/SkPixelRef.cpp index bb4a5eff88..f56298165c 100644 --- a/src/core/SkPixelRef.cpp +++ b/src/core/SkPixelRef.cpp @@ -272,14 +272,3 @@ size_t SkPixelRef::getAllocatedSizeInBytes() const { return 0; } -/////////////////////////////////////////////////////////////////////////////// - -#ifdef SK_BUILD_FOR_ANDROID -void SkPixelRef::globalRef(void* data) { - this->ref(); -} - -void SkPixelRef::globalUnref() { - this->unref(); -} -#endif |