From d975fc9599e2e6f909d3a11913ce1ab63525ab31 Mon Sep 17 00:00:00 2001 From: plesner Date: Thu, 5 Nov 2015 08:10:45 -0800 Subject: [PATCH] Add ifdef guard around gpu-specific code in native windows window. Review URL: https://codereview.chromium.org/1405963014 --- AUTHORS | 1 + src/views/win/SkOSWindow_win.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/AUTHORS b/AUTHORS index 9d8e661..47f675b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -37,3 +37,4 @@ The Chromium Authors <*@chromium.org> Thiago Fransosi Farina Jose Mayol Linaro <*@linaro.org> +Christian Plesner Hansen 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 @@ bool SkOSWindow::makeFullscreen() { 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. -- 2.7.4