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

Unified Diff: src/views/win/SkOSWindow_win.cpp

Issue 1405963014: Add ifdef guard around gpu-specific code in native windows window. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: I'm an idiot Created 5 years, 1 month 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/views/win/SkOSWindow_win.cpp
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp
index aba5a6f4ae89d6f9ddb3331fcf584e1456ca28d1..4b7abb1e96686cbb510b7282c7b83eccdbb65cc7 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.
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698