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

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

Issue 706363002: SkDrawCommand scrubbing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: getType -> const Created 6 years, 1 month 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/SkDebugger.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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 682
683 void SkDebuggerGUI::registerListClick(QListWidgetItem *item) { 683 void SkDebuggerGUI::registerListClick(QListWidgetItem *item) {
684 if(!fLoading) { 684 if(!fLoading) {
685 int currentRow = fListWidget.currentRow(); 685 int currentRow = fListWidget.currentRow();
686 686
687 if (currentRow != -1) { 687 if (currentRow != -1) {
688 if (!fPause) { 688 if (!fPause) {
689 fCanvasWidget.drawTo(currentRow); 689 fCanvasWidget.drawTo(currentRow);
690 fImageWidget.draw(); 690 fImageWidget.draw();
691 } 691 }
692 SkTDArray<SkString*> *currInfo = fDebugger.getCommandInfo( 692 const SkTDArray<SkString*> *currInfo = fDebugger.getCommandInfo(curr entRow);
693 currentRow);
694 693
695 /* TODO(chudy): Add command type before parameters. Rename v 694 /* TODO(chudy): Add command type before parameters. Rename v
696 * to something more informative. */ 695 * to something more informative. */
697 if (currInfo) { 696 if (currInfo) {
698 QString info; 697 QString info;
699 info.append("<b>Parameters: </b><br/>"); 698 info.append("<b>Parameters: </b><br/>");
700 for (int i = 0; i < currInfo->count(); i++) { 699 for (int i = 0; i < currInfo->count(); i++) {
701 700
702 info.append(QString((*currInfo)[i]->c_str())); 701 info.append(QString((*currInfo)[i]->c_str()));
703 info.append("<br/>"); 702 info.append("<br/>");
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 } 1107 }
1109 1108
1110 // NOTE(chudy): Makes first item unselectable. 1109 // NOTE(chudy): Makes first item unselectable.
1111 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( 1110 QStandardItemModel* model = qobject_cast<QStandardItemModel*>(
1112 fFilter.model()); 1111 fFilter.model());
1113 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), 1112 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(),
1114 fFilter.rootModelIndex()); 1113 fFilter.rootModelIndex());
1115 QStandardItem* firstItem = model->itemFromIndex(firstIndex); 1114 QStandardItem* firstItem = model->itemFromIndex(firstIndex);
1116 firstItem->setSelectable(false); 1115 firstItem->setSelectable(false);
1117 } 1116 }
OLDNEW
« no previous file with comments | « no previous file | debugger/SkDebugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698