| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 #if ENABLE(ASSERT) | 102 #if ENABLE(ASSERT) |
| 103 unsigned saveCount() const; | 103 unsigned saveCount() const; |
| 104 void disableDestructionChecks() { m_disableDestructionChecks = true; } | 104 void disableDestructionChecks() { m_disableDestructionChecks = true; } |
| 105 #endif | 105 #endif |
| 106 | 106 |
| 107 bool hasStroke() const { return strokeStyle() != NoStroke && strokeThickness
() > 0; } | 107 bool hasStroke() const { return strokeStyle() != NoStroke && strokeThickness
() > 0; } |
| 108 | 108 |
| 109 // Returns true if the clip is anything more than an intersection of rectang
les | 109 // Returns true if the clip is anything more than an intersection of rectang
les |
| 110 bool hasComplexClip() const { return immutableState()->hasComplexClip(); } | 110 bool hasComplexClip() const { return immutableState()->hasComplexClip(); } |
| 111 void setHasComplexClip() { mutableState()->setHasComplexClip(); } |
| 111 | 112 |
| 112 float strokeThickness() const { return immutableState()->strokeData().thickn
ess(); } | 113 float strokeThickness() const { return immutableState()->strokeData().thickn
ess(); } |
| 113 void setStrokeThickness(float thickness) { mutableState()->setStrokeThicknes
s(thickness); } | 114 void setStrokeThickness(float thickness) { mutableState()->setStrokeThicknes
s(thickness); } |
| 114 | 115 |
| 115 StrokeStyle strokeStyle() const { return immutableState()->strokeData().styl
e(); } | 116 StrokeStyle strokeStyle() const { return immutableState()->strokeData().styl
e(); } |
| 116 void setStrokeStyle(StrokeStyle style) { mutableState()->setStrokeStyle(styl
e); } | 117 void setStrokeStyle(StrokeStyle style) { mutableState()->setStrokeStyle(styl
e); } |
| 117 | 118 |
| 118 Color strokeColor() const { return immutableState()->strokeColor(); } | 119 Color strokeColor() const { return immutableState()->strokeColor(); } |
| 119 void setStrokeColor(const Color& color) { mutableState()->setStrokeColor(col
or); } | 120 void setStrokeColor(const Color& color) { mutableState()->setStrokeColor(col
or); } |
| 120 SkColor effectiveStrokeColor() const { return immutableState()->effectiveStr
okeColor(); } | 121 SkColor effectiveStrokeColor() const { return immutableState()->effectiveStr
okeColor(); } |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 | 509 |
| 509 unsigned m_accelerated : 1; | 510 unsigned m_accelerated : 1; |
| 510 unsigned m_isCertainlyOpaque : 1; | 511 unsigned m_isCertainlyOpaque : 1; |
| 511 unsigned m_printing : 1; | 512 unsigned m_printing : 1; |
| 512 unsigned m_antialiasHairlineImages : 1; | 513 unsigned m_antialiasHairlineImages : 1; |
| 513 }; | 514 }; |
| 514 | 515 |
| 515 } // namespace blink | 516 } // namespace blink |
| 516 | 517 |
| 517 #endif // GraphicsContext_h | 518 #endif // GraphicsContext_h |
| OLD | NEW |