Add back SkAutoTUnref::detach() for Android temporarily.
TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1812843002 Review URL: https://codereview.chromium.org/1812843002
This commit is contained in:
parent
cc864c336d
commit
bbd60689bb
@ -196,6 +196,11 @@ public:
|
||||
|
||||
operator T*() const { return this->get(); }
|
||||
|
||||
#if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
|
||||
// Need to update graphics/Shader.cpp.
|
||||
T* detach() { return this->release(); }
|
||||
#endif
|
||||
|
||||
// Android's std::unique_ptr's operator bool() is sometimes not explicit...
|
||||
// so override it with our own explcitly explicit version.
|
||||
explicit operator bool() const { return this->get() != nullptr; }
|
||||
|
Loading…
Reference in New Issue
Block a user