OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 #include "GrFragmentProcessor.h" | 8 #include "GrFragmentProcessor.h" |
10 #include "GrCoordTransform.h" | 9 #include "GrCoordTransform.h" |
11 #include "GrInvariantOutput.h" | 10 #include "GrInvariantOutput.h" |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 cnt -= firstIdx; | 365 cnt -= firstIdx; |
367 } | 366 } |
368 } | 367 } |
369 | 368 |
370 if (1 == cnt) { | 369 if (1 == cnt) { |
371 return SkRef(series[0]); | 370 return SkRef(series[0]); |
372 } else { | 371 } else { |
373 return new SeriesFragmentProcessor(series, cnt); | 372 return new SeriesFragmentProcessor(series, cnt); |
374 } | 373 } |
375 } | 374 } |
376 | |
OLD | NEW |