blob: 22960236d32e57f3b8bd9194938f9709881731a2 [file] [log] [blame]
borenet@google.com7158e6a2012-11-01 17:43:44 +00001
2/*
3 * Copyright 2012 Skia
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9
10#ifndef SkOSWindow_NaCl_DEFINED
11#define SkOSWindow_NaCl_DEFINED
12
13#include "SkWindow.h"
14
15class SkIRect;
16
17class SkOSWindow : public SkWindow {
18public:
19 SkOSWindow(void*) {}
20 ~SkOSWindow() {}
21
22 enum SkBackEndTypes {
23 kNone_BackEndType,
24 kNativeGL_BackEndType,
25 };
26
bsalomon@google.com64cc8102013-03-05 20:06:05 +000027 struct AttachmentInfo {
28 int fSampleCount;
29 int fStencilBits;
30 };
31
32 bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */, AttachmentInfo* info) {
33 info->fSampleCount = 0;
34 info->fStencilBits = 0;
borenet@google.com7158e6a2012-11-01 17:43:44 +000035 return true;
36 }
37 void detach() {}
38 void present() {}
39
40 virtual void onPDFSaved(const char title[], const char desc[],
41 const char path[]);
42
43protected:
44 // overrides from SkWindow
45 virtual void onHandleInval(const SkIRect&);
46 virtual void onSetTitle(const char title[]);
47
48private:
49 typedef SkWindow INHERITED;
50};
51
52#endif