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

Unified Diff: bench/GLBench.cpp

Issue 1969623003: Reset context after doing non-Skia GL rendering. (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/GLBench.cpp
diff --git a/bench/GLBench.cpp b/bench/GLBench.cpp
index f184d770b3dc990cbc76b5d02c660118023e356f..524bfe1109ad00b54430416e0192cafdffbe2ba4 100644
--- a/bench/GLBench.cpp
+++ b/bench/GLBench.cpp
@@ -56,6 +56,7 @@ void GLBench::onDraw(int loops, SkCanvas* canvas) {
return;
}
this->glDraw(loops, ctx);
+ canvas->getGrContext()->resetContext();
}
GrGLuint GLBench::CompileShader(const GrGLInterface* gl, const char* shaderSrc, GrGLenum type) {
« 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