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

Side by Side Diff: Source/platform/graphics/GraphicsContext.h

Issue 1147343003: Drop fillRule state from GraphicsContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/ObjectPainter.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. 3 * Copyright (C) 2008-2009 Torch Mobile, Inc.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void setStrokePattern(PassRefPtr<Pattern>, float alpha = 1); 115 void setStrokePattern(PassRefPtr<Pattern>, float alpha = 1);
116 116
117 Gradient* strokeGradient() const { return immutableState()->strokeGradient() ; } 117 Gradient* strokeGradient() const { return immutableState()->strokeGradient() ; }
118 void setStrokeGradient(PassRefPtr<Gradient>, float alpha = 1); 118 void setStrokeGradient(PassRefPtr<Gradient>, float alpha = 1);
119 119
120 void setLineCap(LineCap cap) { mutableState()->setLineCap(cap); } 120 void setLineCap(LineCap cap) { mutableState()->setLineCap(cap); }
121 void setLineDash(const DashArray& dashes, float dashOffset) { mutableState() ->setLineDash(dashes, dashOffset); } 121 void setLineDash(const DashArray& dashes, float dashOffset) { mutableState() ->setLineDash(dashes, dashOffset); }
122 void setLineJoin(LineJoin join) { mutableState()->setLineJoin(join); } 122 void setLineJoin(LineJoin join) { mutableState()->setLineJoin(join); }
123 void setMiterLimit(float limit) { mutableState()->setMiterLimit(limit); } 123 void setMiterLimit(float limit) { mutableState()->setMiterLimit(limit); }
124 124
125 void setFillRule(WindRule fillRule) { mutableState()->setFillRule(fillRule); }
126
127 Color fillColor() const { return immutableState()->fillColor(); } 125 Color fillColor() const { return immutableState()->fillColor(); }
128 void setFillColor(const Color& color) { mutableState()->setFillColor(color); } 126 void setFillColor(const Color& color) { mutableState()->setFillColor(color); }
129 127
130 void setFillPattern(PassRefPtr<Pattern>, float alpha = 1); 128 void setFillPattern(PassRefPtr<Pattern>, float alpha = 1);
131 129
132 void setFillGradient(PassRefPtr<Gradient>, float alpha = 1); 130 void setFillGradient(PassRefPtr<Gradient>, float alpha = 1);
133 131
134 SkDrawLooper* drawLooper() const { return immutableState()->drawLooper(); } 132 SkDrawLooper* drawLooper() const { return immutableState()->drawLooper(); }
135 133
136 SkMatrix getTotalMatrix() const; 134 SkMatrix getTotalMatrix() const;
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 float m_deviceScaleFactor; 440 float m_deviceScaleFactor;
443 441
444 unsigned m_accelerated : 1; 442 unsigned m_accelerated : 1;
445 unsigned m_printing : 1; 443 unsigned m_printing : 1;
446 unsigned m_antialiasHairlineImages : 1; 444 unsigned m_antialiasHairlineImages : 1;
447 }; 445 };
448 446
449 } // namespace blink 447 } // namespace blink
450 448
451 #endif // GraphicsContext_h 449 #endif // GraphicsContext_h
OLDNEW
« no previous file with comments | « Source/core/paint/ObjectPainter.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698