OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |