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

Unified Diff: samplecode/SampleApp.cpp

Issue 2221103002: Analytic AntiAlias for Convex Shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix alpha computation Created 4 years, 4 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 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

Powered by Google App Engine
This is Rietveld 408576698