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

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

Issue 9328008: Merge 106663 - [Chromium] Use the current clip when marking paints as opaque (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 10 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
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Returns the fill color. The returned color has it's alpha adjusted 145 // Returns the fill color. The returned color has it's alpha adjusted
146 // by the current alpha. 146 // by the current alpha.
147 SkColor effectiveFillColor() const; 147 SkColor effectiveFillColor() const;
148 148
149 // Returns the stroke color. The returned color has it's alpha adjusted 149 // Returns the stroke color. The returned color has it's alpha adjusted
150 // by the current alpha. 150 // by the current alpha.
151 SkColor effectiveStrokeColor() const; 151 SkColor effectiveStrokeColor() const;
152 152
153 // Returns the canvas used for painting, NOT guaranteed to be non-null. 153 // Returns the canvas used for painting, NOT guaranteed to be non-null.
154 SkCanvas* canvas() { return m_canvas; } 154 SkCanvas* canvas() { return m_canvas; }
155 const SkCanvas* canvas() const { return m_canvas; }
155 156
156 InterpolationQuality interpolationQuality() const; 157 InterpolationQuality interpolationQuality() const;
157 void setInterpolationQuality(InterpolationQuality interpolationQuality); 158 void setInterpolationQuality(InterpolationQuality interpolationQuality);
158 159
159 // FIXME: This should be pushed down to GraphicsContext. 160 // FIXME: This should be pushed down to GraphicsContext.
160 void drawRect(SkRect rect); 161 void drawRect(SkRect rect);
161 162
162 // FIXME: I'm still unsure how I will serialize this call. 163 // FIXME: I'm still unsure how I will serialize this call.
163 void paintSkPaint(const SkRect&, const SkPaint&); 164 void paintSkPaint(const SkRect&, const SkPaint&);
164 165
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 IntSize m_imageResamplingHintSrcSize; 235 IntSize m_imageResamplingHintSrcSize;
235 FloatSize m_imageResamplingHintDstSize; 236 FloatSize m_imageResamplingHintDstSize;
236 bool m_printing; 237 bool m_printing;
237 bool m_deferred; 238 bool m_deferred;
238 bool m_drawingToImageBuffer; 239 bool m_drawingToImageBuffer;
239 GraphicsContext3D* m_gpuContext; 240 GraphicsContext3D* m_gpuContext;
240 }; 241 };
241 242
242 } 243 }
243 #endif // PlatformContextSkia_h 244 #endif // PlatformContextSkia_h
OLDNEW
« no previous file with comments | « Source/WebCore/platform/graphics/skia/OpaqueRegionSkia.cpp ('k') | Source/WebKit/chromium/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698