aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/views
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-05-26 13:27:48 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-05-26 13:27:48 +0000
commitc3a8c5fb385dca5c57f8002e5331360f21c1a61f (patch)
treea462be18d53ccada7dc9ca0036c793c20f8d0558 /include/views
parent437f35e5ec24467ba302e0e8113f882a76a690ee (diff)
create offscreen surface so we can set its RGB ordering to match our internals
git-svn-id: http://skia.googlecode.com/svn/trunk@187 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/views')
-rw-r--r--include/views/SkOSWindow_SDL.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/views/SkOSWindow_SDL.h b/include/views/SkOSWindow_SDL.h
index f2a6b32d12..167461b2d3 100644
--- a/include/views/SkOSWindow_SDL.h
+++ b/include/views/SkOSWindow_SDL.h
@@ -22,7 +22,8 @@
class SkOSWindow : public SkWindow {
public:
- SkOSWindow(void* surface);
+ SkOSWindow(void* screen);
+ virtual ~SkOSWindow();
static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay);
@@ -36,6 +37,7 @@ protected:
virtual void onSetTitle(const char[]);
private:
+ SDL_Surface* fScreen;
SDL_Surface* fSurface;
void doDraw();