Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.h

Issue 17454: Fixing gradient problem. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2008, Google Inc. All rights reserved. 2 * Copyright (c) 2008, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void setPattern(SkShader*); 109 void setPattern(SkShader*);
110 void setDashPathEffect(SkDashPathEffect*); 110 void setDashPathEffect(SkDashPathEffect*);
111 111
112 SkDrawLooper* getDrawLooper() const; 112 SkDrawLooper* getDrawLooper() const;
113 WebCore::StrokeStyle getStrokeStyle() const; 113 WebCore::StrokeStyle getStrokeStyle() const;
114 float getStrokeThickness() const; 114 float getStrokeThickness() const;
115 int getTextDrawingMode() const; 115 int getTextDrawingMode() const;
116 116
117 void beginPath(); 117 void beginPath();
118 void addPath(const SkPath&); 118 void addPath(const SkPath&);
119 const SkPath* currentPath() const { return &m_path; } 119 const SkPath* currentPathInGlobalCoordinates() const { return &m_path; }
120 SkPath currentPathInLocalCoordinates() const;
120 121
121 SkColor fillColor() const; 122 SkColor fillColor() const;
122 123
123 skia::PlatformCanvas* canvas() { return m_canvas; } 124 skia::PlatformCanvas* canvas() { return m_canvas; }
124 125
125 // FIXME: This should be pushed down to GraphicsContext. 126 // FIXME: This should be pushed down to GraphicsContext.
126 void drawRect(SkRect rect); 127 void drawRect(SkRect rect);
127 128
128 // FIXME: I'm still unsure how I will serialize this call. 129 // FIXME: I'm still unsure how I will serialize this call.
129 void paintSkPaint(const SkRect&, const SkPaint&); 130 void paintSkPaint(const SkRect&, const SkPaint&);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Current path. 165 // Current path.
165 SkPath m_path; 166 SkPath m_path;
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698