Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 3149711d86b30e88784715a4862c7c526b714896..e0d152d97b252dbc01f5049effff42f1b4641f2f 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -852,7 +852,7 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev |
fDeviceType = kGPU_DeviceType; |
} |
#endif |
- |
+ |
#if DEFAULT_TO_GPU |
fDeviceType = kGPU_DeviceType; |
#endif |
@@ -1792,13 +1792,13 @@ bool SampleWindow::onHandleChar(SkUnichar uni) { |
void SampleWindow::setDeviceType(DeviceType type) { |
if (type == fDeviceType) |
return; |
- |
+ |
fDevManager->tearDownBackend(this); |
- |
+ |
fDeviceType = type; |
- |
+ |
fDevManager->setUpBackend(this, fMSAASampleCount); |
- |
+ |
this->updateTitle(); |
this->inval(nullptr); |
} |
@@ -1807,9 +1807,9 @@ void SampleWindow::setDeviceColorType(SkColorType ct, SkColorProfileType pt) { |
this->setColorType(ct, pt); |
fDevManager->tearDownBackend(this); |
- |
+ |
fDevManager->setUpBackend(this, fMSAASampleCount); |
- |
+ |
this->updateTitle(); |
this->inval(nullptr); |
} |