Index: debugger/QT/SkGLWidget.cpp |
diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp |
index ae3155a4a6a01098956984298ebb5e615b3fdda1..53b6fa4f6667b8f0ed91c6fd48e8251388c5f9d2 100644 |
--- a/debugger/QT/SkGLWidget.cpp |
+++ b/debugger/QT/SkGLWidget.cpp |
@@ -27,6 +27,14 @@ SkGLWidget::~SkGLWidget() { |
SkSafeUnref(fCanvas); |
} |
+void SkGLWidget::setSampleCount(int sampleCount) |
+{ |
+ QGLFormat currentFormat = format(); |
+ currentFormat.setSampleBuffers(sampleCount > 0); |
+ currentFormat.setSamples(sampleCount); |
+ setFormat(currentFormat); |
+} |
+ |
void SkGLWidget::initializeGL() { |
fCurIntf = GrGLCreateNativeInterface(); |
if (!fCurIntf) { |