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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 LeftEdge = 1 << 4 | 361 LeftEdge = 1 << 4 |
362 }; | 362 }; |
363 typedef unsigned Edges; | 363 typedef unsigned Edges; |
364 void drawInnerShadow(const RoundedRect&, const Color& shadowColor, const Int
Size shadowOffset, int shadowBlur, int shadowSpread, Edges clippedEdges = NoEdge
); | 364 void drawInnerShadow(const RoundedRect&, const Color& shadowColor, const Int
Size shadowOffset, int shadowBlur, int shadowSpread, Edges clippedEdges = NoEdge
); |
365 | 365 |
366 // This clip function is used only by <canvas> code. It allows | 366 // This clip function is used only by <canvas> code. It allows |
367 // implementations to handle clipping on the canvas differently since | 367 // implementations to handle clipping on the canvas differently since |
368 // the discipline is different. | 368 // the discipline is different. |
369 void canvasClip(const Path&, WindRule = RULE_EVENODD); | 369 void canvasClip(const Path&, WindRule = RULE_EVENODD); |
370 void clipOut(const Path&); | 370 void clipOut(const Path&); |
| 371 Path getCurrentClipPath() const; |
| 372 bool isClipMode() const; |
371 | 373 |
372 // ---------- Transformation methods ----------------- | 374 // ---------- Transformation methods ----------------- |
373 // Note that the getCTM method returns only the current transform from Blink
's perspective, | 375 // Note that the getCTM method returns only the current transform from Blink
's perspective, |
374 // which is not the final transform used to place content on screen. It cann
ot be relied upon | 376 // which is not the final transform used to place content on screen. It cann
ot be relied upon |
375 // for testing where a point will appear on screen or how large it will be. | 377 // for testing where a point will appear on screen or how large it will be. |
376 AffineTransform getCTM() const; | 378 AffineTransform getCTM() const; |
377 void concatCTM(const AffineTransform& affine) { concat(affineTransformToSkMa
trix(affine)); } | 379 void concatCTM(const AffineTransform& affine) { concat(affineTransformToSkMa
trix(affine)); } |
378 void setCTM(const AffineTransform& affine) { setMatrix(affineTransformToSkMa
trix(affine)); } | 380 void setCTM(const AffineTransform& affine) { setMatrix(affineTransformToSkMa
trix(affine)); } |
379 void setMatrix(const SkMatrix&); | 381 void setMatrix(const SkMatrix&); |
380 | 382 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 bool m_updatingControlTints : 1; | 522 bool m_updatingControlTints : 1; |
521 bool m_accelerated : 1; | 523 bool m_accelerated : 1; |
522 bool m_isCertainlyOpaque : 1; | 524 bool m_isCertainlyOpaque : 1; |
523 bool m_printing : 1; | 525 bool m_printing : 1; |
524 bool m_antialiasHairlineImages : 1; | 526 bool m_antialiasHairlineImages : 1; |
525 }; | 527 }; |
526 | 528 |
527 } // namespace WebCore | 529 } // namespace WebCore |
528 | 530 |
529 #endif // GraphicsContext_h | 531 #endif // GraphicsContext_h |
OLD | NEW |