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

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

Issue 470233002: always scale to an integer; compensate for fractional image sizes by leaving the fractional scale i… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more git rebase Created 6 years, 3 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 | « gyp/skia_for_chromium_defines.gypi ('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 /* 2 /*
3 * Copyright 2007 The Android Open Source Project 3 * Copyright 2007 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkBitmapProcState_DEFINED 10 #ifndef SkBitmapProcState_DEFINED
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 ShaderProc16 fShaderProc16; // chooseProcs 137 ShaderProc16 fShaderProc16; // chooseProcs
138 // These are used if the shaderproc is NULL 138 // These are used if the shaderproc is NULL
139 MatrixProc fMatrixProc; // chooseProcs 139 MatrixProc fMatrixProc; // chooseProcs
140 SampleProc32 fSampleProc32; // chooseProcs 140 SampleProc32 fSampleProc32; // chooseProcs
141 SampleProc16 fSampleProc16; // chooseProcs 141 SampleProc16 fSampleProc16; // chooseProcs
142 142
143 SkBitmap fOrigBitmap; // CONSTRUCTOR 143 SkBitmap fOrigBitmap; // CONSTRUCTOR
144 SkBitmap fScaledBitmap; // chooseProcs 144 SkBitmap fScaledBitmap; // chooseProcs
145 145
146 SkAutoTUnref<const SkMipMap> fCurrMip; 146 SkAutoTUnref<const SkMipMap> fCurrMip;
147 bool fAdjustedMatrix; // set by possiblyScaleImage
147 148
148 MatrixProc chooseMatrixProc(bool trivial_matrix); 149 MatrixProc chooseMatrixProc(bool trivial_matrix);
149 bool chooseProcs(const SkMatrix& inv, const SkPaint&); 150 bool chooseProcs(const SkMatrix& inv, const SkPaint&);
150 ShaderProc32 chooseShaderProc32(); 151 ShaderProc32 chooseShaderProc32();
151 152
152 // returns false if we did not try to scale the image. In that case, we 153 // returns false if we did not try to scale the image. In that case, we
153 // will need to "lock" its pixels some other way. 154 // will need to "lock" its pixels some other way.
154 bool possiblyScaleImage(); 155 bool possiblyScaleImage();
155 156
156 // returns false if we failed to "lock" the pixels at all. Typically this 157 // returns false if we failed to "lock" the pixels at all. Typically this
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void S32_D16_filter_DX(const SkBitmapProcState& s, 218 void S32_D16_filter_DX(const SkBitmapProcState& s,
218 const uint32_t* xy, int count, uint16_t* colors); 219 const uint32_t* xy, int count, uint16_t* colors);
219 220
220 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, 221 void highQualityFilter32(const SkBitmapProcState &s, int x, int y,
221 SkPMColor *SK_RESTRICT colors, int count); 222 SkPMColor *SK_RESTRICT colors, int count);
222 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, 223 void highQualityFilter16(const SkBitmapProcState &s, int x, int y,
223 uint16_t *SK_RESTRICT colors, int count); 224 uint16_t *SK_RESTRICT colors, int count);
224 225
225 226
226 #endif 227 #endif
OLDNEW
« no previous file with comments | « gyp/skia_for_chromium_defines.gypi ('k') | src/core/SkBitmapProcState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698