| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 int from = 0, | 263 int from = 0, |
| 264 int to = -1); | 264 int to = -1); |
| 265 | 265 |
| 266 void drawLineForText(const FloatPoint&, float width); | 266 void drawLineForText(const FloatPoint&, float width); |
| 267 enum DocumentMarkerLineStyle { | 267 enum DocumentMarkerLineStyle { |
| 268 DocumentMarkerSpellingLineStyle, | 268 DocumentMarkerSpellingLineStyle, |
| 269 DocumentMarkerGrammarLineStyle | 269 DocumentMarkerGrammarLineStyle |
| 270 }; | 270 }; |
| 271 void drawLineForDocumentMarker(const FloatPoint&, | 271 void drawLineForDocumentMarker(const FloatPoint&, |
| 272 float width, | 272 float width, |
| 273 DocumentMarkerLineStyle); | 273 DocumentMarkerLineStyle, |
| 274 float zoom); |
| 274 | 275 |
| 275 // beginLayer()/endLayer() behave like save()/restore() for CTM and clip | 276 // beginLayer()/endLayer() behave like save()/restore() for CTM and clip |
| 276 // states. Apply SkBlendMode when the layer is composited on the backdrop | 277 // states. Apply SkBlendMode when the layer is composited on the backdrop |
| 277 // (i.e. endLayer()). | 278 // (i.e. endLayer()). |
| 278 void beginLayer(float opacity = 1.0f, | 279 void beginLayer(float opacity = 1.0f, |
| 279 SkBlendMode = SkBlendMode::kSrcOver, | 280 SkBlendMode = SkBlendMode::kSrcOver, |
| 280 const FloatRect* = 0, | 281 const FloatRect* = 0, |
| 281 ColorFilter = ColorFilterNone, | 282 ColorFilter = ColorFilterNone, |
| 282 sk_sp<SkImageFilter> = nullptr); | 283 sk_sp<SkImageFilter> = nullptr); |
| 283 void endLayer(); | 284 void endLayer(); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 | 465 |
| 465 float m_deviceScaleFactor; | 466 float m_deviceScaleFactor; |
| 466 | 467 |
| 467 unsigned m_printing : 1; | 468 unsigned m_printing : 1; |
| 468 unsigned m_hasMetaData : 1; | 469 unsigned m_hasMetaData : 1; |
| 469 }; | 470 }; |
| 470 | 471 |
| 471 } // namespace blink | 472 } // namespace blink |
| 472 | 473 |
| 473 #endif // GraphicsContext_h | 474 #endif // GraphicsContext_h |
| OLD | NEW |