diff options
author | liyuqian <liyuqian@google.com> | 2016-10-11 12:20:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-11 12:20:08 -0700 |
commit | ebcb8aadae70b25d4ac023b4f987a469b6d91f41 (patch) | |
tree | 7d535e998e7725882b887728d00a6b7ed9fc375a /samplecode | |
parent | 2a9610171b24aca1d1dce085b956572c7b57f183 (diff) |
Add AA Analytic Compile Flag (and small fixes)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2410303002
Review-Url: https://codereview.chromium.org/2410303002
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 4 |
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); } |