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

Unified Diff: src/views/mac/SkOSWindow_Mac.mm

Issue 1184143011: nibless mac, visual bench working on mac (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix HelloWorld compile on windows Created 5 years, 6 months 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 | « src/views/mac/SkNSView.mm ('k') | src/views/mac/skia_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/views/mac/SkOSWindow_Mac.mm
diff --git a/src/views/mac/SkOSWindow_Mac.mm b/src/views/mac/SkOSWindow_Mac.mm
index b0f006a8847e12996632629cb7f310c7c8d9eb9f..2b11ffcbd38ef2dd3cf02ce9058f563b98e5631b 100644
--- a/src/views/mac/SkOSWindow_Mac.mm
+++ b/src/views/mac/SkOSWindow_Mac.mm
@@ -77,4 +77,18 @@ void SkOSWindow::present() {
[(SkNSView*)fHWND present];
}
+void SkOSWindow::closeWindow() {
+ [[(SkNSView*)fHWND window] close];
+}
+
+void SkOSWindow::setVsync(bool enable) {
+ [(SkNSView*)fHWND setVSync:enable];
+}
+
+bool SkOSWindow::makeFullscreen() {
+ [(SkNSView*)fHWND enterFullScreenMode:[NSScreen mainScreen] withOptions:nil];
+ return true;
+}
+
+
#endif
« no previous file with comments | « src/views/mac/SkNSView.mm ('k') | src/views/mac/skia_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698