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

Unified Diff: debugger/QT/SkSettingsWidget.cpp

Issue 27716003: Add texture filtering override to debugger (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Cleaned up Created 7 years, 2 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') | debugger/SkDebugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkSettingsWidget.cpp
===================================================================
--- debugger/QT/SkSettingsWidget.cpp (revision 11819)
+++ debugger/QT/SkSettingsWidget.cpp (working copy)
@@ -91,6 +91,34 @@
connect(&fGLMSAA16On, SIGNAL(toggled(bool)), this, SIGNAL(glSettingsChanged()));
#endif
+ {
+ // set up filter buttons
+ fFilterButtonGroup.setTitle("Filtering");
+ fFilterButtonGroup.setMinimumWidth(178);
+ fFilterButtonGroup.setMaximumWidth(178);
+
+ fFilterDefault.setText("As encoded");
+ fFilterDefault.setChecked(true);
+ fFilterNone.setText("None");
+ fFilterLow.setText("Low");
+ fFilterMed.setText("Med");
+ fFilterHigh.setText("High");
+
+ fFilterLayout.addWidget(&fFilterDefault);
+ fFilterLayout.addWidget(&fFilterNone);
+ fFilterLayout.addWidget(&fFilterLow);
+ fFilterLayout.addWidget(&fFilterMed);
+ fFilterLayout.addWidget(&fFilterHigh);
+
+ fFilterButtonGroup.setLayout(&fFilterLayout);
+
+ connect(&fFilterDefault, SIGNAL(toggled(bool)), this, SIGNAL(texFilterSettingsChanged()));
+ connect(&fFilterNone, SIGNAL(toggled(bool)), this, SIGNAL(texFilterSettingsChanged()));
+ connect(&fFilterLow, SIGNAL(toggled(bool)), this, SIGNAL(texFilterSettingsChanged()));
+ connect(&fFilterMed, SIGNAL(toggled(bool)), this, SIGNAL(texFilterSettingsChanged()));
+ connect(&fFilterHigh, SIGNAL(toggled(bool)), this, SIGNAL(texFilterSettingsChanged()));
+ }
+
fRasterLayout.addWidget(&fRasterLabel);
fRasterLayout.addWidget(&fRasterCheckBox);
@@ -110,6 +138,7 @@
fCanvasLayout.addLayout(&fGLLayout);
fCanvasLayout.addWidget(&fGLMSAAButtonGroup);
#endif
+ fCanvasLayout.addWidget(&fFilterButtonGroup);
// Command Toggle
fCommandToggle.setText("Command Scrolling Preferences");
« no previous file with comments | « debugger/QT/SkSettingsWidget.h ('k') | debugger/SkDebugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698