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

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

Issue 19825002: stop using bitmap-filter flags outside of paint itself, as a step towards really changing them into… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | « src/core/SkBitmapFilter.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 SkConvolutionProcs* fConvolutionProcs; // possiblyScaleImage 83 SkConvolutionProcs* fConvolutionProcs; // possiblyScaleImage
84 84
85 SkPMColor fPaintPMColor; // chooseProcs - A8 config 85 SkPMColor fPaintPMColor; // chooseProcs - A8 config
86 SkFixed fInvSx; // chooseProcs 86 SkFixed fInvSx; // chooseProcs
87 SkFixed fInvKy; // chooseProcs 87 SkFixed fInvKy; // chooseProcs
88 uint16_t fAlphaScale; // chooseProcs 88 uint16_t fAlphaScale; // chooseProcs
89 uint8_t fInvType; // chooseProcs 89 uint8_t fInvType; // chooseProcs
90 uint8_t fTileModeX; // CONSTRUCTOR 90 uint8_t fTileModeX; // CONSTRUCTOR
91 uint8_t fTileModeY; // CONSTRUCTOR 91 uint8_t fTileModeY; // CONSTRUCTOR
92 92 uint8_t fFilterLevel; // chooseProcs
93 enum {
94 kNone_BitmapFilter,
95 kBilerp_BitmapFilter,
96 kHQ_BitmapFilter
97 } fFilterQuality; // chooseProcs
98 93
99 /** The shader will let us know when we can release some of our resources 94 /** The shader will let us know when we can release some of our resources
100 * like scaled bitmaps. 95 * like scaled bitmaps.
101 */ 96 */
102 97
103 void endContext(); 98 void endContext();
104 99
105 /** Platforms implement this, and can optionally overwrite only the 100 /** Platforms implement this, and can optionally overwrite only the
106 following fields: 101 following fields:
107 102
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, 219 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s,
225 uint32_t xy[], int count, int x, int y); 220 uint32_t xy[], int count, int x, int y);
226 void S32_D16_filter_DX(const SkBitmapProcState& s, 221 void S32_D16_filter_DX(const SkBitmapProcState& s,
227 const uint32_t* xy, int count, uint16_t* colo rs); 222 const uint32_t* xy, int count, uint16_t* colo rs);
228 223
229 void highQualityFilter(const SkBitmapProcState &s, int x, int y, 224 void highQualityFilter(const SkBitmapProcState &s, int x, int y,
230 SkPMColor *SK_RESTRICT colors, int count); 225 SkPMColor *SK_RESTRICT colors, int count);
231 226
232 227
233 #endif 228 #endif
OLDNEW
« no previous file with comments | « src/core/SkBitmapFilter.cpp ('k') | src/core/SkBitmapProcState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698