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

Side by Side Diff: skia/sgl/SkBitmapProcState.h

Issue 20386: Fix the Facebook sidebar.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | skia/sgl/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 ** Licensed under the Apache License, Version 2.0 (the "License"); 4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License. 5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at 6 ** You may obtain a copy of the License at
7 ** 7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0 8 ** http://www.apache.org/licenses/LICENSE-2.0
9 ** 9 **
10 ** Unless required by applicable law or agreed to in writing, software 10 ** Unless required by applicable law or agreed to in writing, software
(...skipping 21 matching lines...) Expand all
32 typedef void (*SampleProc32)(const SkBitmapProcState&, 32 typedef void (*SampleProc32)(const SkBitmapProcState&,
33 const uint32_t[], 33 const uint32_t[],
34 int count, 34 int count,
35 SkPMColor colors[]); 35 SkPMColor colors[]);
36 36
37 typedef void (*SampleProc16)(const SkBitmapProcState&, 37 typedef void (*SampleProc16)(const SkBitmapProcState&,
38 const uint32_t[], 38 const uint32_t[],
39 int count, 39 int count,
40 uint16_t colors[]); 40 uint16_t colors[]);
41 41
42 typedef U16CPU (*FixedTileProc)(SkFixed); // returns 0..0xFFFF 42 typedef SkFixed (*FixedTileProc)(SkFixed, int);
43 typedef int (*IntTileProc)(int, int);
43 44
44 MatrixProc fMatrixProc; // chooseProcs 45 MatrixProc fMatrixProc; // chooseProcs
45 SampleProc32 fSampleProc32; // chooseProcs 46 SampleProc32 fSampleProc32; // chooseProcs
46 SampleProc16 fSampleProc16; // chooseProcs 47 SampleProc16 fSampleProc16; // chooseProcs
47 48
48 SkMatrix fUnitInvMatrix; // chooseProcs 49 SkMatrix fUnitInvMatrix; // chooseProcs
49 FixedTileProc fTileProcX; // chooseProcs 50 FixedTileProc fTileProcX; // chooseProcs
50 FixedTileProc fTileProcY; // chooseProcs 51 FixedTileProc fTileProcY; // chooseProcs
52 IntTileProc iTileProcX; // chooseProcs
53 IntTileProc iTileProcY; // chooseProcs
51 SkFixed fFilterOneX; 54 SkFixed fFilterOneX;
52 SkFixed fFilterOneY; 55 SkFixed fFilterOneY;
53 56
54 const SkBitmap* fBitmap; // chooseProcs - orig or mip 57 const SkBitmap* fBitmap; // chooseProcs - orig or mip
55 SkBitmap fOrigBitmap; // CONSTRUCTOR 58 SkBitmap fOrigBitmap; // CONSTRUCTOR
56 #ifdef SK_SUPPORT_MIPMAP 59 #ifdef SK_SUPPORT_MIPMAP
57 SkBitmap fMipBitmap; 60 SkBitmap fMipBitmap;
58 #endif 61 #endif
59 SkPMColor fPaintPMColor; // chooseProcs - A8 config 62 SkPMColor fPaintPMColor; // chooseProcs - A8 config
60 const SkMatrix* fInvMatrix; // chooseProcs 63 const SkMatrix* fInvMatrix; // chooseProcs
61 SkMatrix::MapXYProc fInvProc; // chooseProcs 64 SkMatrix::MapXYProc fInvProc; // chooseProcs
62 SkFixed fInvSx, fInvSy; // chooseProcs 65 SkFixed fInvSx, fInvSy; // chooseProcs
63 SkFixed fInvKy; // chooseProcs 66 SkFixed fInvKy; // chooseProcs
64 SkFixed fInvTxPlusHalf; // chooseProcs 67 SkFixed fInvTxPlusHalf; // chooseProcs
65 SkFixed fInvTyPlusHalf; // chooseProcs 68 SkFixed fInvTyPlusHalf; // chooseProcs
66 uint16_t fAlphaScale; // chooseProcs 69 uint16_t fAlphaScale; // chooseProcs
67 uint8_t fInvType; // chooseProcs 70 uint8_t fInvType; // chooseProcs
68 uint8_t fTileModeX; // CONSTRUCTOR 71 uint8_t fTileModeX; // CONSTRUCTOR
69 uint8_t fTileModeY; // CONSTRUCTOR 72 uint8_t fTileModeY; // CONSTRUCTOR
70 SkBool8 fDoFilter; // chooseProcs 73 SkBool8 fDoFilter; // chooseProcs
71 74
72 bool chooseProcs(const SkMatrix& inv, const SkPaint&); 75 bool chooseProcs(const SkMatrix& inv, const SkPaint&);
73 76
74 private: 77 private:
75 MatrixProc chooseMatrixProc(); 78 MatrixProc chooseMatrixProc();
76 }; 79 };
77 80
78 #endif 81 #endif
OLDNEW
« no previous file with comments | « no previous file | skia/sgl/SkBitmapProcState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698