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

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

Issue 2326633002: Adds filter support for offscreen canvas (Closed)
Patch Set: Working version of filters on offscreen canvas Created 4 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
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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 double m_globalAlpha; 204 double m_globalAlpha;
205 AffineTransform m_transform; 205 AffineTransform m_transform;
206 Vector<double> m_lineDash; 206 Vector<double> m_lineDash;
207 double m_lineDashOffset; 207 double m_lineDashOffset;
208 208
209 String m_unparsedFont; 209 String m_unparsedFont;
210 Font m_font; 210 Font m_font;
211 Font m_fontForFilter; 211 Font m_fontForFilter;
212 212
213 String m_unparsedFilter; 213 String m_unparsedFilter;
214 public:
214 Member<const CSSValue> m_filterValue; 215 Member<const CSSValue> m_filterValue;
215 mutable sk_sp<SkImageFilter> m_resolvedFilter; 216 mutable sk_sp<SkImageFilter> m_resolvedFilter;
216 217
217 // Text state. 218 // Text state.
218 TextAlign m_textAlign; 219 TextAlign m_textAlign;
219 TextBaseline m_textBaseline; 220 TextBaseline m_textBaseline;
220 Direction m_direction; 221 Direction m_direction;
221 222
222 bool m_realizedFont : 1; 223 bool m_realizedFont : 1;
223 bool m_isTransformInvertible : 1; 224 bool m_isTransformInvertible : 1;
224 bool m_hasClip : 1; 225 bool m_hasClip : 1;
225 bool m_hasComplexClip : 1; 226 bool m_hasComplexClip : 1;
226 mutable bool m_fillStyleDirty : 1; 227 mutable bool m_fillStyleDirty : 1;
227 mutable bool m_strokeStyleDirty : 1; 228 mutable bool m_strokeStyleDirty : 1;
228 mutable bool m_lineDashDirty : 1; 229 mutable bool m_lineDashDirty : 1;
229 230
230 bool m_imageSmoothingEnabled; 231 bool m_imageSmoothingEnabled;
231 SkFilterQuality m_imageSmoothingQuality; 232 SkFilterQuality m_imageSmoothingQuality;
232 233
233 ClipList m_clipList; 234 ClipList m_clipList;
234 }; 235 };
235 236
236 } // namespace blink 237 } // namespace blink
237 238
238 #endif 239 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698