OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkDebuggerGUI.h" | 8 #include "SkDebuggerGUI.h" |
9 #include "SkPicture.h" | 9 #include "SkPicture.h" |
10 #include <QListWidgetItem> | 10 #include <QListWidgetItem> |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 fListWidget.setCurrentItem(item); | 195 fListWidget.setCurrentItem(item); |
196 return; | 196 return; |
197 } | 197 } |
198 } | 198 } |
199 fListWidget.setCurrentRow(fListWidget.count() - 1); | 199 fListWidget.setCurrentRow(fListWidget.count() - 1); |
200 } | 200 } |
201 | 201 |
202 void SkDebuggerGUI::actionRasterSettingsChanged() { | 202 void SkDebuggerGUI::actionRasterSettingsChanged() { |
203 fCanvasWidget.setWidgetVisibility(SkCanvasWidget::kRaster_8888_WidgetType, | 203 fCanvasWidget.setWidgetVisibility(SkCanvasWidget::kRaster_8888_WidgetType, |
204 !fSettingsWidget.isRasterEnabled()); | 204 !fSettingsWidget.isRasterEnabled()); |
| 205 fDebugger.setOverdrawViz(fSettingsWidget.isOverdrawVizEnabled()); |
205 this->updateImage(); | 206 this->updateImage(); |
206 } | 207 } |
207 | 208 |
208 void SkDebuggerGUI::actionVisualizationsChanged() { | 209 void SkDebuggerGUI::actionVisualizationsChanged() { |
209 fDebugger.setMegaViz(fSettingsWidget.isMegaVizEnabled()); | 210 fDebugger.setMegaViz(fSettingsWidget.isMegaVizEnabled()); |
210 fDebugger.setPathOps(fSettingsWidget.isPathOpsEnabled()); | 211 fDebugger.setPathOps(fSettingsWidget.isPathOpsEnabled()); |
211 fDebugger.highlightCurrentCommand(fSettingsWidget.isVisibilityFilterEnabled(
)); | 212 fDebugger.highlightCurrentCommand(fSettingsWidget.isVisibilityFilterEnabled(
)); |
212 fDebugger.setOverdrawViz(fSettingsWidget.isOverdrawVizEnabled()); | |
213 this->updateImage(); | 213 this->updateImage(); |
214 } | 214 } |
215 | 215 |
216 void SkDebuggerGUI::actionTextureFilter() { | 216 void SkDebuggerGUI::actionTextureFilter() { |
217 SkFilterQuality quality; | 217 SkFilterQuality quality; |
218 bool enabled = fSettingsWidget.getFilterOverride(&quality); | 218 bool enabled = fSettingsWidget.getFilterOverride(&quality); |
219 fDebugger.setTexFilterOverride(enabled, quality); | 219 fDebugger.setTexFilterOverride(enabled, quality); |
220 fCanvasWidget.update(); | 220 fCanvasWidget.update(); |
221 } | 221 } |
222 | 222 |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 fCanvasWidget.drawTo(fPausedRow); | 795 fCanvasWidget.drawTo(fPausedRow); |
796 } else { | 796 } else { |
797 fCanvasWidget.drawTo(fListWidget.currentRow()); | 797 fCanvasWidget.drawTo(fListWidget.currentRow()); |
798 } | 798 } |
799 } | 799 } |
800 | 800 |
801 void SkDebuggerGUI::updateHit(int newHit) { | 801 void SkDebuggerGUI::updateHit(int newHit) { |
802 fCommandHitBox.setText(QString::number(newHit)); | 802 fCommandHitBox.setText(QString::number(newHit)); |
803 } | 803 } |
804 | 804 |
OLD | NEW |