Index: src/views/SkWindow.cpp |
diff --git a/src/views/SkWindow.cpp b/src/views/SkWindow.cpp |
index bcc7b0298f3ad1b181093389f0d81f58dc5d025f..244bc4974219b44f4c42218cdfa1ec4f90c6cd3d 100644 |
--- a/src/views/SkWindow.cpp |
+++ b/src/views/SkWindow.cpp |
@@ -74,8 +74,8 @@ void SkWindow::setColorType(SkColorType ct, SkColorProfileType pt) { |
// Set the global flag that enables or disables "legacy" mode, depending on our format. |
// With sRGB 32-bit or linear FP 16, we turn on gamma-correct handling of inputs: |
SkSurfaceProps props = this->getSurfaceProps(); |
- uint32_t flags = (props.flags() & ~SkSurfaceProps::kAllowSRGBInputs_Flag) | |
- (SkColorAndProfileAreGammaCorrect(ct, pt) ? SkSurfaceProps::kAllowSRGBInputs_Flag : 0); |
+ uint32_t flags = (props.flags() & ~SkSurfaceProps::kGammaCorrect_Flag) | |
+ (SkColorAndProfileAreGammaCorrect(ct, pt) ? SkSurfaceProps::kGammaCorrect_Flag : 0); |
this->setSurfaceProps(SkSurfaceProps(flags, props.pixelGeometry())); |
} |