Chromium Code Reviews| Index: include/private/SkTemplates.h |
| diff --git a/include/private/SkTemplates.h b/include/private/SkTemplates.h |
| index 526c307558c6a98db262d54ef37bc5548af69f14..d83ffc8e27d4f7c3f30ae07dd3ac0a07b09d47b3 100644 |
| --- a/include/private/SkTemplates.h |
| +++ b/include/private/SkTemplates.h |
| @@ -98,6 +98,11 @@ public: |
| operator T*() const { return this->get(); } |
| void free() { this->reset(nullptr); } |
| +#if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) |
| + // Need to update graphics/BitmapRegionDecoder.cpp. |
|
scroggo
2016/03/17 12:37:47
Looks like we also need to update Shader.cpp
|
| + T* detach() { return this->release(); } |
| +#endif |
| + |
| // See SkAutoTUnref for why we do this. |
| explicit operator bool() const { return this->get() != nullptr; } |
| }; |