diff options
Diffstat (limited to 'tools/viewer/sk_app/mac/RasterWindowContext_mac.cpp')
-rw-r--r-- | tools/viewer/sk_app/mac/RasterWindowContext_mac.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/viewer/sk_app/mac/RasterWindowContext_mac.cpp b/tools/viewer/sk_app/mac/RasterWindowContext_mac.cpp index fd2f2effb1..4749bc79a2 100644 --- a/tools/viewer/sk_app/mac/RasterWindowContext_mac.cpp +++ b/tools/viewer/sk_app/mac/RasterWindowContext_mac.cpp @@ -8,7 +8,8 @@ #include "../GLWindowContext.h" #include "SkCanvas.h" -#include "SkGammaColorFilter.h" +#include "SkColorFilter.h" +#include "sk_tool_utils.h" #include "WindowContextFactory_mac.h" #include "SDL.h" @@ -123,7 +124,7 @@ void RasterWindowContext_mac::onSwapBuffers() { SkPaint gammaPaint; gammaPaint.setBlendMode(SkBlendMode::kSrc); if (doGamma) { - gammaPaint.setColorFilter(SkGammaColorFilter::Make(1.0f / 2.2f)); + gammaPaint.setColorFilter(sk_tool_utils::MakeLinearToSRGBColorFilter()); } sk_sp<SkSurface> gpuSurface = INHERITED::getBackbufferSurface(); |