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

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

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... 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"
11 #include "platform/transforms/AffineTransform.h" 11 #include "platform/transforms/AffineTransform.h"
12 #include "third_party/skia/include/core/SkRefCnt.h"
12 #include "wtf/Vector.h" 13 #include "wtf/Vector.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 class CanvasRenderingContext2D; 17 class CanvasRenderingContext2D;
17 class CanvasStyle; 18 class CanvasStyle;
18 class CSSValue; 19 class CSSValue;
19 class Element; 20 class Element;
20 21
21 class CanvasRenderingContext2DState final : public GarbageCollectedFinalized<Can vasRenderingContext2DState>, public CSSFontSelectorClient { 22 class CanvasRenderingContext2DState final : public GarbageCollectedFinalized<Can vasRenderingContext2DState>, public CSSFontSelectorClient {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 Member<CanvasStyle> m_strokeStyle; 188 Member<CanvasStyle> m_strokeStyle;
188 Member<CanvasStyle> m_fillStyle; 189 Member<CanvasStyle> m_fillStyle;
189 190
190 mutable SkPaint m_strokePaint; 191 mutable SkPaint m_strokePaint;
191 mutable SkPaint m_fillPaint; 192 mutable SkPaint m_fillPaint;
192 mutable SkPaint m_imagePaint; 193 mutable SkPaint m_imagePaint;
193 194
194 FloatSize m_shadowOffset; 195 FloatSize m_shadowOffset;
195 double m_shadowBlur; 196 double m_shadowBlur;
196 SkColor m_shadowColor; 197 SkColor m_shadowColor;
197 mutable RefPtr<SkDrawLooper> m_emptyDrawLooper; 198 mutable sk_sp<SkDrawLooper> m_emptyDrawLooper;
198 mutable RefPtr<SkDrawLooper> m_shadowOnlyDrawLooper; 199 mutable sk_sp<SkDrawLooper> m_shadowOnlyDrawLooper;
199 mutable RefPtr<SkDrawLooper> m_shadowAndForegroundDrawLooper; 200 mutable sk_sp<SkDrawLooper> m_shadowAndForegroundDrawLooper;
200 mutable sk_sp<SkImageFilter> m_shadowOnlyImageFilter; 201 mutable sk_sp<SkImageFilter> m_shadowOnlyImageFilter;
201 mutable sk_sp<SkImageFilter> m_shadowAndForegroundImageFilter; 202 mutable sk_sp<SkImageFilter> m_shadowAndForegroundImageFilter;
202 203
203 double m_globalAlpha; 204 double m_globalAlpha;
204 AffineTransform m_transform; 205 AffineTransform m_transform;
205 Vector<double> m_lineDash; 206 Vector<double> m_lineDash;
206 double m_lineDashOffset; 207 double m_lineDashOffset;
207 208
208 String m_unparsedFont; 209 String m_unparsedFont;
209 Font m_font; 210 Font m_font;
(...skipping 18 matching lines...) Expand all
228 229
229 bool m_imageSmoothingEnabled; 230 bool m_imageSmoothingEnabled;
230 SkFilterQuality m_imageSmoothingQuality; 231 SkFilterQuality m_imageSmoothingQuality;
231 232
232 ClipList m_clipList; 233 ClipList m_clipList;
233 }; 234 };
234 235
235 } // namespace blink 236 } // namespace blink
236 237
237 #endif 238 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698