diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-30 21:09:09 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-30 21:09:09 +0000 |
commit | 1447aa3f3b9a4c23ac1fbc70c476828966980c9d (patch) | |
tree | 9eed37f50e27d70acabdd0f6fd0d9a4f80937074 /debugger/QT | |
parent | e83e994da4add978d1b7f0bc9d6df6099098a55b (diff) |
Added option of profiling GPU backend to debugger
https://codereview.appspot.com/7248045/
git-svn-id: http://skia.googlecode.com/svn/trunk@7471 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'debugger/QT')
-rw-r--r-- | debugger/QT/SkDebuggerGUI.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp index 68590787f2..a64ec9bbfe 100644 --- a/debugger/QT/SkDebuggerGUI.cpp +++ b/debugger/QT/SkDebuggerGUI.cpp @@ -386,6 +386,13 @@ void SkDebuggerGUI::actionProfile() { sk_tools::SimplePictureRenderer* renderer = NULL; renderer = SkNEW(sk_tools::SimplePictureRenderer); + +#if SK_SUPPORT_GPU + if (Qt::Checked == fSettingsWidget.getGLCheckBox()->checkState()) { + renderer->setDeviceType(sk_tools::PictureRenderer::kGPU_DeviceType); + } +#endif + #endif static const int kNumRepeats = 10; |