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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 void incrementSaveCount() { ++m_saveCount; } | 68 void incrementSaveCount() { ++m_saveCount; } |
69 void decrementSaveCount() { --m_saveCount; } | 69 void decrementSaveCount() { --m_saveCount; } |
70 | 70 |
71 // Stroke data | 71 // Stroke data |
72 Color strokeColor() const { return m_strokeColor; } | 72 Color strokeColor() const { return m_strokeColor; } |
73 void setStrokeColor(const Color&); | 73 void setStrokeColor(const Color&); |
74 | 74 |
75 Gradient* strokeGradient() const { return m_strokeGradient.get(); } | 75 Gradient* strokeGradient() const { return m_strokeGradient.get(); } |
76 void setStrokeGradient(const PassRefPtr<Gradient>, float); | 76 void setStrokeGradient(const PassRefPtr<Gradient>, float); |
77 | 77 |
78 const StrokeData& strokeData() const { return m_strokeData; } | 78 const StrokeData& getStrokeData() const { return m_strokeData; } |
79 void setStrokeStyle(StrokeStyle); | 79 void setStrokeStyle(StrokeStyle); |
80 void setStrokeThickness(float); | 80 void setStrokeThickness(float); |
81 void setLineCap(LineCap); | 81 void setLineCap(LineCap); |
82 void setLineJoin(LineJoin); | 82 void setLineJoin(LineJoin); |
83 void setMiterLimit(float); | 83 void setMiterLimit(float); |
84 void setLineDash(const DashArray&, float); | 84 void setLineDash(const DashArray&, float); |
85 | 85 |
86 // Fill data | 86 // Fill data |
87 Color fillColor() const { return m_fillColor; } | 87 Color fillColor() const { return m_fillColor; } |
88 void setFillColor(const Color&); | 88 void setFillColor(const Color&); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 InterpolationQuality m_interpolationQuality; | 135 InterpolationQuality m_interpolationQuality; |
136 | 136 |
137 uint16_t m_saveCount; | 137 uint16_t m_saveCount; |
138 | 138 |
139 bool m_shouldAntialias : 1; | 139 bool m_shouldAntialias : 1; |
140 }; | 140 }; |
141 | 141 |
142 } // namespace blink | 142 } // namespace blink |
143 | 143 |
144 #endif // GraphicsContextState_h | 144 #endif // GraphicsContextState_h |
OLD | NEW |