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 |
(...skipping 13 matching lines...) Expand all Loading... |
24 ~SkOSWindow(); | 24 ~SkOSWindow(); |
25 | 25 |
26 enum SkBackEndTypes { | 26 enum SkBackEndTypes { |
27 kNone_BackEndType, | 27 kNone_BackEndType, |
28 kNativeGL_BackEndType, | 28 kNativeGL_BackEndType, |
29 }; | 29 }; |
30 | 30 |
31 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*
info); | 31 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*
info); |
32 void detach(); | 32 void detach(); |
33 void present(); | 33 void present(); |
34 void closeWindow() override; | 34 bool makeFullscreen() { return true; } |
35 void setVsync(bool) override; | 35 void closeWindow(); |
| 36 void setVsync(bool); |
36 bool destroyRequested() { return fDestroyRequested; } | 37 bool destroyRequested() { return fDestroyRequested; } |
37 | 38 |
38 virtual void onPDFSaved(const char title[], const char desc[], const char pa
th[]); | 39 virtual void onPDFSaved(const char title[], const char desc[], const char pa
th[]); |
39 | 40 |
40 protected: | 41 protected: |
41 // overrides from SkWindow | 42 // overrides from SkWindow |
42 virtual void onHandleInval(const SkIRect&); | 43 virtual void onHandleInval(const SkIRect&); |
43 virtual void onSetTitle(const char title[]); | 44 virtual void onSetTitle(const char title[]); |
44 | 45 |
45 private: | 46 private: |
46 SkAndroidWindow fWindow; | 47 SkAndroidWindow fWindow; |
47 ANativeWindow* fNativeWindow; | 48 ANativeWindow* fNativeWindow; |
48 bool fDestroyRequested; | 49 bool fDestroyRequested; |
49 | 50 |
50 typedef SkWindow INHERITED; | 51 typedef SkWindow INHERITED; |
51 }; | 52 }; |
52 | 53 |
53 #endif | 54 #endif |
OLD | NEW |