2011-07-28 14:26:00 +00:00
|
|
|
|
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
|
|
|
*/
|
|
|
|
|
2011-07-28 14:26:00 +00:00
|
|
|
|
2011-05-31 17:10:21 +00:00
|
|
|
#ifndef SkOSWindow_Android_DEFINED
|
|
|
|
#define SkOSWindow_Android_DEFINED
|
|
|
|
|
|
|
|
#include "SkWindow.h"
|
|
|
|
|
2011-06-15 16:49:08 +00:00
|
|
|
class SkIRect;
|
2011-06-13 16:58:40 +00:00
|
|
|
|
2011-05-31 17:10:21 +00:00
|
|
|
class SkOSWindow : public SkWindow {
|
|
|
|
public:
|
|
|
|
SkOSWindow(void*) {}
|
|
|
|
~SkOSWindow() {}
|
2012-04-02 19:24:21 +00:00
|
|
|
|
|
|
|
enum SkBackEndTypes {
|
|
|
|
kNone_BackEndType,
|
|
|
|
kNativeGL_BackEndType,
|
|
|
|
};
|
|
|
|
|
2012-04-06 20:13:38 +00:00
|
|
|
bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */) {
|
|
|
|
return true;
|
|
|
|
}
|
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
|
|
|
|
|