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

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

Issue 1229303003: Another trivial cleanup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks 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 | « src/gpu/GrProcOptInfo.h ('k') | src/gpu/effects/GrConfigConversionEffect.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 2014 Google Inc. 2 * Copyright 2014 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 "GrProcOptInfo.h" 8 #include "GrProcOptInfo.h"
9 9
10 #include "GrBatch.h" 10 #include "GrBatch.h"
11 #include "GrFragmentProcessor.h"
12 #include "GrFragmentStage.h"
13 #include "GrGeometryProcessor.h" 11 #include "GrGeometryProcessor.h"
14 12
15 void GrProcOptInfo::calcColorWithBatch(const GrBatch* batch, 13 void GrProcOptInfo::calcColorWithBatch(const GrBatch* batch,
16 const GrFragmentStage* stages, 14 const GrFragmentStage* stages,
17 int stageCount) { 15 int stageCount) {
18 GrInitInvariantOutput out; 16 GrInitInvariantOutput out;
19 batch->getInvariantOutputColor(&out); 17 batch->getInvariantOutputColor(&out);
20 fInOut.reset(out); 18 fInOut.reset(out);
21 this->internalCalc(stages, stageCount, batch->willReadFragmentPosition()); 19 this->internalCalc(stages, stageCount, batch->willReadFragmentPosition());
22 } 20 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 fInputColor = fInOut.color(); 86 fInputColor = fInOut.color();
89 fInputColorIsUsed = true; 87 fInputColorIsUsed = true;
90 // Since we are clearing all previous color stages we are in a state where we have found 88 // Since we are clearing all previous color stages we are in a state where we have found
91 // zero stages that don't multiply the inputColor. 89 // zero stages that don't multiply the inputColor.
92 fInOut.resetNonMulStageFound(); 90 fInOut.resetNonMulStageFound();
93 // Reset these since we don't care if previous stages read these val ues 91 // Reset these since we don't care if previous stages read these val ues
94 fReadsFragPosition = initWillReadFragmentPosition; 92 fReadsFragPosition = initWillReadFragmentPosition;
95 } 93 }
96 } 94 }
97 } 95 }
OLDNEW
« no previous file with comments | « src/gpu/GrProcOptInfo.h ('k') | src/gpu/effects/GrConfigConversionEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698