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

Unified Diff: samplecode/SampleApp.cpp

Issue 2221103002: Analytic AntiAlias for Convex Shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Declare flag in SkCommonFlags.h for iOS build 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 | « gyp/core.gypi ('k') | src/core/SkAAAConstants.h » ('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 233306c767815a0585e064818061a5352d1c5af9..385268ef021eb75da9284bebbab036908ad08ac7 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"
#include "SkReadBuffer.h"
#include "SkStream.h"
@@ -1800,6 +1801,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698