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

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

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 bool hasClip() const { return m_hasClip; } 73 bool hasClip() const { return m_hasClip; }
74 bool hasComplexClip() const { return m_hasComplexClip; } 74 bool hasComplexClip() const { return m_hasComplexClip; }
75 void playbackClips(SkCanvas* canvas) const { m_clipList.playback(canvas); } 75 void playbackClips(SkCanvas* canvas) const { m_clipList.playback(canvas); }
76 76
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(PassRefPtrWillBeRawPtr<CSSValue>); 83 void setFilter(PassRefPtr<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 m_filterValue; }
88 88
89 void setStrokeStyle(CanvasStyle*); 89 void setStrokeStyle(CanvasStyle*);
90 CanvasStyle* strokeStyle() const { return m_strokeStyle.get(); } 90 CanvasStyle* strokeStyle() const { return m_strokeStyle.get(); }
91 91
92 void setFillStyle(CanvasStyle*); 92 void setFillStyle(CanvasStyle*);
93 CanvasStyle* fillStyle() const { return m_fillStyle.get(); } 93 CanvasStyle* fillStyle() const { return m_fillStyle.get(); }
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 float m_globalAlpha; 194 float m_globalAlpha;
195 AffineTransform m_transform; 195 AffineTransform m_transform;
196 Vector<float> m_lineDash; 196 Vector<float> m_lineDash;
197 float m_lineDashOffset; 197 float m_lineDashOffset;
198 198
199 String m_unparsedFont; 199 String m_unparsedFont;
200 Font m_font; 200 Font m_font;
201 201
202 String m_unparsedFilter; 202 String m_unparsedFilter;
203 RefPtrWillBeMember<CSSValue> m_filterValue; 203 RefPtr<CSSValue> m_filterValue;
204 mutable RefPtr<SkImageFilter> m_resolvedFilter; 204 mutable RefPtr<SkImageFilter> m_resolvedFilter;
205 205
206 // Text state. 206 // Text state.
207 TextAlign m_textAlign; 207 TextAlign m_textAlign;
208 TextBaseline m_textBaseline; 208 TextBaseline m_textBaseline;
209 Direction m_direction; 209 Direction m_direction;
210 210
211 bool m_realizedFont : 1; 211 bool m_realizedFont : 1;
212 bool m_isTransformInvertible : 1; 212 bool m_isTransformInvertible : 1;
213 bool m_hasClip : 1; 213 bool m_hasClip : 1;
214 bool m_hasComplexClip : 1; 214 bool m_hasComplexClip : 1;
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
OLDNEW
« no previous file with comments | « Source/modules/canvas2d/CanvasRenderingContext2D.cpp ('k') | Source/modules/canvas2d/CanvasRenderingContext2DState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698