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

Unified Diff: debugger/QT/SkGLWidget.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/SkGLWidget.h ('k') | debugger/QT/SkSettingsWidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « debugger/QT/SkGLWidget.h ('k') | debugger/QT/SkSettingsWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698