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

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

Issue 185293007: Add visualization of clips to debugger (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « debugger/QT/SkDebuggerGUI.h ('k') | debugger/QT/SkSettingsWidget.h » ('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 "SkForceLinking.h" 9 #include "SkForceLinking.h"
10 #include "SkGraphics.h" 10 #include "SkGraphics.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 connect(&fActionClearBreakpoints, SIGNAL(triggered()), this, SLOT(actionClea rBreakpoints())); 90 connect(&fActionClearBreakpoints, SIGNAL(triggered()), this, SLOT(actionClea rBreakpoints()));
91 connect(&fActionClearDeletes, SIGNAL(triggered()), this, SLOT(actionClearDel etes())); 91 connect(&fActionClearDeletes, SIGNAL(triggered()), this, SLOT(actionClearDel etes()));
92 connect(&fActionClose, SIGNAL(triggered()), this, SLOT(actionClose())); 92 connect(&fActionClose, SIGNAL(triggered()), this, SLOT(actionClose()));
93 connect(&fSettingsWidget, SIGNAL(visibilityFilterChanged()), this, SLOT(acti onCommandFilter())); 93 connect(&fSettingsWidget, SIGNAL(visibilityFilterChanged()), this, SLOT(acti onCommandFilter()));
94 #if SK_SUPPORT_GPU 94 #if SK_SUPPORT_GPU
95 connect(&fSettingsWidget, SIGNAL(glSettingsChanged()), this, SLOT(actionGLWi dget())); 95 connect(&fSettingsWidget, SIGNAL(glSettingsChanged()), this, SLOT(actionGLWi dget()));
96 #endif 96 #endif
97 connect(&fSettingsWidget, SIGNAL(texFilterSettingsChanged()), this, SLOT(act ionTextureFilter())); 97 connect(&fSettingsWidget, SIGNAL(texFilterSettingsChanged()), this, SLOT(act ionTextureFilter()));
98 connect(fSettingsWidget.getRasterCheckBox(), SIGNAL(toggled(bool)), this, SL OT(actionRasterWidget(bool))); 98 connect(fSettingsWidget.getRasterCheckBox(), SIGNAL(toggled(bool)), this, SL OT(actionRasterWidget(bool)));
99 connect(fSettingsWidget.getOverdrawVizCheckBox(), SIGNAL(toggled(bool)), thi s, SLOT(actionOverdrawVizWidget(bool))); 99 connect(fSettingsWidget.getOverdrawVizCheckBox(), SIGNAL(toggled(bool)), thi s, SLOT(actionOverdrawVizWidget(bool)));
100 connect(fSettingsWidget.getMegaVizCheckBox(), SIGNAL(toggled(bool)), this, S LOT(actionMegaVizWidget(bool)));
100 connect(&fActionPause, SIGNAL(toggled(bool)), this, SLOT(pauseDrawing(bool)) ); 101 connect(&fActionPause, SIGNAL(toggled(bool)), this, SLOT(pauseDrawing(bool)) );
101 connect(&fActionCreateBreakpoint, SIGNAL(activated()), this, SLOT(toggleBrea kpoint())); 102 connect(&fActionCreateBreakpoint, SIGNAL(activated()), this, SLOT(toggleBrea kpoint()));
102 connect(&fActionShowDeletes, SIGNAL(triggered()), this, SLOT(showDeletes())) ; 103 connect(&fActionShowDeletes, SIGNAL(triggered()), this, SLOT(showDeletes())) ;
103 connect(&fCanvasWidget, SIGNAL(hitChanged(int)), this, SLOT(selectCommand(in t))); 104 connect(&fCanvasWidget, SIGNAL(hitChanged(int)), this, SLOT(selectCommand(in t)));
104 connect(&fCanvasWidget, SIGNAL(hitChanged(int)), &fSettingsWidget, SLOT(upda teHit(int))); 105 connect(&fCanvasWidget, SIGNAL(hitChanged(int)), &fSettingsWidget, SLOT(upda teHit(int)));
105 connect(&fCanvasWidget, SIGNAL(scaleFactorChanged(float)), this, SLOT(action Scale(float))); 106 connect(&fCanvasWidget, SIGNAL(scaleFactorChanged(float)), this, SLOT(action Scale(float)));
106 connect(&fCanvasWidget, SIGNAL(commandChanged(int)), &fSettingsWidget, SLOT( updateCommand(int))); 107 connect(&fCanvasWidget, SIGNAL(commandChanged(int)), &fSettingsWidget, SLOT( updateCommand(int)));
107 connect(&fActionSaveAs, SIGNAL(triggered()), this, SLOT(actionSaveAs())); 108 connect(&fActionSaveAs, SIGNAL(triggered()), this, SLOT(actionSaveAs()));
108 connect(&fActionSave, SIGNAL(triggered()), this, SLOT(actionSave())); 109 connect(&fActionSave, SIGNAL(triggered()), this, SLOT(actionSave()));
109 110
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 515
515 void SkDebuggerGUI::actionRasterWidget(bool isToggled) { 516 void SkDebuggerGUI::actionRasterWidget(bool isToggled) {
516 fCanvasWidget.setWidgetVisibility(SkCanvasWidget::kRaster_8888_WidgetType, ! isToggled); 517 fCanvasWidget.setWidgetVisibility(SkCanvasWidget::kRaster_8888_WidgetType, ! isToggled);
517 } 518 }
518 519
519 void SkDebuggerGUI::actionOverdrawVizWidget(bool isToggled) { 520 void SkDebuggerGUI::actionOverdrawVizWidget(bool isToggled) {
520 fDebugger.setOverdrawViz(isToggled); 521 fDebugger.setOverdrawViz(isToggled);
521 fCanvasWidget.update(); 522 fCanvasWidget.update();
522 } 523 }
523 524
525 void SkDebuggerGUI::actionMegaVizWidget(bool isToggled) {
526 fDebugger.setMegaViz(isToggled);
527 fCanvasWidget.update();
528 }
529
524 void SkDebuggerGUI::actionTextureFilter() { 530 void SkDebuggerGUI::actionTextureFilter() {
525 SkPaint::FilterLevel level; 531 SkPaint::FilterLevel level;
526 bool enabled = fSettingsWidget.getFilterOverride(&level); 532 bool enabled = fSettingsWidget.getFilterOverride(&level);
527 fDebugger.setTexFilterOverride(enabled, level); 533 fDebugger.setTexFilterOverride(enabled, level);
528 fCanvasWidget.update(); 534 fCanvasWidget.update();
529 } 535 }
530 536
531 void SkDebuggerGUI::actionRewind() { 537 void SkDebuggerGUI::actionRewind() {
532 fListWidget.setCurrentRow(0); 538 fListWidget.setCurrentRow(0);
533 } 539 }
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 } 1042 }
1037 1043
1038 // NOTE(chudy): Makes first item unselectable. 1044 // NOTE(chudy): Makes first item unselectable.
1039 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( 1045 QStandardItemModel* model = qobject_cast<QStandardItemModel*>(
1040 fFilter.model()); 1046 fFilter.model());
1041 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), 1047 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(),
1042 fFilter.rootModelIndex()); 1048 fFilter.rootModelIndex());
1043 QStandardItem* firstItem = model->itemFromIndex(firstIndex); 1049 QStandardItem* firstItem = model->itemFromIndex(firstIndex);
1044 firstItem->setSelectable(false); 1050 firstItem->setSelectable(false);
1045 } 1051 }
OLDNEW
« no previous file with comments | « debugger/QT/SkDebuggerGUI.h ('k') | debugger/QT/SkSettingsWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698