aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/QT
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-30 21:09:09 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-30 21:09:09 +0000
commit1447aa3f3b9a4c23ac1fbc70c476828966980c9d (patch)
tree9eed37f50e27d70acabdd0f6fd0d9a4f80937074 /debugger/QT
parente83e994da4add978d1b7f0bc9d6df6099098a55b (diff)
Added option of profiling GPU backend to debugger
Diffstat (limited to 'debugger/QT')
-rw-r--r--debugger/QT/SkDebuggerGUI.cpp7
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;