Index: tools/skiaserve/urlhandlers/SRGBModeHandler.cpp |
diff --git a/tools/skiaserve/urlhandlers/SRGBModeHandler.cpp b/tools/skiaserve/urlhandlers/SRGBModeHandler.cpp |
index df06050b90c2cf56a86eef5ef97ecfcc5dc9dcea..1dd9789191eb523279555cf3174affba93196ef7 100644 |
--- a/tools/skiaserve/urlhandlers/SRGBModeHandler.cpp |
+++ b/tools/skiaserve/urlhandlers/SRGBModeHandler.cpp |
@@ -34,7 +34,7 @@ int SRGBModeHandler::handle(Request* request, MHD_Connection* connection, |
return MHD_NO; |
} |
- bool success = request->setSRGBMode(enable); |
+ bool success = request->setSRGBMode(SkToBool(enable)); |
if (!success) { |
return SendError(connection, "Unable to set requested mode"); |
} |