OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 #ifndef SkOSWindow_Unix_DEFINED | 8 #ifndef SkOSWindow_Unix_DEFINED |
9 #define SkOSWindow_Unix_DEFINED | 9 #define SkOSWindow_Unix_DEFINED |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 ~SkOSWindow(); | 29 ~SkOSWindow(); |
30 | 30 |
31 void* getHWND() const { return (void*)fUnixWindow.fWin; } | 31 void* getHWND() const { return (void*)fUnixWindow.fWin; } |
32 void* getDisplay() const { return (void*)fUnixWindow.fDisplay; } | 32 void* getDisplay() const { return (void*)fUnixWindow.fDisplay; } |
33 void* getUnixWindow() const { return (void*)&fUnixWindow; } | 33 void* getUnixWindow() const { return (void*)&fUnixWindow; } |
34 void loop(); | 34 void loop(); |
35 | 35 |
36 enum SkBackEndTypes { | 36 enum SkBackEndTypes { |
37 kNone_BackEndType, | 37 kNone_BackEndType, |
38 kNativeGL_BackEndType, | 38 kNativeGL_BackEndType, |
| 39 #if SK_ANGLE |
| 40 kANGLE_BackEndType, |
| 41 #endif // SK_ANGLE |
39 }; | 42 }; |
40 | 43 |
41 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*)
; | 44 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*)
; |
42 void detach(); | 45 void detach(); |
43 void present(); | 46 void present(); |
44 | 47 |
45 int getMSAASampleCount() const { return fMSAASampleCount; } | 48 int getMSAASampleCount() const { return fMSAASampleCount; } |
46 | 49 |
47 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); | 50 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); |
48 | 51 |
(...skipping 25 matching lines...) Expand all Loading... |
74 | 77 |
75 // Needed for GL | 78 // Needed for GL |
76 XVisualInfo* fVi; | 79 XVisualInfo* fVi; |
77 // we recreate the underlying xwindow if this changes | 80 // we recreate the underlying xwindow if this changes |
78 int fMSAASampleCount; | 81 int fMSAASampleCount; |
79 | 82 |
80 typedef SkWindow INHERITED; | 83 typedef SkWindow INHERITED; |
81 }; | 84 }; |
82 | 85 |
83 #endif | 86 #endif |
OLD | NEW |