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

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

Issue 1228683002: rename GrShaderDataManager -> GrProcessorDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@grfixuptests
Patch Set: rebase onto origin/master Created 5 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
« no previous file with comments | « include/effects/SkPerlinNoiseShader.h ('k') | include/gpu/GrProcessorDataManager.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 2011 Google Inc. 3 * Copyright 2011 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 #ifndef GrPaint_DEFINED 10 #ifndef GrPaint_DEFINED
11 #define GrPaint_DEFINED 11 #define GrPaint_DEFINED
12 12
13 #include "GrColor.h" 13 #include "GrColor.h"
14 #include "GrFragmentStage.h" 14 #include "GrFragmentStage.h"
15 #include "GrShaderDataManager.h" 15 #include "GrProcessorDataManager.h"
16 #include "GrXferProcessor.h" 16 #include "GrXferProcessor.h"
17 #include "effects/GrPorterDuffXferProcessor.h" 17 #include "effects/GrPorterDuffXferProcessor.h"
18 18
19 #include "SkRegion.h" 19 #include "SkRegion.h"
20 #include "SkXfermode.h" 20 #include "SkXfermode.h"
21 21
22 /** 22 /**
23 * The paint describes how color and coverage are computed at each pixel by GrCo ntext draw 23 * The paint describes how color and coverage are computed at each pixel by GrCo ntext draw
24 * functions and the how color is blended with the destination pixel. 24 * functions and the how color is blended with the destination pixel.
25 * 25 *
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 130 }
131 131
132 /** 132 /**
133 * Returns true if the paint's output color will be constant after blending. If the result is 133 * Returns true if the paint's output color will be constant after blending. If the result is
134 * true, constantColor will be updated to contain the constant color. Note t hat we can conflate 134 * true, constantColor will be updated to contain the constant color. Note t hat we can conflate
135 * coverage and color, so the actual values written to pixels with partial c overage may still 135 * coverage and color, so the actual values written to pixels with partial c overage may still
136 * not seem constant, even if this function returns true. 136 * not seem constant, even if this function returns true.
137 */ 137 */
138 bool isConstantBlendedColor(GrColor* constantColor) const; 138 bool isConstantBlendedColor(GrColor* constantColor) const;
139 139
140 GrShaderDataManager* getShaderDataManager() { return &fShaderDataManager; } 140 GrProcessorDataManager* getProcessorDataManager() { return &fProcDataManager ; }
141 141
142 private: 142 private:
143 mutable SkAutoTUnref<const GrXPFactory> fXPFactory; 143 mutable SkAutoTUnref<const GrXPFactory> fXPFactory;
144 SkSTArray<4, GrFragmentStage> fColorStages; 144 SkSTArray<4, GrFragmentStage> fColorStages;
145 SkSTArray<2, GrFragmentStage> fCoverageStages; 145 SkSTArray<2, GrFragmentStage> fCoverageStages;
146 146
147 bool fAntiAlias; 147 bool fAntiAlias;
148 bool fDither; 148 bool fDither;
149 149
150 GrColor fColor; 150 GrColor fColor;
151 GrShaderDataManager fShaderDataManager; 151 GrProcessorDataManager fProcDataManager;
152 }; 152 };
153 153
154 #endif 154 #endif
OLDNEW
« no previous file with comments | « include/effects/SkPerlinNoiseShader.h ('k') | include/gpu/GrProcessorDataManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698