Index: debugger/QT/SkDebuggerGUI.cpp |
=================================================================== |
--- debugger/QT/SkDebuggerGUI.cpp (revision 11819) |
+++ debugger/QT/SkDebuggerGUI.cpp (working copy) |
@@ -94,6 +94,7 @@ |
#if SK_SUPPORT_GPU |
connect(&fSettingsWidget, SIGNAL(glSettingsChanged()), this, SLOT(actionGLWidget())); |
#endif |
+ connect(&fSettingsWidget, SIGNAL(texFilterSettingsChanged()), this, SLOT(actionTextureFilter())); |
connect(fSettingsWidget.getRasterCheckBox(), SIGNAL(toggled(bool)), this, SLOT(actionRasterWidget(bool))); |
connect(fSettingsWidget.getOverdrawVizCheckBox(), SIGNAL(toggled(bool)), this, SLOT(actionOverdrawVizWidget(bool))); |
connect(&fActionPause, SIGNAL(toggled(bool)), this, SLOT(pauseDrawing(bool))); |
@@ -521,6 +522,13 @@ |
fCanvasWidget.update(); |
} |
+void SkDebuggerGUI::actionTextureFilter() { |
+ SkPaint::FilterLevel level; |
+ bool enabled = fSettingsWidget.getFilterOverride(&level); |
+ fDebugger.setTexFilterOverride(enabled, level); |
+ fCanvasWidget.update(); |
+} |
+ |
void SkDebuggerGUI::actionRewind() { |
fListWidget.setCurrentRow(0); |
} |