Support MSAA in the picture debugger
Add radio buttons for setting the GL sample count to 0 ("off"), 4 or
16.
Change the default mode of the GL widget to MSAA4. Previous behavior
corresponded to "off".
BUG=1459
R=robertphillips@google.com
Author: kkinnunen@nvidia.com
Review URL: https://chromiumcodereview.appspot.com/21752002
git-svn-id: http://skia.googlecode.com/svn/trunk@10509 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/QT/SkSettingsWidget.h b/debugger/QT/SkSettingsWidget.h
index 1a16ed2..e5662ee 100644
--- a/debugger/QT/SkSettingsWidget.h
+++ b/debugger/QT/SkSettingsWidget.h
@@ -14,6 +14,7 @@
#include <QHBoxLayout>
#include <QTextEdit>
#include <QFrame>
+#include <QGroupBox>
#include <QLabel>
#include <QRadioButton>
#include <QCheckBox>
@@ -40,9 +41,19 @@
QRadioButton* getVisibilityButton();
#if SK_SUPPORT_GPU
- QCheckBox* getGLCheckBox() {
- return &fGLCheckBox;
+ bool isGLActive() {
+ return fGLCheckBox.isChecked();
}
+
+ int getGLSampleCount() {
+ if (fGLMSAA4On.isChecked()) {
+ return 4;
+ } else if (fGLMSAA16On.isChecked()) {
+ return 16;
+ }
+ return 0;
+ }
+
#endif
QCheckBox* getRasterCheckBox() {
@@ -61,6 +72,9 @@
void scrollingPreferences(bool isStickyActivate);
void showStyle(bool isSingleCommand);
void visibilityFilter(bool isEnabled);
+#if SK_SUPPORT_GPU
+ void glSettingsChanged();
+#endif
private:
QVBoxLayout mainFrameLayout;
@@ -101,6 +115,11 @@
QHBoxLayout fGLLayout;
QLabel fGLLabel;
QCheckBox fGLCheckBox;
+ QGroupBox fGLMSAAButtonGroup;
+ QVBoxLayout fGLMSAALayout;
+ QRadioButton fGLMSAAOff;
+ QRadioButton fGLMSAA4On;
+ QRadioButton fGLMSAA16On;
#endif
QFrame fZoomFrame;