OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 SkXfermode::Mode = SkXfermode::kSrcOver_Mode); | 172 SkXfermode::Mode = SkXfermode::kSrcOver_Mode); |
173 | 173 |
174 // These methods write to the canvas. | 174 // These methods write to the canvas. |
175 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect | 175 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect |
176 void drawOval(const SkRect&, const SkPaint&); | 176 void drawOval(const SkRect&, const SkPaint&); |
177 void drawPath(const SkPath&, const SkPaint&); | 177 void drawPath(const SkPath&, const SkPaint&); |
178 void drawRect(const SkRect&, const SkPaint&); | 178 void drawRect(const SkRect&, const SkPaint&); |
179 | 179 |
180 void clip(const IntRect& rect) { clipRect(rect); } | 180 void clip(const IntRect& rect) { clipRect(rect); } |
181 void clip(const FloatRect& rect) { clipRect(rect); } | 181 void clip(const FloatRect& rect) { clipRect(rect); } |
182 void clipRoundedRect(const FloatRoundedRect&, SkRegion::Op = SkRegion::kInte
rsect_Op); | 182 void clipRoundedRect(const FloatRoundedRect&, SkRegion::Op = SkRegion::kInte
rsect_Op, AntiAliasingMode = AntiAliased); |
183 void clipOut(const IntRect& rect) { clipRect(rect, NotAntiAliased, SkRegion:
:kDifference_Op); } | 183 void clipOut(const IntRect& rect) { clipRect(rect, NotAntiAliased, SkRegion:
:kDifference_Op); } |
184 void clipOut(const FloatRect& rect) { clipRect(rect, NotAntiAliased, SkRegio
n::kDifference_Op); } | 184 void clipOut(const FloatRect& rect) { clipRect(rect, NotAntiAliased, SkRegio
n::kDifference_Op); } |
185 void clipOut(const Path&); | 185 void clipOut(const Path&); |
186 void clipOutRoundedRect(const FloatRoundedRect&); | 186 void clipOutRoundedRect(const FloatRoundedRect&); |
187 void clipPath(const SkPath&, AntiAliasingMode = NotAntiAliased, SkRegion::Op
= SkRegion::kIntersect_Op); | 187 void clipPath(const SkPath&, AntiAliasingMode = NotAntiAliased, SkRegion::Op
= SkRegion::kIntersect_Op); |
188 void clipPolygon(size_t numPoints, const FloatPoint*, bool antialias); | 188 void clipPolygon(size_t numPoints, const FloatPoint*, bool antialias); |
189 void clipRect(const SkRect&, AntiAliasingMode = NotAntiAliased, SkRegion::Op
= SkRegion::kIntersect_Op); | 189 void clipRect(const SkRect&, AntiAliasingMode = NotAntiAliased, SkRegion::Op
= SkRegion::kIntersect_Op); |
190 | 190 |
191 void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&); | 191 void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&); |
192 void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&, const
SkPaint&); | 192 void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&, const
SkPaint&); |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 371 |
372 float m_deviceScaleFactor; | 372 float m_deviceScaleFactor; |
373 | 373 |
374 unsigned m_printing : 1; | 374 unsigned m_printing : 1; |
375 unsigned m_hasMetaData : 1; | 375 unsigned m_hasMetaData : 1; |
376 }; | 376 }; |
377 | 377 |
378 } // namespace blink | 378 } // namespace blink |
379 | 379 |
380 #endif // GraphicsContext_h | 380 #endif // GraphicsContext_h |
OLD | NEW |