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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 LeftEdge = 1 << 4 | 362 LeftEdge = 1 << 4 |
363 }; | 363 }; |
364 typedef unsigned Edges; | 364 typedef unsigned Edges; |
365 void drawInnerShadow(const RoundedRect&, const Color& shadowColor, const Int
Size shadowOffset, int shadowBlur, int shadowSpread, Edges clippedEdges = NoEdge
); | 365 void drawInnerShadow(const RoundedRect&, const Color& shadowColor, const Int
Size shadowOffset, int shadowBlur, int shadowSpread, Edges clippedEdges = NoEdge
); |
366 | 366 |
367 // This clip function is used only by <canvas> code. It allows | 367 // This clip function is used only by <canvas> code. It allows |
368 // implementations to handle clipping on the canvas differently since | 368 // implementations to handle clipping on the canvas differently since |
369 // the discipline is different. | 369 // the discipline is different. |
370 void canvasClip(const Path&, WindRule = RULE_EVENODD); | 370 void canvasClip(const Path&, WindRule = RULE_EVENODD); |
371 void clipOut(const Path&); | 371 void clipOut(const Path&); |
| 372 Path getCurrentClipPath(const Path&); |
372 | 373 |
373 // ---------- Transformation methods ----------------- | 374 // ---------- Transformation methods ----------------- |
374 enum IncludeDeviceScale { DefinitelyIncludeDeviceScale, PossiblyIncludeDevic
eScale }; | 375 enum IncludeDeviceScale { DefinitelyIncludeDeviceScale, PossiblyIncludeDevic
eScale }; |
375 AffineTransform getCTM(IncludeDeviceScale includeScale = PossiblyIncludeDevi
ceScale) const; | 376 AffineTransform getCTM(IncludeDeviceScale includeScale = PossiblyIncludeDevi
ceScale) const; |
376 void concatCTM(const AffineTransform& affine) { concat(affineTransformToSkMa
trix(affine)); } | 377 void concatCTM(const AffineTransform& affine) { concat(affineTransformToSkMa
trix(affine)); } |
377 void setCTM(const AffineTransform& affine) { setMatrix(affineTransformToSkMa
trix(affine)); } | 378 void setCTM(const AffineTransform& affine) { setMatrix(affineTransformToSkMa
trix(affine)); } |
378 void setMatrix(const SkMatrix&); | 379 void setMatrix(const SkMatrix&); |
379 | 380 |
380 void scale(const FloatSize&); | 381 void scale(const FloatSize&); |
381 void rotate(float angleInRadians); | 382 void rotate(float angleInRadians); |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 bool m_updatingControlTints : 1; | 535 bool m_updatingControlTints : 1; |
535 bool m_accelerated : 1; | 536 bool m_accelerated : 1; |
536 bool m_isCertainlyOpaque : 1; | 537 bool m_isCertainlyOpaque : 1; |
537 bool m_printing : 1; | 538 bool m_printing : 1; |
538 bool m_antialiasHairlineImages : 1; | 539 bool m_antialiasHairlineImages : 1; |
539 }; | 540 }; |
540 | 541 |
541 } // namespace WebCore | 542 } // namespace WebCore |
542 | 543 |
543 #endif // GraphicsContext_h | 544 #endif // GraphicsContext_h |
OLD | NEW |