Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index b80ea44d30df6bd900c213fb26530c001650f597..a1e42e3aacd76f4eb552f77c4a930cc2f793847e 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -834,8 +834,6 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev |
itemID = fAppMenu->appendList("ColorType", "ColorType", sinkID, 0, |
gConfig[0].fName, gConfig[1].fName, gConfig[2].fName, nullptr); |
fAppMenu->assignKeyEquivalentToItem(itemID, 'C'); |
- itemID = fAppMenu->appendSwitch("sRGB SkColor", "sRGB SkColor", sinkID, gTreatSkColorAsSRGB); |
- fAppMenu->assignKeyEquivalentToItem(itemID, 'S'); |
itemID = fAppMenu->appendList("Device Type", "Device Type", sinkID, 0, |
"Raster", |
@@ -1549,8 +1547,7 @@ bool SampleWindow::onEvent(const SkEvent& evt) { |
SkOSMenu::FindListIndex(evt, "Hinting", &fHintingState) || |
SkOSMenu::FindSwitchState(evt, "Clip", &fUseClip) || |
SkOSMenu::FindSwitchState(evt, "Zoomer", &fShowZoomer) || |
- SkOSMenu::FindSwitchState(evt, "Magnify", &fMagnify) || |
- SkOSMenu::FindSwitchState(evt, "sRGB SkColor", &gTreatSkColorAsSRGB)) |
+ SkOSMenu::FindSwitchState(evt, "Magnify", &fMagnify)) |
{ |
this->inval(nullptr); |
this->updateTitle(); |
@@ -2060,10 +2057,6 @@ void SampleWindow::updateTitle() { |
title.appendf(" %d bpc", fDevManager->getColorBits()); |
} |
- if (gTreatSkColorAsSRGB) { |
- title.append(" sRGB"); |
- } |
- |
this->setTitle(title.c_str()); |
} |