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

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

Issue 844913004: reorg filter quality cascade (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more misspelling Created 5 years, 11 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 | « expectations/gm/ignored-tests.txt ('k') | src/core/SkBitmapProcState.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 2007 The Android Open Source Project 2 * Copyright 2007 The Android Open Source Project
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 SkBitmapProcState_DEFINED 8 #ifndef SkBitmapProcState_DEFINED
9 #define SkBitmapProcState_DEFINED 9 #define SkBitmapProcState_DEFINED
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 MatrixProc fMatrixProc; // chooseProcs 126 MatrixProc fMatrixProc; // chooseProcs
127 SampleProc32 fSampleProc32; // chooseProcs 127 SampleProc32 fSampleProc32; // chooseProcs
128 SampleProc16 fSampleProc16; // chooseProcs 128 SampleProc16 fSampleProc16; // chooseProcs
129 129
130 SkBitmap fOrigBitmap; // CONSTRUCTOR 130 SkBitmap fOrigBitmap; // CONSTRUCTOR
131 SkBitmap fScaledBitmap; // chooseProcs 131 SkBitmap fScaledBitmap; // chooseProcs
132 132
133 SkAutoTUnref<const SkMipMap> fCurrMip; 133 SkAutoTUnref<const SkMipMap> fCurrMip;
134 bool fAdjustedMatrix; // set by possiblyScaleImage 134 bool fAdjustedMatrix; // set by possiblyScaleImage
135 135
136 void processHQRequest();
137 void processMediumRequest();
138
136 MatrixProc chooseMatrixProc(bool trivial_matrix); 139 MatrixProc chooseMatrixProc(bool trivial_matrix);
137 bool chooseProcs(const SkMatrix& inv, const SkPaint&); 140 bool chooseProcs(const SkMatrix& inv, const SkPaint&);
138 bool chooseScanlineProcs(bool trivialMatrix, bool clampClamp, const SkPaint& paint); 141 bool chooseScanlineProcs(bool trivialMatrix, bool clampClamp, const SkPaint& paint);
139 ShaderProc32 chooseShaderProc32(); 142 ShaderProc32 chooseShaderProc32();
140 143
141 // returns false if we did not try to scale the image. In that case, we 144 // returns false if we did not try to scale the image. In that case, we
142 // will need to "lock" its pixels some other way. 145 // will need to "lock" its pixels some other way.
143 bool possiblyScaleImage(); 146 bool possiblyScaleImage();
144 147
145 // returns false if we failed to "lock" the pixels at all. Typically this 148 // returns false if we failed to "lock" the pixels at all. Typically this
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 void S32_D16_filter_DXDY(const SkBitmapProcState& s, 211 void S32_D16_filter_DXDY(const SkBitmapProcState& s,
209 const uint32_t* xy, int count, uint16_t* colors); 212 const uint32_t* xy, int count, uint16_t* colors);
210 213
211 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, 214 void highQualityFilter32(const SkBitmapProcState &s, int x, int y,
212 SkPMColor *SK_RESTRICT colors, int count); 215 SkPMColor *SK_RESTRICT colors, int count);
213 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, 216 void highQualityFilter16(const SkBitmapProcState &s, int x, int y,
214 uint16_t *SK_RESTRICT colors, int count); 217 uint16_t *SK_RESTRICT colors, int count);
215 218
216 219
217 #endif 220 #endif
OLDNEW
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | src/core/SkBitmapProcState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698