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

Unified Diff: Source/platform/graphics/Gradient.h

Issue 196483005: WebCore::Gradient need not have mutable fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Gradient.h
diff --git a/Source/platform/graphics/Gradient.h b/Source/platform/graphics/Gradient.h
index 697f8fb0261c96acfb177229cd81325f851e23c1..ff6bf36d34756b0920e91838f58b2baf206d80dc 100644
--- a/Source/platform/graphics/Gradient.h
+++ b/Source/platform/graphics/Gradient.h
@@ -141,14 +141,13 @@ private:
float m_r0;
float m_r1;
float m_aspectRatio; // For elliptical gradient, width / height.
- mutable Vector<ColorStop, 2> m_stops;
+ Vector<ColorStop, 2> m_stops;
bool m_radial;
- mutable bool m_stopsSorted;
+ bool m_stopsSorted;
bool m_drawInPMColorSpace;
GradientSpreadMethod m_spreadMethod;
AffineTransform m_gradientSpaceTransformation;
-
RefPtr<SkShader> m_gradient;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698