2011-05-31 17:10:21 +00:00
|
|
|
/*
|
2011-07-28 14:26:00 +00:00
|
|
|
* Copyright 2011 Skia
|
2011-05-31 17:10:21 +00:00
|
|
|
*
|
2011-07-28 14:26:00 +00:00
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
2011-05-31 17:10:21 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SkOSWindow_Android_DEFINED
|
|
|
|
#define SkOSWindow_Android_DEFINED
|
|
|
|
|
|
|
|
#include "SkWindow.h"
|
|
|
|
|
|
|
|
class SkOSWindow : public SkWindow {
|
|
|
|
public:
|
|
|
|
SkOSWindow(void*) {}
|
|
|
|
~SkOSWindow() {}
|
2012-04-02 19:24:21 +00:00
|
|
|
|
|
|
|
enum SkBackEndTypes {
|
|
|
|
kNone_BackEndType,
|
|
|
|
kNativeGL_BackEndType,
|
|
|
|
};
|
|
|
|
|
2013-12-10 20:37:41 +00:00
|
|
|
bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo* info);
|
2012-04-02 19:24:21 +00:00
|
|
|
void detach() {}
|
|
|
|
void present() {}
|
2011-06-15 16:49:08 +00:00
|
|
|
|
2011-06-21 14:44:57 +00:00
|
|
|
virtual void onPDFSaved(const char title[], const char desc[],
|
|
|
|
const char path[]);
|
|
|
|
|
2011-05-31 17:10:21 +00:00
|
|
|
protected:
|
|
|
|
// overrides from SkWindow
|
|
|
|
virtual void onHandleInval(const SkIRect&);
|
|
|
|
virtual void onSetTitle(const char title[]);
|
|
|
|
|
|
|
|
private:
|
|
|
|
typedef SkWindow INHERITED;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|