probable fix for asan bot

NOTREECHECKS=True
TBR=bsalomon@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/956583002
This commit is contained in:
joshualitt 2015-02-24 06:47:14 -08:00 committed by Commit bot
parent e59bbf1cd5
commit ab2f44cbfa
2 changed files with 2 additions and 1 deletions

View File

@ -93,6 +93,7 @@ public:
}
void setClipStack(const SkClipStack* clipStack, const SkIPoint* origin = NULL) {
this->reset();
if (clipStack->isWideOpen()) {
fClipType = kWideOpen_ClipType;
fOrigin.setZero();

View File

@ -50,6 +50,6 @@ void GrClip::getConservativeBounds(int width, int height, SkIRect* devResult,
}
const GrClip& GrClip::WideOpen() {
static GrClip clip;
static const GrClip clip;
return clip;
}