| 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 "SkGraphics.h" | 10 #include "SkGraphics.h" |
| 10 #include "SkImageDecoder.h" | 11 #include "SkImageDecoder.h" |
| 11 #include <QListWidgetItem> | 12 #include <QListWidgetItem> |
| 12 #include "PictureRenderer.h" | 13 #include "PictureRenderer.h" |
| 13 #include "SkPictureRecord.h" | 14 #include "SkPictureRecord.h" |
| 14 #include "SkPicturePlayback.h" | 15 #include "SkPicturePlayback.h" |
| 15 | 16 |
| 17 __SK_FORCE_IMAGE_DECODER_LINKING; |
| 18 |
| 16 #if defined(SK_BUILD_FOR_WIN32) | 19 #if defined(SK_BUILD_FOR_WIN32) |
| 17 #include "BenchSysTimer_windows.h" | 20 #include "BenchSysTimer_windows.h" |
| 18 #elif defined(SK_BUILD_FOR_MAC) | 21 #elif defined(SK_BUILD_FOR_MAC) |
| 19 #include "BenchSysTimer_mach.h" | 22 #include "BenchSysTimer_mach.h" |
| 20 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) | 23 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) |
| 21 #include "BenchSysTimer_posix.h" | 24 #include "BenchSysTimer_posix.h" |
| 22 #else | 25 #else |
| 23 #include "BenchSysTimer_c.h" | 26 #include "BenchSysTimer_c.h" |
| 24 #endif | 27 #endif |
| 25 | 28 |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 } | 1004 } |
| 1002 | 1005 |
| 1003 // NOTE(chudy): Makes first item unselectable. | 1006 // NOTE(chudy): Makes first item unselectable. |
| 1004 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( | 1007 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( |
| 1005 fFilter.model()); | 1008 fFilter.model()); |
| 1006 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), | 1009 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), |
| 1007 fFilter.rootModelIndex()); | 1010 fFilter.rootModelIndex()); |
| 1008 QStandardItem* firstItem = model->itemFromIndex(firstIndex); | 1011 QStandardItem* firstItem = model->itemFromIndex(firstIndex); |
| 1009 firstItem->setSelectable(false); | 1012 firstItem->setSelectable(false); |
| 1010 } | 1013 } |
| OLD | NEW |