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 "modules/canvas2d/ClipList.h" | 9 #include "modules/canvas2d/ClipList.h" |
10 #include "platform/fonts/Font.h" | 10 #include "platform/fonts/Font.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 // setTransform returns true iff transform is invertible; | 67 // setTransform returns true iff transform is invertible; |
68 void setTransform(const AffineTransform&); | 68 void setTransform(const AffineTransform&); |
69 void resetTransform(); | 69 void resetTransform(); |
70 AffineTransform transform() const { return m_transform; } | 70 AffineTransform transform() const { return m_transform; } |
71 bool isTransformInvertible() const { return m_isTransformInvertible; } | 71 bool isTransformInvertible() const { return m_isTransformInvertible; } |
72 | 72 |
73 void clipPath(const SkPath&, AntiAliasingMode); | 73 void clipPath(const SkPath&, AntiAliasingMode); |
74 bool hasClip() const { return m_hasClip; } | 74 bool hasClip() const { return m_hasClip; } |
75 bool hasComplexClip() const { return m_hasComplexClip; } | 75 bool hasComplexClip() const { return m_hasComplexClip; } |
76 void playbackClips(SkCanvas* canvas) const { m_clipList.playback(canvas); } | 76 void playbackClips(SkCanvas* canvas) const { m_clipList.playback(canvas); } |
77 SkPath totalClipPath(const SkPath& path) const { return m_clipList.totalClip Path(path); } | |
Stephen White
2016/01/25 15:37:35
Naming nit: I think this function needs a verb, si
zino
2016/01/27 17:10:30
Done.
| |
77 | 78 |
78 void setFont(const Font&, CSSFontSelector*); | 79 void setFont(const Font&, CSSFontSelector*); |
79 const Font& font() const; | 80 const Font& font() const; |
80 bool hasRealizedFont() const { return m_realizedFont; } | 81 bool hasRealizedFont() const { return m_realizedFont; } |
81 void setUnparsedFont(const String& font) { m_unparsedFont = font; } | 82 void setUnparsedFont(const String& font) { m_unparsedFont = font; } |
82 const String& unparsedFont() const { return m_unparsedFont; } | 83 const String& unparsedFont() const { return m_unparsedFont; } |
83 | 84 |
84 void setFilter(PassRefPtrWillBeRawPtr<CSSValue>); | 85 void setFilter(PassRefPtrWillBeRawPtr<CSSValue>); |
85 void setUnparsedFilter(const String& filterString) { m_unparsedFilter = filt erString; } | 86 void setUnparsedFilter(const String& filterString) { m_unparsedFilter = filt erString; } |
86 const String& unparsedFilter() const { return m_unparsedFilter; } | 87 const String& unparsedFilter() const { return m_unparsedFilter; } |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 | 224 |
224 bool m_imageSmoothingEnabled; | 225 bool m_imageSmoothingEnabled; |
225 SkFilterQuality m_imageSmoothingQuality; | 226 SkFilterQuality m_imageSmoothingQuality; |
226 | 227 |
227 ClipList m_clipList; | 228 ClipList m_clipList; |
228 }; | 229 }; |
229 | 230 |
230 } // blink | 231 } // blink |
231 | 232 |
232 #endif | 233 #endif |
OLD | NEW |