| Index: include/core/SkDynamicAnnotations.h
|
| diff --git a/include/core/SkDynamicAnnotations.h b/include/core/SkDynamicAnnotations.h
|
| index 872a292e5dae9075c9e5a69978ed379389646dc4..2775b38cec4c388e737cd0f83ce9661dd8ff54a9 100644
|
| --- a/include/core/SkDynamicAnnotations.h
|
| +++ b/include/core/SkDynamicAnnotations.h
|
| @@ -82,32 +82,4 @@ private:
|
| T fVal;
|
| };
|
|
|
| -// This is like SkTRacy, but allows you to return the value by reference.
|
| -// TSAN is better at suppressing SkTRacy than SkTRacyReffable, so use SkTRacy when possible.
|
| -//
|
| -// We use this for SkPathRef bounds, which is an SkRect we pass around by reference publically.
|
| -template <typename T>
|
| -class SkTRacyReffable {
|
| -public:
|
| - SkTRacyReffable() { SK_ANNOTATE_BENIGN_RACE(&fVal); }
|
| -
|
| - operator const T&() const {
|
| - return fVal;
|
| - }
|
| -
|
| - SkTRacyReffable& operator=(const T& val) {
|
| - fVal = val;
|
| - return *this;
|
| - }
|
| -
|
| - const T* get() const { return &fVal; }
|
| - T* get() { return &fVal; }
|
| -
|
| - const T* operator->() const { return &fVal; }
|
| - T* operator->() { return &fVal; }
|
| -
|
| -private:
|
| - T fVal;
|
| -};
|
| -
|
| #endif//SkDynamicAnnotations_DEFINED
|
|
|