Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: debugger/QT/SkDebuggerGUI.cpp

Issue 21752002: Support MSAA in the picture debugger (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « debugger/QT/SkDebuggerGUI.h ('k') | debugger/QT/SkGLWidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkDebuggerGUI.cpp
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp
index 0f4299fb3643283bc01e417f382216ba1b6981d9..d444152eabe9007d3849a0249422d53df886accb 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -92,7 +92,7 @@ SkDebuggerGUI::SkDebuggerGUI(QWidget *parent) :
connect(&fActionClose, SIGNAL(triggered()), this, SLOT(actionClose()));
connect(fSettingsWidget.getVisibilityButton(), SIGNAL(toggled(bool)), this, SLOT(actionCommandFilter()));
#if SK_SUPPORT_GPU
- connect(fSettingsWidget.getGLCheckBox(), SIGNAL(toggled(bool)), this, SLOT(actionGLWidget(bool)));
+ connect(&fSettingsWidget, SIGNAL(glSettingsChanged()), this, SLOT(actionGLWidget()));
#endif
connect(fSettingsWidget.getRasterCheckBox(), SIGNAL(toggled(bool)), this, SLOT(actionRasterWidget(bool)));
connect(fSettingsWidget.getOverdrawVizCheckBox(), SIGNAL(toggled(bool)), this, SLOT(actionOverdrawVizWidget(bool)));
@@ -360,8 +360,9 @@ void SkDebuggerGUI::actionProfile() {
renderer = SkNEW(sk_tools::SimplePictureRenderer);
#if SK_SUPPORT_GPU
- if (Qt::Checked == fSettingsWidget.getGLCheckBox()->checkState()) {
+ if (fSettingsWidget.isGLActive()) {
renderer->setDeviceType(sk_tools::PictureRenderer::kGPU_DeviceType);
+ renderer->setSampleCount(fSettingsWidget.getGLSampleCount());
}
#endif
@@ -459,7 +460,11 @@ void SkDebuggerGUI::actionDelete() {
}
#if SK_SUPPORT_GPU
-void SkDebuggerGUI::actionGLWidget(bool isToggled) {
+void SkDebuggerGUI::actionGLWidget() {
+ bool isToggled = fSettingsWidget.isGLActive();
+ if (isToggled) {
+ fCanvasWidget.setGLSampleCount(fSettingsWidget.getGLSampleCount());
+ }
fCanvasWidget.setWidgetVisibility(SkCanvasWidget::kGPU_WidgetType, !isToggled);
}
#endif
« no previous file with comments | « debugger/QT/SkDebuggerGUI.h ('k') | debugger/QT/SkGLWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698