Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 52e063d367a9a9f6ac4ff4436d8db010138a1a03..1ee15df2f5ed34679b01f80337f4ffbf3a694783 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); |
} |