| OLD | NEW |
| 1 // Copyright (c) 2008, Google Inc. All rights reserved. | 1 // Copyright (c) 2008, 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void setFillColor(SkColor color); | 99 void setFillColor(SkColor color); |
| 100 void setStrokeStyle(WebCore::StrokeStyle strokestyle); | 100 void setStrokeStyle(WebCore::StrokeStyle strokestyle); |
| 101 void setStrokeColor(SkColor strokecolor); | 101 void setStrokeColor(SkColor strokecolor); |
| 102 void setStrokeThickness(float thickness); | 102 void setStrokeThickness(float thickness); |
| 103 void setTextDrawingMode(int mode); | 103 void setTextDrawingMode(int mode); |
| 104 void setUseAntialiasing(bool enable); | 104 void setUseAntialiasing(bool enable); |
| 105 void setGradient(SkShader*); | 105 void setGradient(SkShader*); |
| 106 void setPattern(SkShader*); | 106 void setPattern(SkShader*); |
| 107 void setDashPathEffect(SkDashPathEffect*); | 107 void setDashPathEffect(SkDashPathEffect*); |
| 108 | 108 |
| 109 SkDrawLooper* getDrawLooper() const; |
| 109 WebCore::StrokeStyle getStrokeStyle() const; | 110 WebCore::StrokeStyle getStrokeStyle() const; |
| 110 float getStrokeThickness() const; | 111 float getStrokeThickness() const; |
| 111 int getTextDrawingMode() const; | 112 int getTextDrawingMode() const; |
| 112 | 113 |
| 113 // Paths. | 114 // Paths. |
| 114 void beginPath(); | 115 void beginPath(); |
| 115 void addPath(const SkPath& path); | 116 void addPath(const SkPath& path); |
| 116 const SkPath* currentPath() const { return &m_path; } | 117 const SkPath* currentPath() const { return &m_path; } |
| 117 | 118 |
| 118 SkColor fillColor() const; | 119 SkColor fillColor() const; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 PlatformContextSkia(const PlatformContextSkia&); | 165 PlatformContextSkia(const PlatformContextSkia&); |
| 165 void operator=(const PlatformContextSkia&); | 166 void operator=(const PlatformContextSkia&); |
| 166 | 167 |
| 167 #if defined(__linux__) | 168 #if defined(__linux__) |
| 168 // A pointer to a GDK Drawable wrapping of this Skia canvas | 169 // A pointer to a GDK Drawable wrapping of this Skia canvas |
| 169 GdkSkia* m_gdkskia; | 170 GdkSkia* m_gdkskia; |
| 170 #endif | 171 #endif |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 #endif // PlatformContextSkia_h | 174 #endif // PlatformContextSkia_h |
| OLD | NEW |