Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Unified Diff: debugger/QT/SkSettingsWidget.cpp

Issue 21752002: Support MSAA in the picture debugger (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « debugger/QT/SkSettingsWidget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkSettingsWidget.cpp
diff --git a/debugger/QT/SkSettingsWidget.cpp b/debugger/QT/SkSettingsWidget.cpp
index 88078ea64f3dddc8cfdd31c84ad954f4fd76f730..fa619eafe501e251ae0becb5a3793856169870d8 100644
--- a/debugger/QT/SkSettingsWidget.cpp
+++ b/debugger/QT/SkSettingsWidget.cpp
@@ -67,6 +67,28 @@ SkSettingsWidget::SkSettingsWidget() : QWidget()
fGLLabel.setText("OpenGL: ");
fGLLabel.setMinimumWidth(178);
fGLLabel.setMaximumWidth(178);
+
+ fGLMSAAButtonGroup.setTitle("MSAA");
+ fGLMSAAButtonGroup.setMinimumWidth(178);
+ fGLMSAAButtonGroup.setMaximumWidth(178);
+ fGLMSAAButtonGroup.setEnabled(fGLCheckBox.isChecked());
+
+ fGLMSAAOff.setText("Off");
+ fGLMSAA4On.setText("4");
+ fGLMSAA4On.setChecked(true);
+ fGLMSAA16On.setText("16");
+
+ fGLMSAALayout.addWidget(&fGLMSAAOff);
+ fGLMSAALayout.addWidget(&fGLMSAA4On);
+ fGLMSAALayout.addWidget(&fGLMSAA16On);
+
+ fGLMSAAButtonGroup.setLayout(&fGLMSAALayout);
+
+ connect(&fGLCheckBox, SIGNAL(toggled(bool)), &fGLMSAAButtonGroup, SLOT(setEnabled(bool)));
+ connect(&fGLCheckBox, SIGNAL(toggled(bool)), this, SIGNAL(glSettingsChanged()));
+ connect(&fGLMSAAOff, SIGNAL(toggled(bool)), this, SIGNAL(glSettingsChanged()));
+ connect(&fGLMSAA4On, SIGNAL(toggled(bool)), this, SIGNAL(glSettingsChanged()));
+ connect(&fGLMSAA16On, SIGNAL(toggled(bool)), this, SIGNAL(glSettingsChanged()));
#endif
fRasterLayout.addWidget(&fRasterLabel);
@@ -86,6 +108,7 @@ SkSettingsWidget::SkSettingsWidget() : QWidget()
fCanvasLayout.addLayout(&fOverdrawVizLayout);
#if SK_SUPPORT_GPU
fCanvasLayout.addLayout(&fGLLayout);
+ fCanvasLayout.addWidget(&fGLMSAAButtonGroup);
#endif
// Command Toggle
« no previous file with comments | « debugger/QT/SkSettingsWidget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698