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