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

Unified Diff: debugger/QT/SkSettingsWidget.h

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/SkGLWidget.cpp ('k') | debugger/QT/SkSettingsWidget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkSettingsWidget.h
diff --git a/debugger/QT/SkSettingsWidget.h b/debugger/QT/SkSettingsWidget.h
index 1a16ed243fa62b5085d1f14dee80bb828efb297a..e5662ee875991b82cbccea22c0d36060a02bb9c4 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 @@ public:
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 @@ signals:
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 @@ private:
QHBoxLayout fGLLayout;
QLabel fGLLabel;
QCheckBox fGLCheckBox;
+ QGroupBox fGLMSAAButtonGroup;
+ QVBoxLayout fGLMSAALayout;
+ QRadioButton fGLMSAAOff;
+ QRadioButton fGLMSAA4On;
+ QRadioButton fGLMSAA16On;
#endif
QFrame fZoomFrame;
« no previous file with comments | « debugger/QT/SkGLWidget.cpp ('k') | debugger/QT/SkSettingsWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698