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

Side by Side Diff: src/gpu/GrPipelineBuilder.cpp

Issue 975303005: Creation of GrBatchAtlas and Distancefieldpathrenderer batch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nit Created 5 years, 9 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 | « src/gpu/GrPipelineBuilder.h ('k') | src/gpu/GrTargetCommands.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 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrPipelineBuilder.h" 8 #include "GrPipelineBuilder.h"
9 9
10 #include "GrBatch.h"
10 #include "GrBlend.h" 11 #include "GrBlend.h"
11 #include "GrPaint.h" 12 #include "GrPaint.h"
12 #include "GrPipeline.h" 13 #include "GrPipeline.h"
13 #include "GrProcOptInfo.h" 14 #include "GrProcOptInfo.h"
14 #include "GrXferProcessor.h" 15 #include "GrXferProcessor.h"
15 #include "effects/GrPorterDuffXferProcessor.h" 16 #include "effects/GrPorterDuffXferProcessor.h"
16 17
17 GrPipelineBuilder::GrPipelineBuilder() 18 GrPipelineBuilder::GrPipelineBuilder()
18 : fFlagBits(0x0) 19 : fFlagBits(0x0)
19 , fDrawFace(kBoth_DrawFace) 20 , fDrawFace(kBoth_DrawFace)
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void GrPipelineBuilder::calcCoverageInvariantOutput(GrColor coverage) const { 176 void GrPipelineBuilder::calcCoverageInvariantOutput(GrColor coverage) const {
176 if (!fCoverageProcInfoValid || coverage != fCoverageCache) { 177 if (!fCoverageProcInfoValid || coverage != fCoverageCache) {
177 GrColorComponentFlags flags = kRGBA_GrColorComponentFlags; 178 GrColorComponentFlags flags = kRGBA_GrColorComponentFlags;
178 fCoverageProcInfo.calcWithInitialValues(fCoverageStages.begin(), 179 fCoverageProcInfo.calcWithInitialValues(fCoverageStages.begin(),
179 this->numCoverageFragmentStages( ), coverage, flags, 180 this->numCoverageFragmentStages( ), coverage, flags,
180 true); 181 true);
181 fCoverageProcInfoValid = true; 182 fCoverageProcInfoValid = true;
182 fCoverageCache = coverage; 183 fCoverageCache = coverage;
183 } 184 }
184 } 185 }
OLDNEW
« no previous file with comments | « src/gpu/GrPipelineBuilder.h ('k') | src/gpu/GrTargetCommands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698