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

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

Issue 306013010: allow subpixel positioning w/ bitmap filtering Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 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 | « no previous file | 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 SkBitmapFilter* fBitmapFilter; 166 SkBitmapFilter* fBitmapFilter;
167 167
168 // If supported, sets fShaderProc32 and fShaderProc16 and returns true, 168 // If supported, sets fShaderProc32 and fShaderProc16 and returns true,
169 // otherwise returns false. 169 // otherwise returns false.
170 bool setBitmapFilterProcs(); 170 bool setBitmapFilterProcs();
171 171
172 // Return false if we failed to setup for fast translate (e.g. overflow) 172 // Return false if we failed to setup for fast translate (e.g. overflow)
173 bool setupForTranslate(); 173 bool setupForTranslate();
174 174
175 bool isInverseTrivial() const;
176
175 #ifdef SK_DEBUG 177 #ifdef SK_DEBUG
176 static void DebugMatrixProc(const SkBitmapProcState&, 178 static void DebugMatrixProc(const SkBitmapProcState&,
177 uint32_t[], int count, int x, int y); 179 uint32_t[], int count, int x, int y);
178 #endif 180 #endif
179 }; 181 };
180 182
181 /* Macros for packing and unpacking pairs of 16bit values in a 32bit uint. 183 /* Macros for packing and unpacking pairs of 16bit values in a 32bit uint.
182 Used to allow access to a stream of uint16_t either one at a time, or 184 Used to allow access to a stream of uint16_t either one at a time, or
183 2 at a time by unpacking a uint32_t 185 2 at a time by unpacking a uint32_t
184 */ 186 */
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 void S32_D16_filter_DX(const SkBitmapProcState& s, 225 void S32_D16_filter_DX(const SkBitmapProcState& s,
224 const uint32_t* xy, int count, uint16_t* colors); 226 const uint32_t* xy, int count, uint16_t* colors);
225 227
226 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, 228 void highQualityFilter32(const SkBitmapProcState &s, int x, int y,
227 SkPMColor *SK_RESTRICT colors, int count); 229 SkPMColor *SK_RESTRICT colors, int count);
228 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, 230 void highQualityFilter16(const SkBitmapProcState &s, int x, int y,
229 uint16_t *SK_RESTRICT colors, int count); 231 uint16_t *SK_RESTRICT colors, int count);
230 232
231 233
232 #endif 234 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkBitmapProcState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698