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

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

Issue 2165283002: Remove DrawFace enum from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try again Created 4 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 | « src/gpu/GrPipelineBuilder.h ('k') | src/gpu/GrResourceProvider.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 * 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 "GrBlend.h" 10 #include "GrBlend.h"
11 #include "GrPaint.h" 11 #include "GrPaint.h"
12 #include "GrPipeline.h" 12 #include "GrPipeline.h"
13 #include "GrProcOptInfo.h" 13 #include "GrProcOptInfo.h"
14 #include "GrXferProcessor.h" 14 #include "GrXferProcessor.h"
15 #include "batches/GrBatch.h" 15 #include "batches/GrBatch.h"
16 #include "effects/GrPorterDuffXferProcessor.h" 16 #include "effects/GrPorterDuffXferProcessor.h"
17 17
18 GrPipelineBuilder::GrPipelineBuilder() 18 GrPipelineBuilder::GrPipelineBuilder()
19 : fFlags(0x0) 19 : fFlags(0x0)
20 , fUserStencilSettings(&GrUserStencilSettings::kUnused) 20 , fUserStencilSettings(&GrUserStencilSettings::kUnused)
21 , fDrawFace(kBoth_DrawFace) { 21 , fDrawFace(GrDrawFace::kBoth) {
22 SkDEBUGCODE(fBlockEffectRemovalCnt = 0;) 22 SkDEBUGCODE(fBlockEffectRemovalCnt = 0;)
23 } 23 }
24 24
25 GrPipelineBuilder::GrPipelineBuilder(const GrPaint& paint, bool useHWAA) 25 GrPipelineBuilder::GrPipelineBuilder(const GrPaint& paint, bool useHWAA)
26 : GrPipelineBuilder() { 26 : GrPipelineBuilder() {
27 SkDEBUGCODE(fBlockEffectRemovalCnt = 0;) 27 SkDEBUGCODE(fBlockEffectRemovalCnt = 0;)
28 28
29 for (int i = 0; i < paint.numColorFragmentProcessors(); ++i) { 29 for (int i = 0; i < paint.numColorFragmentProcessors(); ++i) {
30 fColorFragmentProcessors.emplace_back(SkRef(paint.getColorFragmentProces sor(i))); 30 fColorFragmentProcessors.emplace_back(SkRef(paint.getColorFragmentProces sor(i)));
31 } 31 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 fCoverageEffectCnt = pipelineBuilder->numCoverageFragmentProcessors(); 72 fCoverageEffectCnt = pipelineBuilder->numCoverageFragmentProcessors();
73 SkDEBUGCODE(++pipelineBuilder->fBlockEffectRemovalCnt;) 73 SkDEBUGCODE(++pipelineBuilder->fBlockEffectRemovalCnt;)
74 } 74 }
75 } 75 }
76 76
77 //////////////////////////////////////////////////////////////////////////////// 77 ////////////////////////////////////////////////////////////////////////////////
78 78
79 GrPipelineBuilder::~GrPipelineBuilder() { 79 GrPipelineBuilder::~GrPipelineBuilder() {
80 SkASSERT(0 == fBlockEffectRemovalCnt); 80 SkASSERT(0 == fBlockEffectRemovalCnt);
81 } 81 }
OLDNEW
« no previous file with comments | « src/gpu/GrPipelineBuilder.h ('k') | src/gpu/GrResourceProvider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698