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 26 matching lines...) Expand all Loading... |
37 kNone_BackEndType, | 37 kNone_BackEndType, |
38 kNativeGL_BackEndType, | 38 kNativeGL_BackEndType, |
39 #if SK_ANGLE | 39 #if SK_ANGLE |
40 kANGLE_BackEndType, | 40 kANGLE_BackEndType, |
41 #endif // SK_ANGLE | 41 #endif // SK_ANGLE |
42 #if SK_COMMAND_BUFFER | 42 #if SK_COMMAND_BUFFER |
43 kCommandBuffer_BackEndType, | 43 kCommandBuffer_BackEndType, |
44 #endif // SK_COMMAND_BUFFER | 44 #endif // SK_COMMAND_BUFFER |
45 }; | 45 }; |
46 | 46 |
47 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*)
; | 47 bool attach(SkBackEndTypes attachType, int msaaSampleCount, bool tenBitColor
, AttachmentInfo*); |
48 void release(); | 48 void release(); |
49 void present(); | 49 void present(); |
50 | 50 |
51 int getMSAASampleCount() const { return fMSAASampleCount; } | 51 int getMSAASampleCount() const { return fMSAASampleCount; } |
52 | 52 |
53 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); | 53 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); |
54 | 54 |
55 bool makeFullscreen(); | 55 bool makeFullscreen(); |
56 void setVsync(bool); | 56 void setVsync(bool); |
57 void closeWindow(); | 57 void closeWindow(); |
(...skipping 22 matching lines...) Expand all Loading... |
80 | 80 |
81 // Needed for GL | 81 // Needed for GL |
82 XVisualInfo* fVi; | 82 XVisualInfo* fVi; |
83 // we recreate the underlying xwindow if this changes | 83 // we recreate the underlying xwindow if this changes |
84 int fMSAASampleCount; | 84 int fMSAASampleCount; |
85 | 85 |
86 typedef SkWindow INHERITED; | 86 typedef SkWindow INHERITED; |
87 }; | 87 }; |
88 | 88 |
89 #endif | 89 #endif |
OLD | NEW |