c5aeccd8ba
git-svn-id: http://skia.googlecode.com/svn/trunk@1879 2bbb7eff-a529-9590-31e7-b0007b416f81
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#ifndef SkiOSDeviceManager_DEFINED
|
|
#define SkiOSDeviceManager_DEFINED
|
|
#include "SampleApp.h"
|
|
#include "SkCanvas.h"
|
|
#include "GrContext.h"
|
|
#include "GrGLInterface.h"
|
|
#include "SkGpuDevice.h"
|
|
#include "SkCGUtils.h"
|
|
#include "GrContext.h"
|
|
class SkiOSDeviceManager : public SampleWindow::DeviceManager {
|
|
public:
|
|
SkiOSDeviceManager();
|
|
virtual ~SkiOSDeviceManager();
|
|
|
|
virtual void init(SampleWindow* win);
|
|
|
|
virtual bool supportsDeviceType(SampleWindow::DeviceType dType);
|
|
virtual bool prepareCanvas(SampleWindow::DeviceType dType,
|
|
SkCanvas* canvas,
|
|
SampleWindow* win);
|
|
virtual void publishCanvas(SampleWindow::DeviceType dType,
|
|
SkCanvas* canvas,
|
|
SampleWindow* win);
|
|
|
|
virtual void windowSizeChanged(SampleWindow* win) {}
|
|
|
|
bool isUsingGL() { return usingGL; }
|
|
|
|
virtual GrContext* getGrContext() { return fGrContext; }
|
|
private:
|
|
bool usingGL;
|
|
GrContext* fGrContext;
|
|
GrRenderTarget* fGrRenderTarget;
|
|
};
|
|
|
|
#endif |