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

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

Issue 2667363004: Fix the painting of document markers under zoom and variable DPI (Closed)
Patch Set: New baselines Created 3 years, 10 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
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 463
463 float m_deviceScaleFactor; 464 float m_deviceScaleFactor;
464 465
465 unsigned m_printing : 1; 466 unsigned m_printing : 1;
466 unsigned m_hasMetaData : 1; 467 unsigned m_hasMetaData : 1;
467 }; 468 };
468 469
469 } // namespace blink 470 } // namespace blink
470 471
471 #endif // GraphicsContext_h 472 #endif // GraphicsContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698