| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 return m_canvas; | 84 return m_canvas; |
| 85 } | 85 } |
| 86 const SkCanvas* canvas() const { return m_canvas; } | 86 const SkCanvas* canvas() const { return m_canvas; } |
| 87 bool paintingDisabled() const { return !m_canvas; } | 87 bool paintingDisabled() const { return !m_canvas; } |
| 88 | 88 |
| 89 // ---------- State management methods ----------------- | 89 // ---------- State management methods ----------------- |
| 90 void save(); | 90 void save(); |
| 91 void restore(); | 91 void restore(); |
| 92 | 92 |
| 93 void saveLayer(const SkRect* bounds, const SkPaint*, SkCanvas::SaveFlags = S
kCanvas::kARGB_ClipLayer_SaveFlag); | 93 void saveLayer(const SkRect* bounds, const SkPaint*); |
| 94 void restoreLayer(); | 94 void restoreLayer(); |
| 95 | 95 |
| 96 float strokeThickness() const { return immutableState()->strokeData().thickn
ess(); } | 96 float strokeThickness() const { return immutableState()->strokeData().thickn
ess(); } |
| 97 void setStrokeThickness(float thickness) { mutableState()->setStrokeThicknes
s(thickness); } | 97 void setStrokeThickness(float thickness) { mutableState()->setStrokeThicknes
s(thickness); } |
| 98 | 98 |
| 99 StrokeStyle strokeStyle() const { return immutableState()->strokeData().styl
e(); } | 99 StrokeStyle strokeStyle() const { return immutableState()->strokeData().styl
e(); } |
| 100 void setStrokeStyle(StrokeStyle style) { mutableState()->setStrokeStyle(styl
e); } | 100 void setStrokeStyle(StrokeStyle style) { mutableState()->setStrokeStyle(styl
e); } |
| 101 | 101 |
| 102 Color strokeColor() const { return immutableState()->strokeData().color(); } | 102 Color strokeColor() const { return immutableState()->strokeData().color(); } |
| 103 void setStrokeColor(const Color& color) { mutableState()->setStrokeColor(col
or); } | 103 void setStrokeColor(const Color& color) { mutableState()->setStrokeColor(col
or); } |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 // FIXME: Make this go away: crbug.com/236892 | 501 // FIXME: Make this go away: crbug.com/236892 |
| 502 bool m_updatingControlTints : 1; | 502 bool m_updatingControlTints : 1; |
| 503 bool m_accelerated : 1; | 503 bool m_accelerated : 1; |
| 504 bool m_isCertainlyOpaque : 1; | 504 bool m_isCertainlyOpaque : 1; |
| 505 bool m_printing : 1; | 505 bool m_printing : 1; |
| 506 }; | 506 }; |
| 507 | 507 |
| 508 } // namespace WebCore | 508 } // namespace WebCore |
| 509 | 509 |
| 510 #endif // GraphicsContext_h | 510 #endif // GraphicsContext_h |
| OLD | NEW |