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

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

Issue 639013003: Update old tools to allow MultiPictureDraw rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT Created 6 years, 2 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 SkASSERT(pict); 349 SkASSERT(pict);
350 if (NULL == pict) { 350 if (NULL == pict) {
351 return; 351 return;
352 } 352 }
353 353
354 SkASSERT(renderer != NULL); 354 SkASSERT(renderer != NULL);
355 if (NULL == renderer) { 355 if (NULL == renderer) {
356 return; 356 return;
357 } 357 }
358 358
359 renderer->init(pict, NULL, NULL, NULL, false); 359 renderer->init(pict, NULL, NULL, NULL, false, false);
360 360
361 renderer->setup(); 361 renderer->setup();
362 renderer->render(); 362 renderer->render();
363 renderer->resetState(true); // flush, swapBuffers and Finish 363 renderer->resetState(true); // flush, swapBuffers and Finish
364 364
365 #if 0 365 #if 0
366 // We throw this away the first batch of times to remove first time effects (such as paging in this program) 366 // We throw this away the first batch of times to remove first time effects (such as paging in this program)
367 pict->resetTimes(); 367 pict->resetTimes();
368 #endif 368 #endif
369 369
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 } 1108 }
1109 1109
1110 // NOTE(chudy): Makes first item unselectable. 1110 // NOTE(chudy): Makes first item unselectable.
1111 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( 1111 QStandardItemModel* model = qobject_cast<QStandardItemModel*>(
1112 fFilter.model()); 1112 fFilter.model());
1113 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), 1113 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(),
1114 fFilter.rootModelIndex()); 1114 fFilter.rootModelIndex());
1115 QStandardItem* firstItem = model->itemFromIndex(firstIndex); 1115 QStandardItem* firstItem = model->itemFromIndex(firstIndex);
1116 firstItem->setSelectable(false); 1116 firstItem->setSelectable(false);
1117 } 1117 }
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