Revert "Annotate benign race on SkPath::fConvexity."
This reverts commit c51a3a4e3c
.
Reason for revert: had to revert this in the copy constructor. Might as well revert here too for consistency.
Original change's description:
> Annotate benign race on SkPath::fConvexity.
>
> We're tired of this making our TSAN bot flaky, and equally tired of trying to fix it.
>
> BUG=skia:5776
>
> CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-TSAN-Trybot
>
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4691
>
> Change-Id: Ib6005282c514a6d785fd4fffe5387cbb1caccbe1
> Reviewed-on: https://skia-review.googlesource.com/4691
> Commit-Queue: Mike Klein <mtklein@chromium.org>
> Reviewed-by: Ben Wagner <bungeman@google.com>
>
TBR=mtklein@chromium.org,bungeman@google.com,reed@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Change-Id: I906b1e017471d9e00fc58402136497459d881f72
Reviewed-on: https://skia-review.googlesource.com/4740
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
This commit is contained in:
parent
df8b2694d4
commit
83b5b21714
@ -13,7 +13,6 @@
|
||||
#include "SkPathPriv.h"
|
||||
#include "SkPathRef.h"
|
||||
#include "SkRRect.h"
|
||||
#include "SkTSAN.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -129,8 +128,6 @@ SkPath::SkPath()
|
||||
: fPathRef(SkPathRef::CreateEmpty()) {
|
||||
this->resetFields();
|
||||
fIsVolatile = false;
|
||||
AnnotateBenignRaceSized(__FILE__, __LINE__, &fConvexity, sizeof(fConvexity),
|
||||
"We've tried a few times to make this thread safe, and failed.");
|
||||
}
|
||||
|
||||
void SkPath::resetFields() {
|
||||
|
@ -1,26 +0,0 @@
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license that can be
|
||||
* found in the LICENSE file.
|
||||
*/
|
||||
|
||||
#ifndef SkTSAN_DEFINED
|
||||
#define SkTSAN_DEFINED
|
||||
|
||||
#if !defined(__has_feature)
|
||||
#define __has_feature(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_feature(thread_sanitizer)
|
||||
extern "C" void AnnotateBenignRaceSized(const char* file, int line,
|
||||
const volatile void* ptr, long size,
|
||||
const char* desc);
|
||||
#else
|
||||
static inline void AnnotateBenignRaceSized(const char* file, int line,
|
||||
const volatile void* ptr, long size,
|
||||
const char* desc) {}
|
||||
#endif
|
||||
|
||||
|
||||
#endif//SkTSAN_DEFINED
|
Loading…
Reference in New Issue
Block a user