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

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

Issue 739673002: Create GrOptDrawState before recording draw in GrInOrderDrawBuffer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove unused function in pendingprogramelement Created 6 years, 1 month 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/GrProgramElementRef.h ('k') | src/gpu/GrDrawState.h » ('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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader. 82 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader.
83 // Sets the color of GrPaint to the value of the parameter paintColor 83 // Sets the color of GrPaint to the value of the parameter paintColor
84 // Callers may subsequently modify the GrPaint. Setting constantColor indicates 84 // Callers may subsequently modify the GrPaint. Setting constantColor indicates
85 // that the final paint will draw the same color at every pixel. This allows 85 // that the final paint will draw the same color at every pixel. This allows
86 // an optimization where the the color filter can be applied to the SkPaint's 86 // an optimization where the the color filter can be applied to the SkPaint's
87 // color once while converting to GrPaint and then ignored. 87 // color once while converting to GrPaint and then ignored.
88 void SkPaint2GrPaintNoShader(GrContext* context, const SkPaint& skPaint, GrColor paintColor, 88 void SkPaint2GrPaintNoShader(GrContext* context, const SkPaint& skPaint, GrColor paintColor,
89 bool constantColor, GrPaint* grPaint); 89 bool constantColor, GrPaint* grPaint);
90 90
91 // This function is similar to skPaint2GrPaintNoShader but also converts 91 // This function is similar to skPaint2GrPaintNoShader but also converts
92 // skPaint's shader to a GrTexture/GrProcessorStage if possible. 92 // skPaint's shader to a GrFragmentProcessor if possible.
93 // constantColor has the same meaning as in skPaint2GrPaintNoShader. 93 // constantColor has the same meaning as in skPaint2GrPaintNoShader.
94 void SkPaint2GrPaintShader(GrContext* context, const SkPaint& skPaint, 94 void SkPaint2GrPaintShader(GrContext* context, const SkPaint& skPaint,
95 bool constantColor, GrPaint* grPaint); 95 bool constantColor, GrPaint* grPaint);
96 96
97 //////////////////////////////////////////////////////////////////////////////// 97 ////////////////////////////////////////////////////////////////////////////////
98 // Classes 98 // Classes
99 99
100 class SkGlyphCache; 100 class SkGlyphCache;
101 101
102 //////////////////////////////////////////////////////////////////////////////// 102 ////////////////////////////////////////////////////////////////////////////////
103 103
104 #endif 104 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrProgramElementRef.h ('k') | src/gpu/GrDrawState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698