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

Side by Side Diff: debugger/QT/SkSettingsWidget.h

Issue 1010023002: FilterLevel -> SkFilterQuality (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | debugger/SkDebugger.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SKSETTINGSWIDGET_H_ 10 #ifndef SKSETTINGSWIDGET_H_
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool isGLActive() const { 44 bool isGLActive() const {
45 return fGLGroup.isChecked(); 45 return fGLGroup.isChecked();
46 } 46 }
47 47
48 int getGLSampleCount() const { 48 int getGLSampleCount() const {
49 return fGLMSAACombo.itemData(fGLMSAACombo.currentIndex()).toInt(); 49 return fGLMSAACombo.itemData(fGLMSAACombo.currentIndex()).toInt();
50 } 50 }
51 51
52 #endif 52 #endif
53 53
54 bool getFilterOverride(SkPaint::FilterLevel* filterLevel) const { 54 bool getFilterOverride(SkFilterQuality* filterQuality) const {
55 int index = fFilterCombo.currentIndex(); 55 int index = fFilterCombo.currentIndex();
56 *filterLevel = (SkPaint::FilterLevel)fFilterCombo.itemData(index).toUInt (); 56 *filterQuality = (SkFilterQuality)fFilterCombo.itemData(index).toUInt();
57 57
58 return index > 0; 58 return index > 0;
59 } 59 }
60 60
61 61
62 // Raster settings. 62 // Raster settings.
63 bool isRasterEnabled() { 63 bool isRasterEnabled() {
64 return fRasterGroup.isChecked(); 64 return fRasterGroup.isChecked();
65 } 65 }
66 66
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #if SK_SUPPORT_GPU 107 #if SK_SUPPORT_GPU
108 QGroupBox fGLGroup; 108 QGroupBox fGLGroup;
109 QFormLayout fGLLayout; 109 QFormLayout fGLLayout;
110 QComboBox fGLMSAACombo; 110 QComboBox fGLMSAACombo;
111 #endif 111 #endif
112 112
113 QComboBox fFilterCombo; 113 QComboBox fFilterCombo;
114 }; 114 };
115 115
116 #endif /* SKSETTINGSWIDGET_H_ */ 116 #endif /* SKSETTINGSWIDGET_H_ */
OLDNEW
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | debugger/SkDebugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698