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 20 matching lines...) Expand all Loading... |
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 }; | 39 }; |
40 | 40 |
41 struct AttachmentInfo { | |
42 int fSampleCount; | |
43 int fStencilBits; | |
44 }; | |
45 | |
46 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*)
; | 41 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*)
; |
47 void detach(); | 42 void detach(); |
48 void present(); | 43 void present(); |
49 | 44 |
50 int getMSAASampleCount() const { return fMSAASampleCount; } | 45 int getMSAASampleCount() const { return fMSAASampleCount; } |
51 | 46 |
52 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); | 47 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); |
53 | 48 |
54 protected: | 49 protected: |
55 // Overridden from from SkWindow: | 50 // Overridden from from SkWindow: |
(...skipping 17 matching lines...) Expand all Loading... |
73 | 68 |
74 // Needed for GL | 69 // Needed for GL |
75 XVisualInfo* fVi; | 70 XVisualInfo* fVi; |
76 // we recreate the underlying xwindow if this changes | 71 // we recreate the underlying xwindow if this changes |
77 int fMSAASampleCount; | 72 int fMSAASampleCount; |
78 | 73 |
79 typedef SkWindow INHERITED; | 74 typedef SkWindow INHERITED; |
80 }; | 75 }; |
81 | 76 |
82 #endif | 77 #endif |
OLD | NEW |