aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleApp.cpp
diff options
context:
space:
mode:
authorreed <reed@google.com>2015-11-09 13:10:30 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-09 13:10:30 -0800
commitb2ce0b0735e08718bcba01b44519904ad9020f34 (patch)
treec5c0f8a52595eb623c72c319ca29181a6b3c7537 /samplecode/SampleApp.cpp
parent47fdae9807c559e8b9f6ddff26cd34de03441594 (diff)
demo tweaks, scale up perlin, add call to flush for fps
BUG=skia: TBR=bsalomon Review URL: https://codereview.chromium.org/1419983006
Diffstat (limited to 'samplecode/SampleApp.cpp')
-rw-r--r--samplecode/SampleApp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index df83d4dea5..c71fda5f9d 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;
}