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

Side by Side Diff: debugger/QT/SkDebuggerGUI.cpp

Issue 1626443002: Revert of Add gpu implementation of OverdrawXfermode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | debugger/QT/SkSettingsWidget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | debugger/QT/SkSettingsWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698