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

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

Issue 1158273007: switch bitmapshader internals over to pixmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix neon/mips to use pixmpas Created 5 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/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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 typedef void (*SampleProc16)(const SkBitmapProcState&, 46 typedef void (*SampleProc16)(const SkBitmapProcState&,
47 const uint32_t[], 47 const uint32_t[],
48 int count, 48 int count,
49 uint16_t colors[]); 49 uint16_t colors[]);
50 50
51 typedef U16CPU (*FixedTileProc)(SkFixed); // returns 0..0xFFFF 51 typedef U16CPU (*FixedTileProc)(SkFixed); // returns 0..0xFFFF
52 typedef U16CPU (*FixedTileLowBitsProc)(SkFixed, int); // returns 0..0xF 52 typedef U16CPU (*FixedTileLowBitsProc)(SkFixed, int); // returns 0..0xF
53 typedef U16CPU (*IntTileProc)(int value, int count); // returns 0..count-1 53 typedef U16CPU (*IntTileProc)(int value, int count); // returns 0..count-1
54 54
55 const SkBitmap* fBitmap; // chooseProcs - orig or scaled 55 SkPixmap fPixmap;
56 SkMatrix fInvMatrix; // copy of what is in fBMState, can we remove the dup? 56 SkMatrix fInvMatrix; // copy of what is in fBMState, can we remove the dup?
57 57
58 SkMatrix::MapXYProc fInvProc; // chooseProcs 58 SkMatrix::MapXYProc fInvProc; // chooseProcs
59 59
60 SkFractionalInt fInvSxFractionalInt; 60 SkFractionalInt fInvSxFractionalInt;
61 SkFractionalInt fInvKyFractionalInt; 61 SkFractionalInt fInvKyFractionalInt;
62 62
63 FixedTileProc fTileProcX; // chooseProcs 63 FixedTileProc fTileProcX; // chooseProcs
64 FixedTileProc fTileProcY; // chooseProcs 64 FixedTileProc fTileProcY; // chooseProcs
65 FixedTileLowBitsProc fTileLowBitsProcX; // chooseProcs 65 FixedTileLowBitsProc fTileLowBitsProcX; // chooseProcs
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, 189 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s,
190 uint32_t xy[], int count, int x, int y); 190 uint32_t xy[], int count, int x, int y);
191 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, 191 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s,
192 uint32_t xy[], int count, int x, int y); 192 uint32_t xy[], int count, int x, int y);
193 void S32_D16_filter_DX(const SkBitmapProcState& s, 193 void S32_D16_filter_DX(const SkBitmapProcState& s,
194 const uint32_t* xy, int count, uint16_t* colors); 194 const uint32_t* xy, int count, uint16_t* colors);
195 void S32_D16_filter_DXDY(const SkBitmapProcState& s, 195 void S32_D16_filter_DXDY(const SkBitmapProcState& s,
196 const uint32_t* xy, int count, uint16_t* colors); 196 const uint32_t* xy, int count, uint16_t* colors);
197 197
198 #endif 198 #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