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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/Gradient.h

Issue 2792163002: Add support for repeating-conic-gradient() (Closed)
Patch Set: baselines Created 3 years, 8 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2008 Torch Mobile, Inc. 4 * Copyright (C) 2008 Torch Mobile, Inc.
5 * Copyright (C) 2013 Google Inc. All rights reserved. 5 * Copyright (C) 2013 Google Inc. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 float r0, 69 float r0,
70 const FloatPoint& p1, 70 const FloatPoint& p1,
71 float r1, 71 float r1,
72 float aspectRatio = 1, 72 float aspectRatio = 1,
73 GradientSpreadMethod = SpreadMethodPad, 73 GradientSpreadMethod = SpreadMethodPad,
74 ColorInterpolation = ColorInterpolation::Unpremultiplied); 74 ColorInterpolation = ColorInterpolation::Unpremultiplied);
75 75
76 static PassRefPtr<Gradient> createConic( 76 static PassRefPtr<Gradient> createConic(
77 const FloatPoint& position, 77 const FloatPoint& position,
78 float angle, 78 float angle,
79 GradientSpreadMethod = SpreadMethodPad,
80 ColorInterpolation = ColorInterpolation::Unpremultiplied); 79 ColorInterpolation = ColorInterpolation::Unpremultiplied);
81 80
82 virtual ~Gradient(); 81 virtual ~Gradient();
83 82
84 Type getType() const { return m_type; } 83 Type getType() const { return m_type; }
85 84
86 struct ColorStop { 85 struct ColorStop {
87 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 86 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
88 float stop; 87 float stop;
89 Color color; 88 Color color;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 120
122 Vector<ColorStop, 2> m_stops; 121 Vector<ColorStop, 2> m_stops;
123 bool m_stopsSorted; 122 bool m_stopsSorted;
124 123
125 mutable sk_sp<PaintShader> m_cachedShader; 124 mutable sk_sp<PaintShader> m_cachedShader;
126 }; 125 };
127 126
128 } // namespace blink 127 } // namespace blink
129 128
130 #endif 129 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSGradientValue.cpp ('k') | third_party/WebKit/Source/platform/graphics/Gradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698