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

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

Issue 1277233002: Make folder for batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 4 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/GrOvalRenderer.cpp ('k') | src/gpu/GrPipelineBuilder.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 "GrPipeline.h" 8 #include "GrPipeline.h"
9 9
10 #include "GrCaps.h" 10 #include "GrCaps.h"
11 #include "GrBatch.h"
12 #include "GrGpu.h" 11 #include "GrGpu.h"
13 #include "GrPipelineBuilder.h" 12 #include "GrPipelineBuilder.h"
14 #include "GrProcOptInfo.h" 13 #include "GrProcOptInfo.h"
15 #include "GrXferProcessor.h" 14 #include "GrXferProcessor.h"
16 15
16 #include "batches/GrBatch.h"
17
17 GrPipeline::GrPipeline(const GrPipelineBuilder& pipelineBuilder, 18 GrPipeline::GrPipeline(const GrPipelineBuilder& pipelineBuilder,
18 const GrProcOptInfo& colorPOI, 19 const GrProcOptInfo& colorPOI,
19 const GrProcOptInfo& coveragePOI, 20 const GrProcOptInfo& coveragePOI,
20 const GrCaps& caps, 21 const GrCaps& caps,
21 const GrScissorState& scissorState, 22 const GrScissorState& scissorState,
22 const GrXferProcessor::DstTexture* dstTexture) { 23 const GrXferProcessor::DstTexture* dstTexture) {
23 // Create XferProcessor from DS's XPFactory 24 // Create XferProcessor from DS's XPFactory
24 SkAutoTUnref<GrXferProcessor> xferProcessor( 25 SkAutoTUnref<GrXferProcessor> xferProcessor(
25 pipelineBuilder.getXPFactory()->createXferProcessor( 26 pipelineBuilder.getXPFactory()->createXferProcessor(
26 colorPOI, coveragePOI, pipelineBuilder.hasMixedSamples(), dstTexture , caps)); 27 colorPOI, coveragePOI, pipelineBuilder.hasMixedSamples(), dstTexture , caps));
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 175
175 for (int i = 0; i < this->numFragmentStages(); i++) { 176 for (int i = 0; i < this->numFragmentStages(); i++) {
176 if (!this->getFragmentStage(i).processor()->isEqual(*that.getFragmentSta ge(i).processor(), 177 if (!this->getFragmentStage(i).processor()->isEqual(*that.getFragmentSta ge(i).processor(),
177 ignoreCoordTransform s)) { 178 ignoreCoordTransform s)) {
178 return false; 179 return false;
179 } 180 }
180 } 181 }
181 return true; 182 return true;
182 } 183 }
183 184
OLDNEW
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/GrPipelineBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698