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

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

Issue 1179143003: SP: antialias images regardless of CTM. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void concatCTM(const AffineTransform&); 273 void concatCTM(const AffineTransform&);
274 void setCTM(const AffineTransform&); 274 void setCTM(const AffineTransform&);
275 void setMatrix(const SkMatrix&); 275 void setMatrix(const SkMatrix&);
276 276
277 void scale(float x, float y); 277 void scale(float x, float y);
278 void rotate(float angleInRadians); 278 void rotate(float angleInRadians);
279 void translate(float x, float y); 279 void translate(float x, float y);
280 // ---------- End transformation methods ----------------- 280 // ---------- End transformation methods -----------------
281 281
282 SkFilterQuality computeFilterQuality(Image*, const FloatRect& dest, const Fl oatRect& src) const; 282 SkFilterQuality computeFilterQuality(Image*, const FloatRect& dest, const Fl oatRect& src) const;
283 bool shouldAntialiasImages() { return shouldAntialias() && !getTotalMatrix() .rectStaysRect();} 283 bool shouldAntialiasImages() { return shouldAntialias(); }
f(malita) 2015/06/15 16:17:48 We might as well drop shouldAntialiasImages() at t
284 284
285 // URL drawing 285 // URL drawing
286 void setURLForRect(const KURL&, const IntRect&); 286 void setURLForRect(const KURL&, const IntRect&);
287 void setURLFragmentForRect(const String& name, const IntRect&); 287 void setURLFragmentForRect(const String& name, const IntRect&);
288 void addURLTargetAtPoint(const String& name, const IntPoint&); 288 void addURLTargetAtPoint(const String& name, const IntPoint&);
289 289
290 static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, floa t strokeWidth, StrokeStyle); 290 static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, floa t strokeWidth, StrokeStyle);
291 291
292 static int focusRingOutsetExtent(int offset, int width) 292 static int focusRingOutsetExtent(int offset, int width)
293 { 293 {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 405
406 float m_deviceScaleFactor; 406 float m_deviceScaleFactor;
407 407
408 unsigned m_printing : 1; 408 unsigned m_printing : 1;
409 unsigned m_hasMetaData : 1; 409 unsigned m_hasMetaData : 1;
410 }; 410 };
411 411
412 } // namespace blink 412 } // namespace blink
413 413
414 #endif // GraphicsContext_h 414 #endif // GraphicsContext_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698