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

Unified Diff: bench/nanobench.cpp

Issue 1606883005: Revert to old behavior for swap buffers (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 | include/gpu/gl/SkGLContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 0a8e7355a27e7f549537630038b5d433c2be1c53..4fc4044449b5e65a9a661133bef72520ff28903d 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -156,7 +156,7 @@ struct GPUTarget : public Target {
void endTiming() override {
if (this->gl) {
SK_GL(*this->gl, Flush());
- this->gl->swapBuffers();
+ this->gl->waitOnSyncOrSwap();
}
}
void fence() override {
« no previous file with comments | « no previous file | include/gpu/gl/SkGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698