Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 1ee15df2f5ed34679b01f80337f4ffbf3a694783..4b4621698fdbd08cf62d9e4c8340827679db580e 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -12,6 +12,7 @@ |
#include "SampleCode.h" |
#include "SkAnimTimer.h" |
#include "SkCanvas.h" |
+#include "SkColorSpace_Base.h" |
#include "SkCommandLineFlags.h" |
#include "SkData.h" |
#include "SkDocument.h" |
@@ -1675,7 +1676,7 @@ bool SampleWindow::onEvent(const SkEvent& evt) { |
} |
if (kRGBA_F16_SkColorType == gConfig[selected].fColorType) { |
SkASSERT(colorSpace); |
- colorSpace = colorSpace->makeLinearGamma(); |
+ colorSpace = as_CSB(colorSpace)->makeLinearGamma(); |
} |
this->setDeviceColorType(gConfig[selected].fColorType, colorSpace); |
return true; |