зеркало из https://github.com/mozilla/moz-skia.git
[PDF] Fix gradient generation code (remove extra 'dup' in some cases)
Fixes http://crbug.com/157006 Review URL: https://codereview.appspot.com/6733061 git-svn-id: http://skia.googlecode.com/svn/trunk@6035 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
ce8a195111
Коммит
b862204352
|
@ -74,8 +74,9 @@ static void interpolateColorCode(SkScalar range, SkScalar* curColor,
|
|||
}
|
||||
|
||||
for (int i = 0; i < components; i++) {
|
||||
// If the next components needs t, make a copy.
|
||||
if (dupInput[i]) {
|
||||
// If the next components needs t and this component will consume a
|
||||
// copy, make another copy.
|
||||
if (dupInput[i] && multiplier[i] != 0) {
|
||||
result->append("dup ");
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче