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

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

Issue 1402963003: ** DO NO COMMIT ** for jake Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 void setGlobalAlpha(float); 135 void setGlobalAlpha(float);
136 float globalAlpha() const { return m_globalAlpha; } 136 float globalAlpha() const { return m_globalAlpha; }
137 137
138 void setGlobalComposite(SkXfermode::Mode); 138 void setGlobalComposite(SkXfermode::Mode);
139 SkXfermode::Mode globalComposite() const; 139 SkXfermode::Mode globalComposite() const;
140 140
141 void setImageSmoothingEnabled(bool); 141 void setImageSmoothingEnabled(bool);
142 bool imageSmoothingEnabled() const; 142 bool imageSmoothingEnabled() const;
143 143
144 void setImageSmoothingQuality(String);
145 String imageSmoothingQuality() const;
146
147 String SkFilterQuality2imageSmoothingQuality(SkFilterQuality) const;
zino 2015/10/14 07:51:36 We don't need these methods.
148 SkFilterQuality imageSmoothingQuality2SkFilterQuality(String) const;
zino 2015/10/14 07:51:36 nit: There are unnecessary blanks at the end of th
149
144 void setUnparsedStrokeColor(const String& color) { m_unparsedStrokeColor = c olor; } 150 void setUnparsedStrokeColor(const String& color) { m_unparsedStrokeColor = c olor; }
145 const String& unparsedStrokeColor() const { return m_unparsedStrokeColor; } 151 const String& unparsedStrokeColor() const { return m_unparsedStrokeColor; }
146 152
147 void setUnparsedFillColor(const String& color) { m_unparsedFillColor = color ; } 153 void setUnparsedFillColor(const String& color) { m_unparsedFillColor = color ; }
148 const String& unparsedFillColor() const { return m_unparsedFillColor; } 154 const String& unparsedFillColor() const { return m_unparsedFillColor; }
149 155
150 bool shouldDrawShadows() const; 156 bool shouldDrawShadows() const;
151 157
152 enum ImageType { 158 enum ImageType {
153 NoImage, 159 NoImage,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 mutable bool m_fillStyleDirty : 1; 222 mutable bool m_fillStyleDirty : 1;
217 mutable bool m_strokeStyleDirty : 1; 223 mutable bool m_strokeStyleDirty : 1;
218 mutable bool m_lineDashDirty : 1; 224 mutable bool m_lineDashDirty : 1;
219 225
220 ClipList m_clipList; 226 ClipList m_clipList;
221 }; 227 };
222 228
223 } // blink 229 } // blink
224 230
225 #endif 231 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698