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

Side by Side Diff: src/core/SkLinearBitmapPipeline_core.h

Issue 1886233006: Add 8888 fast SrcOver mode. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Addresss mtk's review. Created 4 years, 7 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
« no previous file with comments | « src/core/SkLinearBitmapPipeline.cpp ('k') | src/core/SkLinearBitmapPipeline_tile.h » ('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 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * 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
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkLinearBitmapPipeline_core_DEFINED 8 #ifndef SkLinearBitmapPipeline_core_DEFINED
9 #define SkLinearBitmapPipeline_core_DEFINED 9 #define SkLinearBitmapPipeline_core_DEFINED
10 10
11 #include <cmath> 11 #include <cmath>
12 #include "SkNx.h"
12 13
13 // New bilerp strategy: 14 // New bilerp strategy:
14 // Pass through on bilerpList4 and bilerpListFew (analogs to pointList), introdu ce bilerpEdge 15 // Pass through on bilerpList4 and bilerpListFew (analogs to pointList), introdu ce bilerpEdge
15 // which takes 4 points. If the sample spans an edge, then break it into a biler pEdge. Bilerp 16 // which takes 4 points. If the sample spans an edge, then break it into a biler pEdge. Bilerp
16 // span then becomes a normal span except in special cases where an extra Y is g iven. The bilerp 17 // span then becomes a normal span except in special cases where an extra Y is g iven. The bilerp
17 // need to stay single point calculations until the tile layer. 18 // need to stay single point calculations until the tile layer.
18 // TODO: 19 // TODO:
19 // - edge span predicate. 20 // - edge span predicate.
20 // - introduce new point API 21 // - introduce new point API
21 // - Add tile for new api. 22 // - Add tile for new api.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 xs = xs + fourDx; 182 xs = xs + fourDx;
182 count -= 4; 183 count -= 4;
183 } 184 }
184 if (count > 0) { 185 if (count > 0) {
185 stage->pointListFew(count, xs, ys); 186 stage->pointListFew(count, xs, ys);
186 } 187 }
187 } 188 }
188 } // namespace 189 } // namespace
189 190
190 #endif // SkLinearBitmapPipeline_core_DEFINED 191 #endif // SkLinearBitmapPipeline_core_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkLinearBitmapPipeline.cpp ('k') | src/core/SkLinearBitmapPipeline_tile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698