Index: tools/skiaserve/urlhandlers/EnableGPUHandler.cpp |
diff --git a/tools/skiaserve/urlhandlers/EnableGPUHandler.cpp b/tools/skiaserve/urlhandlers/EnableGPUHandler.cpp |
index 68eb86f6b4fdc384e1ec13d83164bb363b2709ec..7364ef040efd2036d4e5a605d81bcd3ed14154ca 100644 |
--- a/tools/skiaserve/urlhandlers/EnableGPUHandler.cpp |
+++ b/tools/skiaserve/urlhandlers/EnableGPUHandler.cpp |
@@ -32,7 +32,7 @@ int EnableGPUHandler::handle(Request* request, MHD_Connection* connection, |
int enable; |
sscanf(commands[1].c_str(), "%d", &enable); |
- bool success = request->enableGPU(enable); |
+ bool success = request->enableGPU(SkToBool(enable)); |
if (!success) { |
return SendError(connection, "Unable to create GPU surface"); |
} |