2010-12-23 15:00:45 +00:00
|
|
|
#ifndef SkEGLContext_DEFINED
|
|
|
|
#define SkEGLContext_DEFINED
|
2010-12-21 16:26:39 +00:00
|
|
|
|
2010-12-23 15:00:45 +00:00
|
|
|
#include "SkTypes.h"
|
2010-12-21 16:26:39 +00:00
|
|
|
|
2010-12-23 15:00:45 +00:00
|
|
|
/**
|
|
|
|
* Create an offscreen opengl context
|
|
|
|
*/
|
2010-12-21 16:26:39 +00:00
|
|
|
class SkEGLContext {
|
|
|
|
public:
|
|
|
|
SkEGLContext();
|
|
|
|
~SkEGLContext();
|
|
|
|
|
|
|
|
bool init(int width, int height);
|
|
|
|
|
|
|
|
private:
|
2010-12-23 15:00:45 +00:00
|
|
|
void* fContext;
|
2010-12-21 16:26:39 +00:00
|
|
|
};
|
|
|
|
|
2010-12-23 15:00:45 +00:00
|
|
|
#endif
|