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

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

Issue 1711963003: Add point spans, but fall back for all cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | src/core/SkLinearBitmapPipeline.cpp » ('j') | src/core/SkLinearBitmapPipeline.cpp » ('J')
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_DEFINED 8 #ifndef SkLinearBitmapPipeline_DEFINED
9 #define SkLinearBitmapPipeline_DEFINED 9 #define SkLinearBitmapPipeline_DEFINED
10 10
11 11
12 #include "SkColor.h" 12 #include "SkColor.h"
13 #include "SkImageInfo.h" 13 #include "SkImageInfo.h"
14 #include "SkMatrix.h" 14 #include "SkMatrix.h"
15 #include "SkNx.h" 15 #include "SkNx.h"
16 #include "SkShader.h" 16 #include "SkShader.h"
17 17
18 using Sk4fArg = const Sk4f&; 18 using Sk4fArg = const Sk4f&;
19 19
20 class PointProcessorInterface { 20 class PointProcessorInterface {
21 public: 21 public:
22 virtual ~PointProcessorInterface() { } 22 virtual ~PointProcessorInterface() { }
23 virtual void pointListFew(int n, Sk4fArg xs, Sk4fArg ys) = 0; 23 virtual void pointListFew(int n, Sk4fArg xs, Sk4fArg ys) = 0;
24 virtual void pointList4(Sk4fArg xs, Sk4fArg ys) = 0; 24 virtual void pointList4(Sk4fArg xs, Sk4fArg ys) = 0;
25 virtual void pointSpan(SkPoint start, SkScalar length, int count) = 0;
25 }; 26 };
26 27
27 class BilerpProcessorInterface : public PointProcessorInterface { 28 class BilerpProcessorInterface : public PointProcessorInterface {
28 public: 29 public:
29 // The x's and y's are setup in the following order: 30 // The x's and y's are setup in the following order:
30 // +--------+--------+ 31 // +--------+--------+
31 // | | | 32 // | | |
32 // | px00 | px10 | 33 // | px00 | px10 |
33 // | 0 | 1 | 34 // | 0 | 1 |
34 // +--------+--------+ 35 // +--------+--------+
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 PointProcessorInterface* fFirstStage; 96 PointProcessorInterface* fFirstStage;
96 MatrixStage fMatrixStage; 97 MatrixStage fMatrixStage;
97 FilterStage fFilterStage; 98 FilterStage fFilterStage;
98 TileStage fTileXOrBothStage; 99 TileStage fTileXOrBothStage;
99 TileStage fTileYStage; 100 TileStage fTileYStage;
100 SampleStage fSampleStage; 101 SampleStage fSampleStage;
101 PixelStage fPixelStage; 102 PixelStage fPixelStage;
102 }; 103 };
103 104
104 #endif // SkLinearBitmapPipeline_DEFINED 105 #endif // SkLinearBitmapPipeline_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/core/SkLinearBitmapPipeline.cpp » ('j') | src/core/SkLinearBitmapPipeline.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698