Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 | |
|
Justin Novosad
2016/10/03 18:13:11
Sentence should end with period.
| |
| 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 Loading... | |
| 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 |
| OLD | NEW |