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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // setTransform returns true iff transform is invertible; | 68 // setTransform returns true iff transform is invertible; |
69 void setTransform(const AffineTransform&); | 69 void setTransform(const AffineTransform&); |
70 void resetTransform(); | 70 void resetTransform(); |
71 AffineTransform transform() const { return m_transform; } | 71 AffineTransform transform() const { return m_transform; } |
72 bool isTransformInvertible() const { return m_isTransformInvertible; } | 72 bool isTransformInvertible() const { return m_isTransformInvertible; } |
73 | 73 |
74 void clipPath(const SkPath&, AntiAliasingMode); | 74 void clipPath(const SkPath&, AntiAliasingMode); |
75 bool hasClip() const { return m_hasClip; } | 75 bool hasClip() const { return m_hasClip; } |
76 bool hasComplexClip() const { return m_hasComplexClip; } | 76 bool hasComplexClip() const { return m_hasComplexClip; } |
77 void playbackClips(SkCanvas* canvas) const { m_clipList.playback(canvas); } | 77 void playbackClips(SkCanvas* canvas) const { m_clipList.playback(canvas); } |
78 SkPath intersectPathWithClip(const SkPath& path) const { return m_clipList.i
ntersectPathWithClip(path); } | 78 const SkPath& getCurrentClipPath() const { return m_clipList.getCurrentClipP
ath(); } |
79 | 79 |
80 void setFont(const Font&, CSSFontSelector*); | 80 void setFont(const Font&, CSSFontSelector*); |
81 const Font& font() const; | 81 const Font& font() const; |
82 bool hasRealizedFont() const { return m_realizedFont; } | 82 bool hasRealizedFont() const { return m_realizedFont; } |
83 void setUnparsedFont(const String& font) { m_unparsedFont = font; } | 83 void setUnparsedFont(const String& font) { m_unparsedFont = font; } |
84 const String& unparsedFont() const { return m_unparsedFont; } | 84 const String& unparsedFont() const { return m_unparsedFont; } |
85 | 85 |
86 void setFilter(PassRefPtrWillBeRawPtr<CSSValue>); | 86 void setFilter(PassRefPtrWillBeRawPtr<CSSValue>); |
87 void setUnparsedFilter(const String& filterString) { m_unparsedFilter = filt
erString; } | 87 void setUnparsedFilter(const String& filterString) { m_unparsedFilter = filt
erString; } |
88 const String& unparsedFilter() const { return m_unparsedFilter; } | 88 const String& unparsedFilter() const { return m_unparsedFilter; } |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 226 |
227 bool m_imageSmoothingEnabled; | 227 bool m_imageSmoothingEnabled; |
228 SkFilterQuality m_imageSmoothingQuality; | 228 SkFilterQuality m_imageSmoothingQuality; |
229 | 229 |
230 ClipList m_clipList; | 230 ClipList m_clipList; |
231 }; | 231 }; |
232 | 232 |
233 } // namespace blink | 233 } // namespace blink |
234 | 234 |
235 #endif | 235 #endif |
OLD | NEW |