Add ifdef guard around gpu-specific code in native windows window.
Review URL: https://codereview.chromium.org/1405963014
diff --git a/AUTHORS b/AUTHORS
index 9d8e661..47f675b 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -37,3 +37,4 @@
Thiago Fransosi Farina <thiago.farina@gmail.com>
Jose Mayol <jei.mayol@gmail.com>
Linaro <*@linaro.org>
+Christian Plesner Hansen <plesner@t.undra.org>
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp
index aba5a6f..4b7abb1 100644
--- a/src/views/win/SkOSWindow_win.cpp
+++ b/src/views/win/SkOSWindow_win.cpp
@@ -692,9 +692,11 @@
if (fFullscreen) {
return true;
}
+#if SK_SUPPORT_GPU
if (fHGLRC) {
this->detachGL();
}
+#endif // SK_SUPPORT_GPU
// This is hacked together from various sources on the web. It can certainly be improved and be
// made more robust.