OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Skia | 2 * Copyright 2011 Skia |
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_Android_DEFINED | 8 #ifndef SkOSWindow_Android_DEFINED |
9 #define SkOSWindow_Android_DEFINED | 9 #define SkOSWindow_Android_DEFINED |
10 | 10 |
11 #include "SkWindow.h" | 11 #include "SkWindow.h" |
12 | 12 |
13 class SkOSWindow : public SkWindow { | 13 class SkOSWindow : public SkWindow { |
14 public: | 14 public: |
15 SkOSWindow(void*) {} | 15 SkOSWindow(void*) {} |
16 ~SkOSWindow() {} | 16 ~SkOSWindow() {} |
17 | 17 |
18 enum SkBackEndTypes { | 18 enum SkBackEndTypes { |
19 kNone_BackEndType, | 19 kNone_BackEndType, |
20 kNativeGL_BackEndType, | 20 kNativeGL_BackEndType, |
21 }; | 21 }; |
22 | 22 |
23 struct AttachmentInfo { | |
24 int fSampleCount; | |
25 int fStencilBits; | |
26 }; | |
27 | |
28 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*
info); | 23 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*
info); |
29 void detach() {} | 24 void detach() {} |
30 void present() {} | 25 void present() {} |
31 | 26 |
32 virtual void onPDFSaved(const char title[], const char desc[], | 27 virtual void onPDFSaved(const char title[], const char desc[], |
33 const char path[]); | 28 const char path[]); |
34 | 29 |
35 protected: | 30 protected: |
36 // overrides from SkWindow | 31 // overrides from SkWindow |
37 virtual void onHandleInval(const SkIRect&); | 32 virtual void onHandleInval(const SkIRect&); |
38 virtual void onSetTitle(const char title[]); | 33 virtual void onSetTitle(const char title[]); |
39 | 34 |
40 private: | 35 private: |
41 typedef SkWindow INHERITED; | 36 typedef SkWindow INHERITED; |
42 }; | 37 }; |
43 | 38 |
44 #endif | 39 #endif |
OLD | NEW |