probable fix for asan bot
authorjoshualitt <joshualitt@chromium.org>
Tue, 24 Feb 2015 14:47:14 +0000 (06:47 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 24 Feb 2015 14:47:14 +0000 (06:47 -0800)
NOTREECHECKS=True
TBR=bsalomon@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/956583002

include/gpu/GrClip.h
src/gpu/GrClip.cpp

index ba26d5c..76cb46e 100644 (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();
index 15b1fbc..1dc6edc 100644 (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;
 }