| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 int h, | 261 int h, |
| 262 const Color& backgroundColor, | 262 const Color& backgroundColor, |
| 263 int from = 0, | 263 int from = 0, |
| 264 int to = -1); | 264 int to = -1); |
| 265 | 265 |
| 266 int getTextIntercepts(const Font&, | 266 int getTextIntercepts(const Font&, |
| 267 const TextRunPaintInfo&, | 267 const TextRunPaintInfo&, |
| 268 const SkScalar* bounds, | 268 const SkScalar* bounds, |
| 269 SkScalar* intervals); | 269 SkScalar* intervals); |
| 270 | 270 |
| 271 void drawLineForText(const FloatPoint&, float width, bool printing); | 271 void drawLineForText(const FloatPoint&, float width); |
| 272 enum DocumentMarkerLineStyle { | 272 enum DocumentMarkerLineStyle { |
| 273 DocumentMarkerSpellingLineStyle, | 273 DocumentMarkerSpellingLineStyle, |
| 274 DocumentMarkerGrammarLineStyle | 274 DocumentMarkerGrammarLineStyle |
| 275 }; | 275 }; |
| 276 void drawLineForDocumentMarker(const FloatPoint&, | 276 void drawLineForDocumentMarker(const FloatPoint&, |
| 277 float width, | 277 float width, |
| 278 DocumentMarkerLineStyle); | 278 DocumentMarkerLineStyle); |
| 279 | 279 |
| 280 // beginLayer()/endLayer() behave like save()/restore() for CTM and clip | 280 // beginLayer()/endLayer() behave like save()/restore() for CTM and clip |
| 281 // states. Apply SkXfermode::Mode when the layer is composited on the backdrop | 281 // states. Apply SkXfermode::Mode when the layer is composited on the backdrop |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 | 468 |
| 469 float m_deviceScaleFactor; | 469 float m_deviceScaleFactor; |
| 470 | 470 |
| 471 unsigned m_printing : 1; | 471 unsigned m_printing : 1; |
| 472 unsigned m_hasMetaData : 1; | 472 unsigned m_hasMetaData : 1; |
| 473 }; | 473 }; |
| 474 | 474 |
| 475 } // namespace blink | 475 } // namespace blink |
| 476 | 476 |
| 477 #endif // GraphicsContext_h | 477 #endif // GraphicsContext_h |
| OLD | NEW |