diff options
-rw-r--r-- | include/core/SkRefCnt.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h index abcda7e990..46e69759cb 100644 --- a/include/core/SkRefCnt.h +++ b/include/core/SkRefCnt.h @@ -134,7 +134,13 @@ private: // This SkRefCnt should normally derive from SkRefCntBase. #include SK_REF_CNT_MIXIN_INCLUDE #else -class SK_API SkRefCnt : public SkRefCntBase { }; +class SK_API SkRefCnt : public SkRefCntBase { + // "#include SK_REF_CNT_MIXIN_INCLUDE" doesn't work with this build system. + #if defined(GOOGLE3) + public: + void deref() const { this->unref(); } + #endif +}; #endif /////////////////////////////////////////////////////////////////////////////// |