diff options
author | plesner <plesner@t.undra.org> | 2015-11-05 08:10:45 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-05 08:10:45 -0800 |
commit | d975fc9599e2e6f909d3a11913ce1ab63525ab31 (patch) | |
tree | 058381e9a4d656e0e47105cf0a5ae759a221940d /src/views/win/SkOSWindow_win.cpp | |
parent | 2944fbb5329fc3026c541fa818489954d910625d (diff) |
Add ifdef guard around gpu-specific code in native windows window.
Review URL: https://codereview.chromium.org/1405963014
Diffstat (limited to 'src/views/win/SkOSWindow_win.cpp')
-rw-r--r-- | src/views/win/SkOSWindow_win.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp index aba5a6f4ae..4b7abb1e96 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. |