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

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

Issue 283123002: render_pictures: add --mismatchPath flag (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix SkDebuggerGUI Created 6 years, 7 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 | tools/CopyTilesRenderer.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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 SkASSERT(pict); 319 SkASSERT(pict);
320 if (NULL == pict) { 320 if (NULL == pict) {
321 return; 321 return;
322 } 322 }
323 323
324 SkASSERT(renderer != NULL); 324 SkASSERT(renderer != NULL);
325 if (NULL == renderer) { 325 if (NULL == renderer) {
326 return; 326 return;
327 } 327 }
328 328
329 renderer->init(pict, NULL, NULL, false); 329 renderer->init(pict, NULL, NULL, NULL, false);
330 330
331 renderer->setup(); 331 renderer->setup();
332 renderer->render(); 332 renderer->render();
333 renderer->resetState(true); // flush, swapBuffers and Finish 333 renderer->resetState(true); // flush, swapBuffers and Finish
334 334
335 // We throw this away the first batch of times to remove first time effects (such as paging in this program) 335 // We throw this away the first batch of times to remove first time effects (such as paging in this program)
336 pict->resetTimes(); 336 pict->resetTimes();
337 337
338 for (int i = 0; i < repeats; ++i) { 338 for (int i = 0; i < repeats; ++i) {
339 renderer->setup(); 339 renderer->setup();
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 } 1058 }
1059 1059
1060 // NOTE(chudy): Makes first item unselectable. 1060 // NOTE(chudy): Makes first item unselectable.
1061 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( 1061 QStandardItemModel* model = qobject_cast<QStandardItemModel*>(
1062 fFilter.model()); 1062 fFilter.model());
1063 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), 1063 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(),
1064 fFilter.rootModelIndex()); 1064 fFilter.rootModelIndex());
1065 QStandardItem* firstItem = model->itemFromIndex(firstIndex); 1065 QStandardItem* firstItem = model->itemFromIndex(firstIndex);
1066 firstItem->setSelectable(false); 1066 firstItem->setSelectable(false);
1067 } 1067 }
OLDNEW
« no previous file with comments | « no previous file | tools/CopyTilesRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698