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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 void clipRoundedRect(const RoundedRect&, SkRegion::Op = SkRegion::kIntersect
_Op); | 315 void clipRoundedRect(const RoundedRect&, SkRegion::Op = SkRegion::kIntersect
_Op); |
316 void clipOut(const IntRect& rect) { clipRect(rect, NotAntiAliased, SkRegion:
:kDifference_Op); } | 316 void clipOut(const IntRect& rect) { clipRect(rect, NotAntiAliased, SkRegion:
:kDifference_Op); } |
317 void clipOut(const Path&); | 317 void clipOut(const Path&); |
318 void clipOutRoundedRect(const RoundedRect&); | 318 void clipOutRoundedRect(const RoundedRect&); |
319 void clipPath(const Path&, WindRule = RULE_EVENODD); | 319 void clipPath(const Path&, WindRule = RULE_EVENODD); |
320 void clipConvexPolygon(size_t numPoints, const FloatPoint*, bool antialias =
true); | 320 void clipConvexPolygon(size_t numPoints, const FloatPoint*, bool antialias =
true); |
321 void clipRect(const SkRect&, AntiAliasingMode = NotAntiAliased, SkRegion::Op
= SkRegion::kIntersect_Op); | 321 void clipRect(const SkRect&, AntiAliasingMode = NotAntiAliased, SkRegion::Op
= SkRegion::kIntersect_Op); |
322 // This clip function is used only by <canvas> code. It allows | 322 // This clip function is used only by <canvas> code. It allows |
323 // implementations to handle clipping on the canvas differently since | 323 // implementations to handle clipping on the canvas differently since |
324 // the discipline is different. | 324 // the discipline is different. |
325 void canvasClip(const Path&, WindRule = RULE_EVENODD); | 325 void canvasClip(const Path&, WindRule = RULE_EVENODD, AntiAliasingMode = Not
AntiAliased); |
326 | 326 |
327 void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&); | 327 void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&); |
328 void drawEmphasisMarks(const Font&, const TextRunPaintInfo&, const AtomicStr
ing& mark, const FloatPoint&); | 328 void drawEmphasisMarks(const Font&, const TextRunPaintInfo&, const AtomicStr
ing& mark, const FloatPoint&); |
329 void drawBidiText(const Font&, const TextRunPaintInfo&, const FloatPoint&, F
ont::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady); | 329 void drawBidiText(const Font&, const TextRunPaintInfo&, const FloatPoint&, F
ont::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady); |
330 void drawHighlightForText(const Font&, const TextRun&, const FloatPoint&, in
t h, const Color& backgroundColor, int from = 0, int to = -1); | 330 void drawHighlightForText(const Font&, const TextRun&, const FloatPoint&, in
t h, const Color& backgroundColor, int from = 0, int to = -1); |
331 | 331 |
332 void drawLineForText(const FloatPoint&, float width, bool printing); | 332 void drawLineForText(const FloatPoint&, float width, bool printing); |
333 enum DocumentMarkerLineStyle { | 333 enum DocumentMarkerLineStyle { |
334 DocumentMarkerSpellingLineStyle, | 334 DocumentMarkerSpellingLineStyle, |
335 DocumentMarkerGrammarLineStyle | 335 DocumentMarkerGrammarLineStyle |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 bool m_accelerated : 1; | 541 bool m_accelerated : 1; |
542 bool m_isCertainlyOpaque : 1; | 542 bool m_isCertainlyOpaque : 1; |
543 bool m_printing : 1; | 543 bool m_printing : 1; |
544 bool m_antialiasHairlineImages : 1; | 544 bool m_antialiasHairlineImages : 1; |
545 bool m_shouldSmoothFonts : 1; | 545 bool m_shouldSmoothFonts : 1; |
546 }; | 546 }; |
547 | 547 |
548 } // namespace blink | 548 } // namespace blink |
549 | 549 |
550 #endif // GraphicsContext_h | 550 #endif // GraphicsContext_h |
OLD | NEW |