Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: tools/skiaserve/urlhandlers/EnableGPUHandler.cpp

Issue 1903203003: Get skiaserve working on Windows. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix ws2_32 dependency, build skiaserve w/most on windows Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/skiaserve/urlhandlers/CmdHandler.cpp ('k') | tools/skiaserve/urlhandlers/SRGBModeHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
}
« no previous file with comments | « tools/skiaserve/urlhandlers/CmdHandler.cpp ('k') | tools/skiaserve/urlhandlers/SRGBModeHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698