Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2741)

Unified Diff: bench/GrMipMapBench.cpp

Issue 2032693002: Release surface between runs to avoid seg fault (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GrMipMapBench.cpp
diff --git a/bench/GrMipMapBench.cpp b/bench/GrMipMapBench.cpp
index 3b4db2459612a2dd4f783067738ec628e4d81bcf..b8fc1ba467a9b8af4cb7212c067c4baec52982d8 100644
--- a/bench/GrMipMapBench.cpp
+++ b/bench/GrMipMapBench.cpp
@@ -59,6 +59,10 @@ protected:
}
}
+ void onPerCanvasPostDraw(SkCanvas*) override {
+ fSurface.reset(nullptr);
+ }
+
private:
typedef Benchmark INHERITED;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698