OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |