| Index: samplecode/SampleApp.cpp
|
| diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
|
| index 05eac2f471fba40ea4550d39c4ccacac74b776d1..ec9ab63e9eaaaf2a28884be02990d62af8442e91 100644
|
| --- a/samplecode/SampleApp.cpp
|
| +++ b/samplecode/SampleApp.cpp
|
| @@ -37,6 +37,7 @@
|
| #include "GrRenderTarget.h"
|
| #include "GrContext.h"
|
| #include "SkGpuDevice.h"
|
| +#include "GrTessellatingPathRenderer.h"
|
| #else
|
| class GrContext;
|
| #endif
|
| @@ -883,6 +884,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("FilterLevel", "FilterLevel", sinkID, fFilterLevelIndex,
|
| @@ -1594,6 +1597,10 @@ bool SampleWindow::onEvent(const SkEvent& evt) {
|
| this->toggleSlideshow();
|
| return true;
|
| }
|
| + if (SkOSMenu::FindSwitchState(evt, "Wireframe", &GrTessellatingPathRenderer::gWireframe)) {
|
| + this->inval(NULL);
|
| + return true;
|
| + }
|
| if (SkOSMenu::FindTriState(evt, "AA", &fAAState) ||
|
| SkOSMenu::FindTriState(evt, "LCD", &fLCDState) ||
|
| SkOSMenu::FindListIndex(evt, "FilterLevel", &fFilterLevelIndex) ||
|
|
|