1 /*
2  * Copyright 2011 Skia
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkOSWindow_Android_DEFINED
9 #define SkOSWindow_Android_DEFINED
10 
11 #include "SkWindow.h"
12 
13 class SkOSWindow : public SkWindow {
14 public:
SkOSWindow(void *)15     SkOSWindow(void*) {}
~SkOSWindow()16     ~SkOSWindow() {}
17 
18     enum SkBackEndTypes {
19         kNone_BackEndType,
20         kNativeGL_BackEndType,
21     };
22 
23     bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo* info);
detach()24     void detach() {}
present()25     void present() {}
26 
27     virtual void onPDFSaved(const char title[], const char desc[],
28         const char path[]);
29 
30 protected:
31     // overrides from SkWindow
32     virtual void onHandleInval(const SkIRect&);
33     virtual void onSetTitle(const char title[]);
34 
35 private:
36     typedef SkWindow INHERITED;
37 };
38 
39 #endif
40