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

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

Issue 2086583002: update callers to not use SkColorProfileType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rm flag instead of commenting it out Created 4 years, 6 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/SkDraw.cpp ('k') | src/core/SkLinearBitmapPipeline.cpp » ('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_DEFINED 8 #ifndef SkLinearBitmapPipeline_DEFINED
9 #define SkLinearBitmapPipeline_DEFINED 9 #define SkLinearBitmapPipeline_DEFINED
10 10
11 #include "SkColor.h" 11 #include "SkColor.h"
12 #include "SkImageInfo.h" 12 #include "SkImageInfo.h"
13 #include "SkMatrix.h" 13 #include "SkMatrix.h"
14 #include "SkShader.h" 14 #include "SkShader.h"
15 15
16 class SkEmbeddableLinearPipeline; 16 class SkEmbeddableLinearPipeline;
17 17
18 enum SkGammaType {
19 kLinear_SkGammaType,
20 kSRGB_SkGammaType,
21 };
22
18 //////////////////////////////////////////////////////////////////////////////// /////////////////// 23 //////////////////////////////////////////////////////////////////////////////// ///////////////////
19 // SkLinearBitmapPipeline - encapsulates all the machinery for doing floating po int pixel 24 // SkLinearBitmapPipeline - encapsulates all the machinery for doing floating po int pixel
20 // processing in a linear color space. 25 // processing in a linear color space.
21 // Note: this class has unusual alignment requirements due to its use of SIMD in structions. The 26 // Note: this class has unusual alignment requirements due to its use of SIMD in structions. The
22 // class SkEmbeddableLinearPipeline below manages these requirements. 27 // class SkEmbeddableLinearPipeline below manages these requirements.
23 class SkLinearBitmapPipeline { 28 class SkLinearBitmapPipeline {
24 public: 29 public:
25 SkLinearBitmapPipeline( 30 SkLinearBitmapPipeline(
26 const SkMatrix& inverse, 31 const SkMatrix& inverse,
27 SkFilterQuality filterQuality, 32 SkFilterQuality filterQuality,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 private: 136 private:
132 enum { 137 enum {
133 kActualSize = sizeof(SkLinearBitmapPipeline), 138 kActualSize = sizeof(SkLinearBitmapPipeline),
134 kPaddedSize = SkAlignPtr(kActualSize + 12), 139 kPaddedSize = SkAlignPtr(kActualSize + 12),
135 }; 140 };
136 void* fPipelineStorage[kPaddedSize / sizeof(void*)]; 141 void* fPipelineStorage[kPaddedSize / sizeof(void*)];
137 SkLinearBitmapPipeline* fPipeline{nullptr}; 142 SkLinearBitmapPipeline* fPipeline{nullptr};
138 }; 143 };
139 144
140 #endif // SkLinearBitmapPipeline_DEFINED 145 #endif // SkLinearBitmapPipeline_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkDraw.cpp ('k') | src/core/SkLinearBitmapPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698