Add ifdef guard around gpu-specific code in native windows window.

Review URL: https://codereview.chromium.org/1405963014
This commit is contained in:
plesner 2015-11-05 08:10:45 -08:00 committed by Commit bot
parent 2944fbb532
commit d975fc9599
2 changed files with 3 additions and 0 deletions

View File

@ -37,3 +37,4 @@ The Chromium Authors <*@chromium.org>
Thiago Fransosi Farina <thiago.farina@gmail.com>
Jose Mayol <jei.mayol@gmail.com>
Linaro <*@linaro.org>
Christian Plesner Hansen <plesner@t.undra.org>

View File

@ -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.