| OLD | NEW |
| 1 // Copyright (C) 2013 Google Inc. All rights reserved. | 1 // Copyright (C) 2013 Google Inc. All rights reserved. |
| 2 // | 2 // |
| 3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
| 4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
| 5 // met: | 5 // met: |
| 6 // | 6 // |
| 7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
| 8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
| 9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
| 10 // copyright notice, this list of conditions and the following disclaimer | 10 // copyright notice, this list of conditions and the following disclaimer |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 void setTextDrawingMode(TextDrawingModeFlags mode) { m_textDrawingMode = mod
e; } | 119 void setTextDrawingMode(TextDrawingModeFlags mode) { m_textDrawingMode = mod
e; } |
| 120 | 120 |
| 121 // Common shader state. | 121 // Common shader state. |
| 122 int alpha() const { return m_alpha; } | 122 int alpha() const { return m_alpha; } |
| 123 void setAlphaAsFloat(float); | 123 void setAlphaAsFloat(float); |
| 124 | 124 |
| 125 SkColorFilter* colorFilter() const { return m_colorFilter.get(); } | 125 SkColorFilter* colorFilter() const { return m_colorFilter.get(); } |
| 126 void setColorFilter(PassRefPtr<SkColorFilter>); | 126 void setColorFilter(PassRefPtr<SkColorFilter>); |
| 127 | 127 |
| 128 // Compositing control, for the CSS and Canvas compositing spec. | 128 // Compositing control, for the CSS and Canvas compositing spec. |
| 129 void setCompositeOperation(CompositeOperator, blink::WebBlendMode); | 129 void setCompositeOperation(CompositeOperator, WebBlendMode); |
| 130 CompositeOperator compositeOperator() const { return m_compositeOperator; } | 130 CompositeOperator compositeOperator() const { return m_compositeOperator; } |
| 131 blink::WebBlendMode blendMode() const { return m_blendMode; } | 131 WebBlendMode blendMode() const { return m_blendMode; } |
| 132 SkXfermode* xferMode() const { return m_xferMode.get(); } | 132 SkXfermode* xferMode() const { return m_xferMode.get(); } |
| 133 | 133 |
| 134 // Image interpolation control. | 134 // Image interpolation control. |
| 135 InterpolationQuality interpolationQuality() const { return m_interpolationQu
ality; } | 135 InterpolationQuality interpolationQuality() const { return m_interpolationQu
ality; } |
| 136 void setInterpolationQuality(InterpolationQuality); | 136 void setInterpolationQuality(InterpolationQuality); |
| 137 | 137 |
| 138 bool shouldAntialias() const { return m_shouldAntialias; } | 138 bool shouldAntialias() const { return m_shouldAntialias; } |
| 139 void setShouldAntialias(bool); | 139 void setShouldAntialias(bool); |
| 140 | 140 |
| 141 bool shouldSmoothFonts() const { return m_shouldSmoothFonts; } | 141 bool shouldSmoothFonts() const { return m_shouldSmoothFonts; } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 170 | 170 |
| 171 RefPtr<SkDrawLooper> m_looper; | 171 RefPtr<SkDrawLooper> m_looper; |
| 172 | 172 |
| 173 TextDrawingModeFlags m_textDrawingMode; | 173 TextDrawingModeFlags m_textDrawingMode; |
| 174 | 174 |
| 175 int m_alpha; | 175 int m_alpha; |
| 176 RefPtr<SkXfermode> m_xferMode; | 176 RefPtr<SkXfermode> m_xferMode; |
| 177 RefPtr<SkColorFilter> m_colorFilter; | 177 RefPtr<SkColorFilter> m_colorFilter; |
| 178 | 178 |
| 179 CompositeOperator m_compositeOperator; | 179 CompositeOperator m_compositeOperator; |
| 180 blink::WebBlendMode m_blendMode; | 180 WebBlendMode m_blendMode; |
| 181 | 181 |
| 182 InterpolationQuality m_interpolationQuality; | 182 InterpolationQuality m_interpolationQuality; |
| 183 | 183 |
| 184 uint16_t m_saveCount; | 184 uint16_t m_saveCount; |
| 185 | 185 |
| 186 bool m_shouldAntialias : 1; | 186 bool m_shouldAntialias : 1; |
| 187 bool m_shouldSmoothFonts : 1; | 187 bool m_shouldSmoothFonts : 1; |
| 188 bool m_shouldClampToSourceRect : 1; | 188 bool m_shouldClampToSourceRect : 1; |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace blink | 191 } // namespace blink |
| 192 | 192 |
| 193 #endif // GraphicsContextState_h | 193 #endif // GraphicsContextState_h |
| OLD | NEW |