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

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

Issue 890873003: update example (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove multiple example cruft Created 5 years, 10 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 19 matching lines...) Expand all
30 enum SkBackEndTypes { 30 enum SkBackEndTypes {
31 kNone_BackEndType, 31 kNone_BackEndType,
32 #if SK_SUPPORT_GPU 32 #if SK_SUPPORT_GPU
33 kNativeGL_BackEndType, 33 kNativeGL_BackEndType,
34 #if SK_ANGLE 34 #if SK_ANGLE
35 kANGLE_BackEndType, 35 kANGLE_BackEndType,
36 #endif // SK_ANGLE 36 #endif // SK_ANGLE
37 #endif // SK_SUPPORT_GPU 37 #endif // SK_SUPPORT_GPU
38 }; 38 };
39 39
40 struct AttachmentInfo {
41 int fSampleCount;
42 int fStencilBits;
43 };
44
45 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ; 40 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ;
46 void detach(); 41 void detach();
47 void present(); 42 void present();
48 43
49 bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); 44 bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
50 static bool QuitOnDeactivate(HWND hWnd); 45 static bool QuitOnDeactivate(HWND hWnd);
51 46
52 enum { 47 enum {
53 SK_WM_SkEvent = WM_APP + 1000, 48 SK_WM_SkEvent = WM_APP + 1000,
54 SK_WM_SkTimerID = 0xFFFF // just need a non-zero value 49 SK_WM_SkTimerID = 0xFFFF // just need a non-zero value
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info); 87 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info);
93 void detachANGLE(); 88 void detachANGLE();
94 void presentANGLE(); 89 void presentANGLE();
95 #endif // SK_ANGLE 90 #endif // SK_ANGLE
96 #endif // SK_SUPPORT_GPU 91 #endif // SK_SUPPORT_GPU
97 92
98 typedef SkWindow INHERITED; 93 typedef SkWindow INHERITED;
99 }; 94 };
100 95
101 #endif 96 #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