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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |