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

Unified Diff: samplecode/SampleApp.cpp

Issue 1419983006: demo tweaks, scale up perlin, add call to flush for fps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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 | « samplecode/SampleAnimatedText.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleApp.cpp
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index df83d4dea5dcfd443fd22e251ff52586e5143ebc..c71fda5f9d991a578fcda314dacade1066635861 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -1441,6 +1441,7 @@ void SampleWindow::afterChildren(SkCanvas* orig) {
// Do this after presentGL and other finishing, rather than in afterChild
if (fMeasureFPS) {
+ orig->flush();
fTimer.end();
fMeasureFPS_Time += fTimer.fWall;
}
« no previous file with comments | « samplecode/SampleAnimatedText.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698