diff options
| author | jvanverth <jvanverth@google.com> | 2015-11-06 14:20:03 -0800 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2015-11-06 14:20:04 -0800 |
| commit | 3b484a40b3be7f0262afadeaf6b741ba5cedcfe1 (patch) | |
| tree | 85f5a9e4ea16172ba3147d0c27cfd035a65ffaf4 /samplecode/SampleApp.cpp | |
| parent | e8e17cf23d2a036f9b3050bedeb9d3a544221f4c (diff) | |
Add text animation sample; tweak DrawShip sample
Review URL: https://codereview.chromium.org/1410663005
Diffstat (limited to 'samplecode/SampleApp.cpp')
| -rw-r--r-- | samplecode/SampleApp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index fb261b092c..df83d4dea5 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -1847,6 +1847,10 @@ void SampleWindow::toggleFPS() { } void SampleWindow::toggleDistanceFieldFonts() { + // reset backend + fDevManager->tearDownBackend(this); + fDevManager->setUpBackend(this, fMSAASampleCount); + SkSurfaceProps props = this->getSurfaceProps(); uint32_t flags = props.flags() ^ SkSurfaceProps::kUseDeviceIndependentFonts_Flag; this->setSurfaceProps(SkSurfaceProps(flags, props.pixelGeometry())); |
