OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 bool shouldSmoothFonts() const { return m_paintState->m_shouldSmoothFonts; } | 150 bool shouldSmoothFonts() const { return m_paintState->m_shouldSmoothFonts; } |
151 | 151 |
152 // Turn off LCD text for the paint if not supported on this context. | 152 // Turn off LCD text for the paint if not supported on this context. |
153 void adjustTextRenderMode(SkPaint*); | 153 void adjustTextRenderMode(SkPaint*); |
154 bool couldUseLCDRenderedText(); | 154 bool couldUseLCDRenderedText(); |
155 | 155 |
156 void setTextDrawingMode(TextDrawingModeFlags mode) { mutableState()->m_textD
rawingMode = mode; } | 156 void setTextDrawingMode(TextDrawingModeFlags mode) { mutableState()->m_textD
rawingMode = mode; } |
157 TextDrawingModeFlags textDrawingMode() const { return m_paintState->m_textDr
awingMode; } | 157 TextDrawingModeFlags textDrawingMode() const { return m_paintState->m_textDr
awingMode; } |
158 | 158 |
159 void setAlpha(float alpha) { mutableState()->m_alpha = alpha;} | 159 void setAlpha(float alpha) { mutableState()->m_alpha = alpha;} |
| 160 float alpha() const { return m_paintState->m_alpha; } |
160 | 161 |
161 void setImageInterpolationQuality(InterpolationQuality quality) { mutableSta
te()->m_interpolationQuality = quality; } | 162 void setImageInterpolationQuality(InterpolationQuality quality) { mutableSta
te()->m_interpolationQuality = quality; } |
162 InterpolationQuality imageInterpolationQuality() const { return m_paintState
->m_interpolationQuality; } | 163 InterpolationQuality imageInterpolationQuality() const { return m_paintState
->m_interpolationQuality; } |
163 | 164 |
164 void setCompositeOperation(CompositeOperator, blink::WebBlendMode = blink::W
ebBlendModeNormal); | 165 void setCompositeOperation(CompositeOperator, blink::WebBlendMode = blink::W
ebBlendModeNormal); |
165 CompositeOperator compositeOperation() const { return m_paintState->m_compos
iteOperator; } | 166 CompositeOperator compositeOperation() const { return m_paintState->m_compos
iteOperator; } |
166 blink::WebBlendMode blendModeOperation() const { return m_paintState->m_blen
dMode; } | 167 blink::WebBlendMode blendModeOperation() const { return m_paintState->m_blen
dMode; } |
167 | 168 |
168 // Change the way document markers are rendered. | 169 // Change the way document markers are rendered. |
169 // Any deviceScaleFactor higher than 1.5 is enough to justify setting this f
lag. | 170 // Any deviceScaleFactor higher than 1.5 is enough to justify setting this f
lag. |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 // FIXME: Make this go away: crbug.com/236892 | 509 // FIXME: Make this go away: crbug.com/236892 |
509 bool m_updatingControlTints : 1; | 510 bool m_updatingControlTints : 1; |
510 bool m_accelerated : 1; | 511 bool m_accelerated : 1; |
511 bool m_isCertainlyOpaque : 1; | 512 bool m_isCertainlyOpaque : 1; |
512 bool m_printing : 1; | 513 bool m_printing : 1; |
513 }; | 514 }; |
514 | 515 |
515 } // namespace WebCore | 516 } // namespace WebCore |
516 | 517 |
517 #endif // GraphicsContext_h | 518 #endif // GraphicsContext_h |
OLD | NEW |