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

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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 SkFixed fFilterOneX; 79 SkFixed fFilterOneX;
80 SkFixed fFilterOneY; 80 SkFixed fFilterOneY;
81 81
82 SkPMColor fPaintPMColor; // chooseProcs - A8 config 82 SkPMColor fPaintPMColor; // chooseProcs - A8 config
83 SkFixed fInvSx; // chooseProcs 83 SkFixed fInvSx; // chooseProcs
84 SkFixed fInvKy; // chooseProcs 84 SkFixed fInvKy; // chooseProcs
85 uint16_t fAlphaScale; // chooseProcs 85 uint16_t fAlphaScale; // chooseProcs
86 uint8_t fInvType; // chooseProcs 86 uint8_t fInvType; // chooseProcs
87 uint8_t fTileModeX; // CONSTRUCTOR 87 uint8_t fTileModeX; // CONSTRUCTOR
88 uint8_t fTileModeY; // CONSTRUCTOR 88 uint8_t fTileModeY; // CONSTRUCTOR
89 89 uint8_t fFilterLevel; // chooseProcs
90 enum {
91 kNone_BitmapFilter,
92 kBilerp_BitmapFilter,
93 kHQ_BitmapFilter
94 } fFilterQuality; // chooseProcs
95 90
96 /** The shader will let us know when we can release some of our resources 91 /** The shader will let us know when we can release some of our resources
97 * like scaled bitmaps. 92 * like scaled bitmaps.
98 */ 93 */
99 94
100 void endContext(); 95 void endContext();
101 96
102 /** Platforms implement this, and can optionally overwrite only the 97 /** Platforms implement this, and can optionally overwrite only the
103 following fields: 98 following fields:
104 99
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 void S32_D16_filter_DX(const SkBitmapProcState& s, 213 void S32_D16_filter_DX(const SkBitmapProcState& s,
219 const uint32_t* xy, int count, uint16_t* colo rs); 214 const uint32_t* xy, int count, uint16_t* colo rs);
220 215
221 void highQualityFilter_ScaleOnly(const SkBitmapProcState &s, int x, int y, 216 void highQualityFilter_ScaleOnly(const SkBitmapProcState &s, int x, int y,
222 SkPMColor *SK_RESTRICT colors, int count); 217 SkPMColor *SK_RESTRICT colors, int count);
223 void highQualityFilter(const SkBitmapProcState &s, int x, int y, 218 void highQualityFilter(const SkBitmapProcState &s, int x, int y,
224 SkPMColor *SK_RESTRICT colors, int count); 219 SkPMColor *SK_RESTRICT colors, int count);
225 220
226 221
227 #endif 222 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698