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