OLD | NEW |
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 Loading... |
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 Loading... |
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_ */ |
OLD | NEW |