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

Side by Side Diff: src/views/mac/SkOSWindow_Mac.mm

Issue 1919993002: Added --deepColor option to SampleApp, triggers creation of a ten-bit/channel buffer on Windows. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « src/views/ios/SkOSWindow_iOS.mm ('k') | src/views/sdl/SkOSWindow_SDL.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #if defined(SK_BUILD_FOR_MAC) 8 #if defined(SK_BUILD_FOR_MAC)
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 59
60 void SkOSWindow::onAddMenu(const SkOSMenu* menu) { 60 void SkOSWindow::onAddMenu(const SkOSMenu* menu) {
61 [(SkNSView*)fHWND onAddMenu:menu]; 61 [(SkNSView*)fHWND onAddMenu:menu];
62 } 62 }
63 63
64 void SkOSWindow::onUpdateMenu(const SkOSMenu* menu) { 64 void SkOSWindow::onUpdateMenu(const SkOSMenu* menu) {
65 [(SkNSView*)fHWND onUpdateMenu:menu]; 65 [(SkNSView*)fHWND onUpdateMenu:menu];
66 } 66 }
67 67
68 bool SkOSWindow::attach(SkBackEndTypes attachType, int sampleCount, AttachmentIn fo* info) { 68 bool SkOSWindow::attach(SkBackEndTypes attachType, int sampleCount, bool /*deepC olor*/,
69 AttachmentInfo* info) {
69 return [(SkNSView*)fHWND attach:attachType withMSAASampleCount:sampleCount a ndGetInfo:info]; 70 return [(SkNSView*)fHWND attach:attachType withMSAASampleCount:sampleCount a ndGetInfo:info];
70 } 71 }
71 72
72 void SkOSWindow::release() { 73 void SkOSWindow::release() {
73 [(SkNSView*)fHWND detach]; 74 [(SkNSView*)fHWND detach];
74 } 75 }
75 76
76 void SkOSWindow::present() { 77 void SkOSWindow::present() {
77 [(SkNSView*)fHWND present]; 78 [(SkNSView*)fHWND present];
78 } 79 }
79 80
80 void SkOSWindow::closeWindow() { 81 void SkOSWindow::closeWindow() {
81 [[(SkNSView*)fHWND window] close]; 82 [[(SkNSView*)fHWND window] close];
82 } 83 }
83 84
84 void SkOSWindow::setVsync(bool enable) { 85 void SkOSWindow::setVsync(bool enable) {
85 [(SkNSView*)fHWND setVSync:enable]; 86 [(SkNSView*)fHWND setVSync:enable];
86 } 87 }
87 88
88 bool SkOSWindow::makeFullscreen() { 89 bool SkOSWindow::makeFullscreen() {
89 [(SkNSView*)fHWND enterFullScreenMode:[NSScreen mainScreen] withOptions:nil] ; 90 [(SkNSView*)fHWND enterFullScreenMode:[NSScreen mainScreen] withOptions:nil] ;
90 return true; 91 return true;
91 } 92 }
92 93
93 94
94 #endif 95 #endif
OLDNEW
« no previous file with comments | « src/views/ios/SkOSWindow_iOS.mm ('k') | src/views/sdl/SkOSWindow_SDL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698