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

Unified Diff: samplecode/SampleApp.cpp

Issue 692583002: WIP: GPU-accelerated trapezoidal path renderer. Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename GrTrapezoidalPathRenderer -> GrAAConcavePathRenderer; swap MSAA support for a coverage ramp. Created 5 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
« no previous file with comments | « gyp/gpu.gypi ('k') | samplecode/SampleConcavePaths.cpp » ('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 22e8b8aa1cbe338cd8891905b7d5262c736b07f9..404d7a7bc21366dfa4954d217e5e617f39812109 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -25,6 +25,7 @@
#include "SkPaintFilterCanvas.h"
#include "SkPicture.h"
#include "SkPictureRecorder.h"
+#include "SkScan.h"
#include "SkStream.h"
#include "SkSurface.h"
#include "SkTSort.h"
@@ -856,6 +857,8 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev
fAppMenu->assignKeyEquivalentToItem(itemID, 'd');
itemID = fAppMenu->appendTriState("AA", "AA", sinkID, fAAState);
fAppMenu->assignKeyEquivalentToItem(itemID, 'b');
+ itemID = fAppMenu->appendSwitch("Wireframe", "Wireframe", sinkID, false);
+ fAppMenu->assignKeyEquivalentToItem(itemID, 'w');
itemID = fAppMenu->appendTriState("LCD", "LCD", sinkID, fLCDState);
fAppMenu->assignKeyEquivalentToItem(itemID, 'l');
itemID = fAppMenu->appendList("FilterQuality", "FilterQuality", sinkID, fFilterQualityIndex,
@@ -1572,6 +1575,10 @@ bool SampleWindow::onEvent(const SkEvent& evt) {
this->toggleSlideshow();
return true;
}
+ if (SkOSMenu::FindSwitchState(evt, "Wireframe", &SkScan::gWireframe)) {
+ this->inval(NULL);
+ return true;
+ }
if (SkOSMenu::FindTriState(evt, "AA", &fAAState) ||
SkOSMenu::FindTriState(evt, "LCD", &fLCDState) ||
SkOSMenu::FindListIndex(evt, "FilterQuality", &fFilterQualityIndex) ||
« no previous file with comments | « gyp/gpu.gypi ('k') | samplecode/SampleConcavePaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698