diff options
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; |