Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 439b699c383ac1c933333a650c91e3cff2111c2c..270cb40bef0f2d0a8ef4871bce3e15bef4b3fb3f 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,10 @@ bool SampleWindow::onHandleChar(SkUnichar uni) { |
this->inval(nullptr); |
} |
break; |
+ case 'A': |
+ GlobalAAConfig::getInstance().fUseAnalyticAA = |
reed1
2016/08/18 20:31:00
Do you intend to land this permanently?
liyuqian
2016/08/22 15:30:48
I intend to have this as long as both the old supe
|
+ !GlobalAAConfig::getInstance().fUseAnalyticAA; |
+ 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 |