aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar liyuqian <liyuqian@google.com>2016-10-11 12:20:08 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-11 12:20:08 -0700
commitebcb8aadae70b25d4ac023b4f987a469b6d91f41 (patch)
tree7d535e998e7725882b887728d00a6b7ed9fc375a /samplecode
parent2a9610171b24aca1d1dce085b956572c7b57f183 (diff)
Add AA Analytic Compile Flag (and small fixes)
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleApp.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 52e063d367..1ee15df2f5 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -1804,6 +1804,7 @@ bool SampleWindow::onHandleChar(SkUnichar uni) {
case 'A':
gSkUseAnalyticAA = !gSkUseAnalyticAA.load();
this->inval(nullptr);
+ this->updateTitle();
break;
case 'B':
post_event_to_sink(new SkEvent("PictFileView::toggleBBox"), curr_view(this));
@@ -2154,6 +2155,9 @@ void SampleWindow::updateTitle() {
title.prepend(gDeviceTypePrefix[fDeviceType]);
+ if (gSkUseAnalyticAA) {
+ title.prepend("<AAA> ");
+ }
if (fTilingMode != kNo_Tiling) {
title.prependf("<T: %s> ", gTilingInfo[fTilingMode].label);
}