Add MSAA option to SampleApp
Review URL: http://codereview.appspot.com/5969049
git-svn-id: http://skia.googlecode.com/svn/trunk@3627 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/views/SkOSWindow_Unix.h b/include/views/SkOSWindow_Unix.h
index 384cc7b..d967579 100644
--- a/include/views/SkOSWindow_Unix.h
+++ b/include/views/SkOSWindow_Unix.h
@@ -39,10 +39,12 @@
kNativeGL_BackEndType,
};
- bool attach(SkBackEndTypes attachType);
+ bool attach(SkBackEndTypes attachType, int msaaSampleCount);
void detach();
void present();
+ int getMSAASampleCount() const { return fMSAASampleCount; }
+
//static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay);
//static bool WndProc(SkUnixWindow* w, XEvent &e);
@@ -60,10 +62,15 @@
void doPaint();
void mapWindowAndWait();
+ void closeWindow();
+ void initWindow(int newMSAASampleCount);
+
SkUnixWindow fUnixWindow;
// Needed for GL
XVisualInfo* fVi;
+ // we recreate the underlying xwindow if this changes
+ int fMSAASampleCount;
typedef SkWindow INHERITED;
};