Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 62970302df50d53de5e5ae7a221b23278b8afdaf..572d963f1fc2bad213df70159a72cc55231f687a 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -33,6 +33,7 @@ |
#include "SkTypeface.h" |
#include "SkWindow.h" |
#include "sk_tool_utils.h" |
+#include "SkScan.h" |
#if SK_SUPPORT_GPU |
# include "gl/GrGLInterface.h" |
@@ -1683,6 +1684,11 @@ bool SampleWindow::onHandleChar(SkUnichar uni) { |
this->inval(nullptr); |
} |
break; |
+ case 'A': |
+ GlobalAAConfig::getInstance().fUseAnalyticAA = |
+ !GlobalAAConfig::getInstance().fUseAnalyticAA; |
+ this->inval(nullptr); |
+ break; |
case 'B': |
post_event_to_sink(new SkEvent("PictFileView::toggleBBox"), curr_view(this)); |
// Cannot call updateTitle() synchronously, because the toggleBBox event is still in |