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

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

Issue 1534243002: Revert of Fix UB function problems for shaders and mask. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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/SkBitmapProcShader.cpp ('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 25 matching lines...) Expand all
36 #endif 36 #endif
37 } 37 }
38 38
39 class SkPaint; 39 class SkPaint;
40 40
41 struct SkBitmapProcState { 41 struct SkBitmapProcState {
42 SkBitmapProcState(const SkBitmapProvider&, SkShader::TileMode tmx, SkShader: :TileMode tmy); 42 SkBitmapProcState(const SkBitmapProvider&, SkShader::TileMode tmx, SkShader: :TileMode tmy);
43 SkBitmapProcState(const SkBitmap&, SkShader::TileMode tmx, SkShader::TileMod e tmy); 43 SkBitmapProcState(const SkBitmap&, SkShader::TileMode tmx, SkShader::TileMod e tmy);
44 ~SkBitmapProcState(); 44 ~SkBitmapProcState();
45 45
46 typedef void (*ShaderProc32)(const void* ctx, int x, int y, SkPMColor[], int count); 46 typedef void (*ShaderProc32)(const SkBitmapProcState&, int x, int y,
47 SkPMColor[], int count);
47 48
48 typedef void (*ShaderProc16)(const void* ctx, int x, int y, uint16_t[], int count); 49 typedef void (*ShaderProc16)(const SkBitmapProcState&, int x, int y,
50 uint16_t[], int count);
49 51
50 typedef void (*MatrixProc)(const SkBitmapProcState&, 52 typedef void (*MatrixProc)(const SkBitmapProcState&,
51 uint32_t bitmapXY[], 53 uint32_t bitmapXY[],
52 int count, 54 int count,
53 int x, int y); 55 int x, int y);
54 56
55 typedef void (*SampleProc32)(const SkBitmapProcState&, 57 typedef void (*SampleProc32)(const SkBitmapProcState&,
56 const uint32_t[], 58 const uint32_t[],
57 int count, 59 int count,
58 SkPMColor colors[]); 60 SkPMColor colors[]);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, 206 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s,
205 uint32_t xy[], int count, int x, int y); 207 uint32_t xy[], int count, int x, int y);
206 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, 208 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s,
207 uint32_t xy[], int count, int x, int y); 209 uint32_t xy[], int count, int x, int y);
208 void S32_D16_filter_DX(const SkBitmapProcState& s, 210 void S32_D16_filter_DX(const SkBitmapProcState& s,
209 const uint32_t* xy, int count, uint16_t* colors); 211 const uint32_t* xy, int count, uint16_t* colors);
210 void S32_D16_filter_DXDY(const SkBitmapProcState& s, 212 void S32_D16_filter_DXDY(const SkBitmapProcState& s,
211 const uint32_t* xy, int count, uint16_t* colors); 213 const uint32_t* xy, int count, uint16_t* colors);
212 214
213 #endif 215 #endif
OLDNEW
« no previous file with comments | « src/core/SkBitmapProcShader.cpp ('k') | src/core/SkBitmapProcState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698