OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CanvasRenderingContext2DState_h | 5 #ifndef CanvasRenderingContext2DState_h |
6 #define CanvasRenderingContext2DState_h | 6 #define CanvasRenderingContext2DState_h |
7 | 7 |
8 #include "core/css/CSSFontSelectorClient.h" | 8 #include "core/css/CSSFontSelectorClient.h" |
9 #include "core/css/CSSValue.h" | 9 #include "core/css/CSSValue.h" |
10 #include "modules/canvas2d/ClipList.h" | 10 #include "modules/canvas2d/ClipList.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void setFont(const Font&, CSSFontSelector*); | 77 void setFont(const Font&, CSSFontSelector*); |
78 const Font& font() const; | 78 const Font& font() const; |
79 bool hasRealizedFont() const { return m_realizedFont; } | 79 bool hasRealizedFont() const { return m_realizedFont; } |
80 void setUnparsedFont(const String& font) { m_unparsedFont = font; } | 80 void setUnparsedFont(const String& font) { m_unparsedFont = font; } |
81 const String& unparsedFont() const { return m_unparsedFont; } | 81 const String& unparsedFont() const { return m_unparsedFont; } |
82 | 82 |
83 void setFilter(CSSValue); | 83 void setFilter(CSSValue); |
84 void setUnparsedFilter(const String& filterString) { m_unparsedFilter = filt
erString; } | 84 void setUnparsedFilter(const String& filterString) { m_unparsedFilter = filt
erString; } |
85 const String& unparsedFilter() const { return m_unparsedFilter; } | 85 const String& unparsedFilter() const { return m_unparsedFilter; } |
86 SkImageFilter* getFilter(Element*, const Font&) const; | 86 SkImageFilter* getFilter(Element*, const Font&) const; |
87 bool hasFilter() const { return m_filterValue; } | 87 bool hasFilter() const { return (bool)m_filterValue; } |
88 | 88 |
89 void setStrokeStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); | 89 void setStrokeStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); |
90 CanvasStyle* strokeStyle() const { return m_strokeStyle.get(); } | 90 CanvasStyle* strokeStyle() const { return m_strokeStyle.get(); } |
91 | 91 |
92 void setFillStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); | 92 void setFillStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); |
93 CanvasStyle* fillStyle() const { return m_fillStyle.get(); } | 93 CanvasStyle* fillStyle() const { return m_fillStyle.get(); } |
94 | 94 |
95 CanvasStyle* style(PaintType) const; | 95 CanvasStyle* style(PaintType) const; |
96 | 96 |
97 enum Direction { | 97 enum Direction { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 mutable bool m_fillStyleDirty : 1; | 215 mutable bool m_fillStyleDirty : 1; |
216 mutable bool m_strokeStyleDirty : 1; | 216 mutable bool m_strokeStyleDirty : 1; |
217 mutable bool m_lineDashDirty : 1; | 217 mutable bool m_lineDashDirty : 1; |
218 | 218 |
219 ClipList m_clipList; | 219 ClipList m_clipList; |
220 }; | 220 }; |
221 | 221 |
222 } // blink | 222 } // blink |
223 | 223 |
224 #endif | 224 #endif |
OLD | NEW |