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

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

Issue 2387093002: Reflow comments in canvas-related folders (Closed)
Patch Set: More fix Created 4 years, 2 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 void setUnparsedFillColor(const String& color) { 170 void setUnparsedFillColor(const String& color) {
171 m_unparsedFillColor = color; 171 m_unparsedFillColor = color;
172 } 172 }
173 const String& unparsedFillColor() const { return m_unparsedFillColor; } 173 const String& unparsedFillColor() const { return m_unparsedFillColor; }
174 174
175 bool shouldDrawShadows() const; 175 bool shouldDrawShadows() const;
176 176
177 enum ImageType { NoImage, OpaqueImage, NonOpaqueImage }; 177 enum ImageType { NoImage, OpaqueImage, NonOpaqueImage };
178 178
179 // If paint will not be used for painting a bitmap, set bitmapOpacity to Opaqu e 179 // If paint will not be used for painting a bitmap, set bitmapOpacity to
180 // Opaque.
180 const SkPaint* getPaint(PaintType, ShadowMode, ImageType = NoImage) const; 181 const SkPaint* getPaint(PaintType, ShadowMode, ImageType = NoImage) const;
181 182
182 private: 183 private:
183 CanvasRenderingContext2DState(); 184 CanvasRenderingContext2DState();
184 CanvasRenderingContext2DState(const CanvasRenderingContext2DState&, 185 CanvasRenderingContext2DState(const CanvasRenderingContext2DState&,
185 ClipListCopyMode); 186 ClipListCopyMode);
186 187
187 void updateLineDash() const; 188 void updateLineDash() const;
188 void updateStrokeStyle() const; 189 void updateStrokeStyle() const;
189 void updateFillStyle() const; 190 void updateFillStyle() const;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 245
245 bool m_imageSmoothingEnabled; 246 bool m_imageSmoothingEnabled;
246 SkFilterQuality m_imageSmoothingQuality; 247 SkFilterQuality m_imageSmoothingQuality;
247 248
248 ClipList m_clipList; 249 ClipList m_clipList;
249 }; 250 };
250 251
251 } // namespace blink 252 } // namespace blink
252 253
253 #endif 254 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698