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

Side by Side Diff: include/views/SkOSWindow_Win.h

Issue 1181723006: Move closeWindow()/setFullscreen()/setVSynv() from SkWindow to SkOSWindow (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « include/views/SkOSWindow_Unix.h ('k') | include/views/SkOSWindow_iOS.h » ('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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkOSWindow_Win_DEFINED 10 #ifndef SkOSWindow_Win_DEFINED
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void present(); 45 void present();
46 46
47 bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); 47 bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
48 static bool QuitOnDeactivate(HWND hWnd); 48 static bool QuitOnDeactivate(HWND hWnd);
49 49
50 enum { 50 enum {
51 SK_WM_SkEvent = WM_APP + 1000, 51 SK_WM_SkEvent = WM_APP + 1000,
52 SK_WM_SkTimerID = 0xFFFF // just need a non-zero value 52 SK_WM_SkTimerID = 0xFFFF // just need a non-zero value
53 }; 53 };
54 54
55 void setFullscreen(bool) override; 55 bool makeFullscreen();
56 void setVsync(bool) override; 56 void setVsync(bool);
57 void closeWindow() override; 57 void closeWindow();
58 58
59 static SkOSWindow* GetOSWindowForHWND(void* hwnd) { 59 static SkOSWindow* GetOSWindowForHWND(void* hwnd) {
60 SkOSWindow** win = gHwndToOSWindowMap.find(hwnd); 60 SkOSWindow** win = gHwndToOSWindowMap.find(hwnd);
61 if (!win) { 61 if (!win) {
62 return NULL; 62 return NULL;
63 } 63 }
64 return *win; 64 return *win;
65 } 65 }
66 66
67 // Iterates SkFunction over all the SkOSWindows and their corresponding HWND s. 67 // Iterates SkFunction over all the SkOSWindows and their corresponding HWND s.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info); 124 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info);
125 void detachANGLE(); 125 void detachANGLE();
126 void presentANGLE(); 126 void presentANGLE();
127 #endif // SK_ANGLE 127 #endif // SK_ANGLE
128 #endif // SK_SUPPORT_GPU 128 #endif // SK_SUPPORT_GPU
129 129
130 typedef SkWindow INHERITED; 130 typedef SkWindow INHERITED;
131 }; 131 };
132 132
133 #endif 133 #endif
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_Unix.h ('k') | include/views/SkOSWindow_iOS.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698