Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(554)

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h

Issue 1628413002: asdfsdf Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 intersectPathWithClip(const SkPath& path) const { return m_clipList.i ntersectPathWithClip(path); }
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698