| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 Font::CustomFontNotReadyAction = Font::kDoNotPaintIfFontNotReady); | 252 Font::CustomFontNotReadyAction = Font::kDoNotPaintIfFontNotReady); |
| 253 void DrawHighlightForText(const Font&, | 253 void DrawHighlightForText(const Font&, |
| 254 const TextRun&, | 254 const TextRun&, |
| 255 const FloatPoint&, | 255 const FloatPoint&, |
| 256 int h, | 256 int h, |
| 257 const Color& background_color, | 257 const Color& background_color, |
| 258 int from = 0, | 258 int from = 0, |
| 259 int to = -1); | 259 int to = -1); |
| 260 | 260 |
| 261 void DrawLineForText(const FloatPoint&, float width); | 261 void DrawLineForText(const FloatPoint&, float width); |
| 262 enum DocumentMarkerLineStyle { | |
| 263 kDocumentMarkerSpellingLineStyle, | |
| 264 kDocumentMarkerGrammarLineStyle | |
| 265 }; | |
| 266 void DrawLineForDocumentMarker(const FloatPoint&, | |
| 267 float width, | |
| 268 DocumentMarkerLineStyle, | |
| 269 float zoom); | |
| 270 | 262 |
| 271 // beginLayer()/endLayer() behave like save()/restore() for CTM and clip | 263 // beginLayer()/endLayer() behave like save()/restore() for CTM and clip |
| 272 // states. Apply SkBlendMode when the layer is composited on the backdrop | 264 // states. Apply SkBlendMode when the layer is composited on the backdrop |
| 273 // (i.e. endLayer()). | 265 // (i.e. endLayer()). |
| 274 void BeginLayer(float opacity = 1.0f, | 266 void BeginLayer(float opacity = 1.0f, |
| 275 SkBlendMode = SkBlendMode::kSrcOver, | 267 SkBlendMode = SkBlendMode::kSrcOver, |
| 276 const FloatRect* = 0, | 268 const FloatRect* = 0, |
| 277 ColorFilter = kColorFilterNone, | 269 ColorFilter = kColorFilterNone, |
| 278 sk_sp<SkImageFilter> = nullptr); | 270 sk_sp<SkImageFilter> = nullptr); |
| 279 void EndLayer(); | 271 void EndLayer(); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 | 434 |
| 443 float device_scale_factor_; | 435 float device_scale_factor_; |
| 444 | 436 |
| 445 unsigned printing_ : 1; | 437 unsigned printing_ : 1; |
| 446 unsigned has_meta_data_ : 1; | 438 unsigned has_meta_data_ : 1; |
| 447 }; | 439 }; |
| 448 | 440 |
| 449 } // namespace blink | 441 } // namespace blink |
| 450 | 442 |
| 451 #endif // GraphicsContext_h | 443 #endif // GraphicsContext_h |
| OLD | NEW |