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

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

Issue 1133123009: rename GrDrawTargetCaps to GrCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix gypi filename Created 5 years, 7 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/GrPipeline.h ('k') | src/gpu/GrPipelineBuilder.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 "GrPipeline.h" 8 #include "GrPipeline.h"
9 9
10 #include "GrBatch.h" 10 #include "GrBatch.h"
11 #include "GrDrawTargetCaps.h" 11 #include "GrDrawTargetCaps.h"
12 #include "GrGpu.h" 12 #include "GrGpu.h"
13 #include "GrPipelineBuilder.h" 13 #include "GrPipelineBuilder.h"
14 #include "GrProcOptInfo.h" 14 #include "GrProcOptInfo.h"
15 #include "GrXferProcessor.h" 15 #include "GrXferProcessor.h"
16 16
17 GrPipeline::GrPipeline(const GrPipelineBuilder& pipelineBuilder, 17 GrPipeline::GrPipeline(const GrPipelineBuilder& pipelineBuilder,
18 const GrProcOptInfo& colorPOI, 18 const GrProcOptInfo& colorPOI,
19 const GrProcOptInfo& coveragePOI, 19 const GrProcOptInfo& coveragePOI,
20 const GrDrawTargetCaps& caps, 20 const GrCaps& caps,
21 const GrScissorState& scissorState, 21 const GrScissorState& scissorState,
22 const GrDeviceCoordTexture* dstCopy) { 22 const GrDeviceCoordTexture* dstCopy) {
23 // Create XferProcessor from DS's XPFactory 23 // Create XferProcessor from DS's XPFactory
24 SkAutoTUnref<GrXferProcessor> xferProcessor( 24 SkAutoTUnref<GrXferProcessor> xferProcessor(
25 pipelineBuilder.getXPFactory()->createXferProcessor(colorPOI, coveragePO I, dstCopy, caps)); 25 pipelineBuilder.getXPFactory()->createXferProcessor(colorPOI, coveragePO I, dstCopy, caps));
26 26
27 GrColor overrideColor = GrColor_ILLEGAL; 27 GrColor overrideColor = GrColor_ILLEGAL;
28 if (colorPOI.firstEffectiveStageIndex() != 0) { 28 if (colorPOI.firstEffectiveStageIndex() != 0) {
29 overrideColor = colorPOI.inputColorToEffectiveStage(); 29 overrideColor = colorPOI.inputColorToEffectiveStage();
30 } 30 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 SkASSERT(this->numFragmentStages() == that.numFragmentStages()); 153 SkASSERT(this->numFragmentStages() == that.numFragmentStages());
154 for (int i = 0; i < this->numFragmentStages(); i++) { 154 for (int i = 0; i < this->numFragmentStages(); i++) {
155 155
156 if (this->getFragmentStage(i) != that.getFragmentStage(i)) { 156 if (this->getFragmentStage(i) != that.getFragmentStage(i)) {
157 return false; 157 return false;
158 } 158 }
159 } 159 }
160 return true; 160 return true;
161 } 161 }
162 162
OLDNEW
« no previous file with comments | « src/gpu/GrPipeline.h ('k') | src/gpu/GrPipelineBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698