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

Unified Diff: samplecode/SampleApp.cpp

Issue 2410303002: Add AA Analytic Compile Flag (and small fixes) (Closed)
Patch Set: Created 4 years, 2 months 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 | « no previous file | src/core/SkScan.cpp » ('j') | 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 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);
}
« no previous file with comments | « no previous file | src/core/SkScan.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698