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

Unified Diff: samplecode/SampleApp.cpp

Issue 2221103002: Analytic AntiAlias for Convex Shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Separate SkAnalyticEdge.h 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
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
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkAAAConstants.h » ('j') | src/core/SkBlitter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698