| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Stroke. | 109 // Stroke. |
| 110 StrokeData m_strokeData; | 110 StrokeData m_strokeData; |
| 111 | 111 |
| 112 // Fill. | 112 // Fill. |
| 113 Color m_fillColor; | 113 Color m_fillColor; |
| 114 WindRule m_fillRule; | 114 WindRule m_fillRule; |
| 115 RefPtr<Gradient> m_fillGradient; | 115 RefPtr<Gradient> m_fillGradient; |
| 116 RefPtr<Pattern> m_fillPattern; | 116 RefPtr<Pattern> m_fillPattern; |
| 117 | 117 |
| 118 // Shadow. (This will need tweaking if we use draw loopers for other things.
) | 118 // Shadow. (This will need tweaking if we use draw loopers for other things.
) |
| 119 RefPtr<SkDrawLooper> m_looper; | 119 RefPtr<DrawLooper> m_looper; |
| 120 | 120 |
| 121 // Text. (See TextModeFill & friends.) | 121 // Text. (See TextModeFill & friends.) |
| 122 TextDrawingModeFlags m_textDrawingMode; | 122 TextDrawingModeFlags m_textDrawingMode; |
| 123 | 123 |
| 124 // Common shader state. | 124 // Common shader state. |
| 125 float m_alpha; | 125 float m_alpha; |
| 126 SkXfermode::Mode m_xferMode; | 126 SkXfermode::Mode m_xferMode; |
| 127 | 127 |
| 128 // Compositing control, for the CSS and Canvas compositing spec. | 128 // Compositing control, for the CSS and Canvas compositing spec. |
| 129 CompositeOperator m_compositeOperator; | 129 CompositeOperator m_compositeOperator; |
| 130 BlendMode m_blendMode; | 130 BlendMode m_blendMode; |
| 131 | 131 |
| 132 // If non-empty, the current State is clipped to this image. | 132 // If non-empty, the current State is clipped to this image. |
| 133 SkBitmap m_imageBufferClip; | 133 SkBitmap m_imageBufferClip; |
| 134 | 134 |
| 135 // If m_imageBufferClip is non-empty, this is the region the image is clippe
d to. | 135 // If m_imageBufferClip is non-empty, this is the region the image is clippe
d to. |
| 136 SkRect m_clip; | 136 SkRect m_clip; |
| 137 | 137 |
| 138 // Image interpolation control. | 138 // Image interpolation control. |
| 139 InterpolationQuality m_interpolationQuality; | 139 InterpolationQuality m_interpolationQuality; |
| 140 | 140 |
| 141 bool m_shouldAntialias : 1; | 141 bool m_shouldAntialias : 1; |
| 142 bool m_shouldSmoothFonts : 1; | 142 bool m_shouldSmoothFonts : 1; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } // namespace WebCore | 145 } // namespace WebCore |
| 146 | 146 |
| 147 #endif // GraphicsContextState_h | 147 #endif // GraphicsContextState_h |
| 148 | 148 |
| OLD | NEW |