Chromium Code Reviews| 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 bool isClipMode() const; | |
| 371 | 372 |
|
zino
2014/06/20 15:31:36
Remove getCurrentClipPath();
| |
| 372 // ---------- Transformation methods ----------------- | 373 // ---------- Transformation methods ----------------- |
| 373 // Note that the getCTM method returns only the current transform from Blink 's perspective, | 374 // 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 | 375 // 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. | 376 // for testing where a point will appear on screen or how large it will be. |
| 376 AffineTransform getCTM() const; | 377 AffineTransform getCTM() const; |
| 377 void concatCTM(const AffineTransform& affine) { concat(affineTransformToSkMa trix(affine)); } | 378 void concatCTM(const AffineTransform& affine) { concat(affineTransformToSkMa trix(affine)); } |
| 378 void setCTM(const AffineTransform& affine) { setMatrix(affineTransformToSkMa trix(affine)); } | 379 void setCTM(const AffineTransform& affine) { setMatrix(affineTransformToSkMa trix(affine)); } |
| 379 void setMatrix(const SkMatrix&); | 380 void setMatrix(const SkMatrix&); |
| 380 | 381 |
| 381 void scale(float x, float y); | 382 void scale(float x, float y); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 520 bool m_updatingControlTints : 1; | 521 bool m_updatingControlTints : 1; |
| 521 bool m_accelerated : 1; | 522 bool m_accelerated : 1; |
| 522 bool m_isCertainlyOpaque : 1; | 523 bool m_isCertainlyOpaque : 1; |
| 523 bool m_printing : 1; | 524 bool m_printing : 1; |
| 524 bool m_antialiasHairlineImages : 1; | 525 bool m_antialiasHairlineImages : 1; |
| 525 }; | 526 }; |
| 526 | 527 |
| 527 } // namespace WebCore | 528 } // namespace WebCore |
| 528 | 529 |
| 529 #endif // GraphicsContext_h | 530 #endif // GraphicsContext_h |
| OLD | NEW |