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 "PictureRenderer.h" | 9 #include "PictureRenderer.h" |
10 #include "SkPictureData.h" | 10 #include "SkPictureData.h" |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 } | 285 } |
286 | 286 |
287 void SkDebuggerGUI::actionVisualizationsChanged() { | 287 void SkDebuggerGUI::actionVisualizationsChanged() { |
288 fDebugger.setMegaViz(fSettingsWidget.isMegaVizEnabled()); | 288 fDebugger.setMegaViz(fSettingsWidget.isMegaVizEnabled()); |
289 fDebugger.setPathOps(fSettingsWidget.isPathOpsEnabled()); | 289 fDebugger.setPathOps(fSettingsWidget.isPathOpsEnabled()); |
290 fDebugger.highlightCurrentCommand(fSettingsWidget.isVisibilityFilterEnabled(
)); | 290 fDebugger.highlightCurrentCommand(fSettingsWidget.isVisibilityFilterEnabled(
)); |
291 this->updateImage(); | 291 this->updateImage(); |
292 } | 292 } |
293 | 293 |
294 void SkDebuggerGUI::actionTextureFilter() { | 294 void SkDebuggerGUI::actionTextureFilter() { |
295 SkPaint::FilterLevel level; | 295 SkFilterQuality quality; |
296 bool enabled = fSettingsWidget.getFilterOverride(&level); | 296 bool enabled = fSettingsWidget.getFilterOverride(&quality); |
297 fDebugger.setTexFilterOverride(enabled, level); | 297 fDebugger.setTexFilterOverride(enabled, quality); |
298 fCanvasWidget.update(); | 298 fCanvasWidget.update(); |
299 } | 299 } |
300 | 300 |
301 void SkDebuggerGUI::actionRewind() { | 301 void SkDebuggerGUI::actionRewind() { |
302 fListWidget.setCurrentRow(0); | 302 fListWidget.setCurrentRow(0); |
303 } | 303 } |
304 | 304 |
305 void SkDebuggerGUI::actionSave() { | 305 void SkDebuggerGUI::actionSave() { |
306 fFileName = fPath.toAscii().data(); | 306 fFileName = fPath.toAscii().data(); |
307 fFileName.append("/"); | 307 fFileName.append("/"); |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 fCanvasWidget.drawTo(fPausedRow); | 852 fCanvasWidget.drawTo(fPausedRow); |
853 } else { | 853 } else { |
854 fCanvasWidget.drawTo(fListWidget.currentRow()); | 854 fCanvasWidget.drawTo(fListWidget.currentRow()); |
855 } | 855 } |
856 } | 856 } |
857 | 857 |
858 void SkDebuggerGUI::updateHit(int newHit) { | 858 void SkDebuggerGUI::updateHit(int newHit) { |
859 fCommandHitBox.setText(QString::number(newHit)); | 859 fCommandHitBox.setText(QString::number(newHit)); |
860 } | 860 } |
861 | 861 |
OLD | NEW |