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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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();} | |
284 | 283 |
285 // URL drawing | 284 // URL drawing |
286 void setURLForRect(const KURL&, const IntRect&); | 285 void setURLForRect(const KURL&, const IntRect&); |
287 void setURLFragmentForRect(const String& name, const IntRect&); | 286 void setURLFragmentForRect(const String& name, const IntRect&); |
288 void addURLTargetAtPoint(const String& name, const IntPoint&); | 287 void addURLTargetAtPoint(const String& name, const IntPoint&); |
289 | 288 |
290 static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, floa
t strokeWidth, StrokeStyle); | 289 static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, floa
t strokeWidth, StrokeStyle); |
291 | 290 |
292 static int focusRingOutsetExtent(int offset, int width) | 291 static int focusRingOutsetExtent(int offset, int width) |
293 { | 292 { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 404 |
406 float m_deviceScaleFactor; | 405 float m_deviceScaleFactor; |
407 | 406 |
408 unsigned m_printing : 1; | 407 unsigned m_printing : 1; |
409 unsigned m_hasMetaData : 1; | 408 unsigned m_hasMetaData : 1; |
410 }; | 409 }; |
411 | 410 |
412 } // namespace blink | 411 } // namespace blink |
413 | 412 |
414 #endif // GraphicsContext_h | 413 #endif // GraphicsContext_h |
OLD | NEW |