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

Side by Side Diff: Source/platform/graphics/GraphicsContext.h

Issue 1070703002: Explicitly use SkPaint(s) in SVGInlineTextBoxPainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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) 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 void clipOut(const IntRect& rect) { clipRect(rect, NotAntiAliased, SkRegion: :kDifference_Op); } 242 void clipOut(const IntRect& rect) { clipRect(rect, NotAntiAliased, SkRegion: :kDifference_Op); }
243 void clipOut(const FloatRect& rect) { clipRect(rect, NotAntiAliased, SkRegio n::kDifference_Op); } 243 void clipOut(const FloatRect& rect) { clipRect(rect, NotAntiAliased, SkRegio n::kDifference_Op); }
244 void clipOut(const Path&); 244 void clipOut(const Path&);
245 void clipOutRoundedRect(const FloatRoundedRect&); 245 void clipOutRoundedRect(const FloatRoundedRect&);
246 void clipPath(const Path&, WindRule = RULE_EVENODD, AntiAliasingMode = AntiA liased); 246 void clipPath(const Path&, WindRule = RULE_EVENODD, AntiAliasingMode = AntiA liased);
247 void clipPath(const SkPath&, AntiAliasingMode = NotAntiAliased, SkRegion::Op = SkRegion::kIntersect_Op); 247 void clipPath(const SkPath&, AntiAliasingMode = NotAntiAliased, SkRegion::Op = SkRegion::kIntersect_Op);
248 void clipPolygon(size_t numPoints, const FloatPoint*, bool antialias); 248 void clipPolygon(size_t numPoints, const FloatPoint*, bool antialias);
249 void clipRect(const SkRect&, AntiAliasingMode = NotAntiAliased, SkRegion::Op = SkRegion::kIntersect_Op); 249 void clipRect(const SkRect&, AntiAliasingMode = NotAntiAliased, SkRegion::Op = SkRegion::kIntersect_Op);
250 250
251 void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&); 251 void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&);
252 void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&, const SkPaint&);
252 void drawEmphasisMarks(const Font&, const TextRunPaintInfo&, const AtomicStr ing& mark, const FloatPoint&); 253 void drawEmphasisMarks(const Font&, const TextRunPaintInfo&, const AtomicStr ing& mark, const FloatPoint&);
253 void drawBidiText(const Font&, const TextRunPaintInfo&, const FloatPoint&, F ont::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady); 254 void drawBidiText(const Font&, const TextRunPaintInfo&, const FloatPoint&, F ont::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady);
254 void drawHighlightForText(const Font&, const TextRun&, const FloatPoint&, in t h, const Color& backgroundColor, int from = 0, int to = -1); 255 void drawHighlightForText(const Font&, const TextRun&, const FloatPoint&, in t h, const Color& backgroundColor, int from = 0, int to = -1);
255 256
256 void drawLineForText(const FloatPoint&, float width, bool printing); 257 void drawLineForText(const FloatPoint&, float width, bool printing);
257 enum DocumentMarkerLineStyle { 258 enum DocumentMarkerLineStyle {
258 DocumentMarkerSpellingLineStyle, 259 DocumentMarkerSpellingLineStyle,
259 DocumentMarkerGrammarLineStyle 260 DocumentMarkerGrammarLineStyle
260 }; 261 };
261 void drawLineForDocumentMarker(const FloatPoint&, float width, DocumentMarke rLineStyle); 262 void drawLineForDocumentMarker(const FloatPoint&, float width, DocumentMarke rLineStyle);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 float m_deviceScaleFactor; 449 float m_deviceScaleFactor;
449 450
450 unsigned m_accelerated : 1; 451 unsigned m_accelerated : 1;
451 unsigned m_printing : 1; 452 unsigned m_printing : 1;
452 unsigned m_antialiasHairlineImages : 1; 453 unsigned m_antialiasHairlineImages : 1;
453 }; 454 };
454 455
455 } // namespace blink 456 } // namespace blink
456 457
457 #endif // GraphicsContext_h 458 #endif // GraphicsContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698