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

Side by Side Diff: include/gpu/SkGr.h

Issue 1359833004: Stop supporting HW dither (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: minor Created 5 years, 2 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 | « include/gpu/GrPaint.h ('k') | src/gpu/GrAtlasTextContext.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 2010 Google Inc. 3 * Copyright 2010 Google Inc.
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 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 //////////////////////////////////////////////////////////////////////////////// 109 ////////////////////////////////////////////////////////////////////////////////
110 110
111 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader. 111 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader.
112 // Sets the color of GrPaint to the value of the parameter paintColor 112 // Sets the color of GrPaint to the value of the parameter paintColor
113 // Callers may subsequently modify the GrPaint. Setting constantColor indicates 113 // Callers may subsequently modify the GrPaint. Setting constantColor indicates
114 // that the final paint will draw the same color at every pixel. This allows 114 // that the final paint will draw the same color at every pixel. This allows
115 // an optimization where the color filter can be applied to the SkPaint's 115 // an optimization where the color filter can be applied to the SkPaint's
116 // color once while converting to GrPaint and then ignored. TODO: Remove this 116 // color once while converting to GrPaint and then ignored. TODO: Remove this
117 // bool and use the invariant info to automatically apply the color filter. 117 // bool and use the invariant info to automatically apply the color filter.
118 bool SkPaint2GrPaintNoShader(GrContext* context, GrRenderTarget*, const SkPaint& skPaint, 118 bool SkPaint2GrPaintNoShader(GrContext* context, const SkPaint& skPaint, GrColor paintColor,
119 GrColor paintColor, bool constantColor, GrPaint* gr Paint); 119 bool constantColor, GrPaint* grPaint);
120 120
121 // This function is similar to skPaint2GrPaintNoShader but also converts 121 // This function is similar to skPaint2GrPaintNoShader but also converts
122 // skPaint's shader to a GrFragmentProcessor if possible. 122 // skPaint's shader to a GrFragmentProcessor if possible.
123 // constantColor has the same meaning as in skPaint2GrPaintNoShader. 123 // constantColor has the same meaning as in skPaint2GrPaintNoShader.
124 bool SkPaint2GrPaint(GrContext* context, GrRenderTarget*, const SkPaint& skPaint , 124 bool SkPaint2GrPaint(GrContext* context, const SkPaint& skPaint, const SkMatrix& viewM,
125 const SkMatrix& viewM, bool constantColor, GrPaint* grPaint ); 125 bool constantColor, GrPaint* grPaint);
126 126
127 127
128 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque); 128 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque);
129 129
130 // Using the dreaded SkGrPixelRef ... 130 // Using the dreaded SkGrPixelRef ...
131 SK_API void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, 131 SK_API void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque,
132 SkBitmap* dst); 132 SkBitmap* dst);
133 133
134 GrTextureParams::FilterMode GrSkFilterQualityToGrFilterMode(SkFilterQuality pain tFilterQuality, 134 GrTextureParams::FilterMode GrSkFilterQualityToGrFilterMode(SkFilterQuality pain tFilterQuality,
135 const SkMatrix& view M, 135 const SkMatrix& view M,
136 const SkMatrix& loca lM, 136 const SkMatrix& loca lM,
137 bool* doBicubic); 137 bool* doBicubic);
138 138
139 //////////////////////////////////////////////////////////////////////////////// 139 ////////////////////////////////////////////////////////////////////////////////
140 // Classes 140 // Classes
141 141
142 class SkGlyphCache; 142 class SkGlyphCache;
143 143
144 //////////////////////////////////////////////////////////////////////////////// 144 ////////////////////////////////////////////////////////////////////////////////
145 145
146 #endif 146 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrPaint.h ('k') | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698