| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 void drawFocusRing(const Path&, int width, int offset, const Color&); | 224 void drawFocusRing(const Path&, int width, int offset, const Color&); |
| 225 | 225 |
| 226 enum Edge { | 226 enum Edge { |
| 227 NoEdge = 0, | 227 NoEdge = 0, |
| 228 TopEdge = 1 << 1, | 228 TopEdge = 1 << 1, |
| 229 RightEdge = 1 << 2, | 229 RightEdge = 1 << 2, |
| 230 BottomEdge = 1 << 3, | 230 BottomEdge = 1 << 3, |
| 231 LeftEdge = 1 << 4 | 231 LeftEdge = 1 << 4 |
| 232 }; | 232 }; |
| 233 typedef unsigned Edges; | 233 typedef unsigned Edges; |
| 234 void drawInnerShadow(const FloatRoundedRect&, const Color& shadowColor, cons
t IntSize shadowOffset, int shadowBlur, int shadowSpread, Edges clippedEdges = N
oEdge); | 234 void drawInnerShadow(const FloatRoundedRect&, const Color& shadowColor, |
| 235 const FloatSize& shadowOffset, float shadowBlur, float shadowSpread, |
| 236 Edges clippedEdges = NoEdge); |
| 235 | 237 |
| 236 const SkPaint& fillPaint() const { return immutableState()->fillPaint(); } | 238 const SkPaint& fillPaint() const { return immutableState()->fillPaint(); } |
| 237 | 239 |
| 238 // ---------- Transformation methods ----------------- | 240 // ---------- Transformation methods ----------------- |
| 239 void concatCTM(const AffineTransform&); | 241 void concatCTM(const AffineTransform&); |
| 240 | 242 |
| 241 void scale(float x, float y); | 243 void scale(float x, float y); |
| 242 void rotate(float angleInRadians); | 244 void rotate(float angleInRadians); |
| 243 void translate(float x, float y); | 245 void translate(float x, float y); |
| 244 // ---------- End transformation methods ----------------- | 246 // ---------- End transformation methods ----------------- |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 365 |
| 364 float m_deviceScaleFactor; | 366 float m_deviceScaleFactor; |
| 365 | 367 |
| 366 unsigned m_printing : 1; | 368 unsigned m_printing : 1; |
| 367 unsigned m_hasMetaData : 1; | 369 unsigned m_hasMetaData : 1; |
| 368 }; | 370 }; |
| 369 | 371 |
| 370 } // namespace blink | 372 } // namespace blink |
| 371 | 373 |
| 372 #endif // GraphicsContext_h | 374 #endif // GraphicsContext_h |
| OLD | NEW |