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

Unified Diff: debugger/QT/SkSettingsWidget.h

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/SkDebuggerGUI.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
===================================================================
--- debugger/QT/SkSettingsWidget.h (revision 11819)
+++ debugger/QT/SkSettingsWidget.h (working copy)
@@ -20,6 +20,8 @@
#include <QCheckBox>
#include <QLineEdit>
+#include "SkPaint.h"
+
/** \class SkSettingsWidget
The SettingsWidget contains multiple checkboxes and toggles for altering
@@ -56,6 +58,25 @@
#endif
+ bool getFilterOverride(SkPaint::FilterLevel* filterLevel) {
+ if (fFilterDefault.isChecked()) {
+ *filterLevel = SkPaint::kNone_FilterLevel;
+ return false;
+ }
+
+ if (fFilterNone.isChecked()) {
+ *filterLevel = SkPaint::kNone_FilterLevel;
+ } else if (fFilterLow.isChecked()) {
+ *filterLevel = SkPaint::kLow_FilterLevel;
+ } else if (fFilterMed.isChecked()) {
+ *filterLevel = SkPaint::kMedium_FilterLevel;
+ } else {
+ *filterLevel = SkPaint::kHigh_FilterLevel;
+ }
+
+ return true;
+ }
+
QCheckBox* getRasterCheckBox() {
return &fRasterCheckBox;
}
@@ -72,6 +93,7 @@
void scrollingPreferences(bool isStickyActivate);
void showStyle(bool isSingleCommand);
void visibilityFilter(bool isEnabled);
+ void texFilterSettingsChanged();
#if SK_SUPPORT_GPU
void glSettingsChanged();
#endif
@@ -122,6 +144,15 @@
QRadioButton fGLMSAA16On;
#endif
+ // for filtering group
+ QGroupBox fFilterButtonGroup;
+ QVBoxLayout fFilterLayout;
+ QRadioButton fFilterDefault;
+ QRadioButton fFilterNone;
+ QRadioButton fFilterLow;
+ QRadioButton fFilterMed;
+ QRadioButton fFilterHigh;
+
QFrame fZoomFrame;
QHBoxLayout fZoomLayout;
QLabel fZoomSetting;
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | debugger/QT/SkSettingsWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698