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

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

Issue 246403013: Revert of Revert of Extract most of the mutable state of SkShader into a separate Context object. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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 /* 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 SkPMColor fPaintPMColor; // chooseProcs - A8 config 83 SkPMColor fPaintPMColor; // chooseProcs - A8 config
84 SkFixed fInvSx; // chooseProcs 84 SkFixed fInvSx; // chooseProcs
85 SkFixed fInvKy; // chooseProcs 85 SkFixed fInvKy; // chooseProcs
86 uint16_t fAlphaScale; // chooseProcs 86 uint16_t fAlphaScale; // chooseProcs
87 uint8_t fInvType; // chooseProcs 87 uint8_t fInvType; // chooseProcs
88 uint8_t fTileModeX; // CONSTRUCTOR 88 uint8_t fTileModeX; // CONSTRUCTOR
89 uint8_t fTileModeY; // CONSTRUCTOR 89 uint8_t fTileModeY; // CONSTRUCTOR
90 uint8_t fFilterLevel; // chooseProcs 90 uint8_t fFilterLevel; // chooseProcs
91 91
92 /** The shader will let us know when we can release some of our resources
93 * like scaled bitmaps.
94 */
95
96 void endContext();
97
98 /** Platforms implement this, and can optionally overwrite only the 92 /** Platforms implement this, and can optionally overwrite only the
99 following fields: 93 following fields:
100 94
101 fShaderProc32 95 fShaderProc32
102 fShaderProc16 96 fShaderProc16
103 fMatrixProc 97 fMatrixProc
104 fSampleProc32 98 fSampleProc32
105 fSampleProc32 99 fSampleProc32
106 100
107 They will already have valid function pointers, so a platform that does 101 They will already have valid function pointers, so a platform that does
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 void S32_D16_filter_DX(const SkBitmapProcState& s, 223 void S32_D16_filter_DX(const SkBitmapProcState& s,
230 const uint32_t* xy, int count, uint16_t* colors); 224 const uint32_t* xy, int count, uint16_t* colors);
231 225
232 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, 226 void highQualityFilter32(const SkBitmapProcState &s, int x, int y,
233 SkPMColor *SK_RESTRICT colors, int count); 227 SkPMColor *SK_RESTRICT colors, int count);
234 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, 228 void highQualityFilter16(const SkBitmapProcState &s, int x, int y,
235 uint16_t *SK_RESTRICT colors, int count); 229 uint16_t *SK_RESTRICT colors, int count);
236 230
237 231
238 #endif 232 #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