From 6d4e90a2d4c1dc807c7faaeb5ce9bafb3f10d7cc Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Thu, 24 Apr 2014 15:40:46 +0000 Subject: [PATCH] teach TSAN about SkSpinlock, SkRefCnt, and SkOnce BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=14353 NOTRY=true NOTREECHECKS=true R=bsalomon@google.com, bungeman@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/247813005 git-svn-id: http://skia.googlecode.com/svn/trunk@14354 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkRefCnt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h index 2ac68ddbcd..66ce066a71 100644 --- a/include/core/SkRefCnt.h +++ b/include/core/SkRefCnt.h @@ -107,7 +107,7 @@ protected: private: // OK for use in asserts, but not much else. - int32_t unsafeGetRefCnt() { return SK_ANNOTATE_UNPROTECTED_READ(fRefCnt); } + int32_t unsafeGetRefCnt() const { return SK_ANNOTATE_UNPROTECTED_READ(fRefCnt); } /** * Called when the ref count goes to 0.