aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/VisualBench.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-06-16 12:47:25 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-16 12:47:25 -0700
commit85ab55114f3e2d688d0705e3482fc77ec8a46a64 (patch)
tree8be1f8a1da3e985e7fa5a4fb18af54707ce4cc90 /tools/VisualBench.cpp
parent5b16e740fe6ab6d679083d06f07651602265081b (diff)
Move closeWindow()/setFullscreen()/setVSynv() from SkWindow to SkOSWindow
Rename setFullscreen to makeFullscreen, drop the param, return a bool. Review URL: https://codereview.chromium.org/1181723006
Diffstat (limited to 'tools/VisualBench.cpp')
-rw-r--r--tools/VisualBench.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/VisualBench.cpp b/tools/VisualBench.cpp
index 5cd1ebd57a..58b628a2cb 100644
--- a/tools/VisualBench.cpp
+++ b/tools/VisualBench.cpp
@@ -101,7 +101,9 @@ bool VisualBench::setupBackend() {
this->setVisibleP(true);
this->setClipToBounds(false);
- this->setFullscreen(true);
+ if (!this->makeFullscreen()) {
+ SkDebugf("Could not go fullscreen!");
+ }
if (!this->attach(kNativeGL_BackEndType, FLAGS_msaa, &fAttachmentInfo)) {
SkDebugf("Not possible to create backend.\n");
INHERITED::detach();