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

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

Issue 1001503002: Implement support for mixed sampled render targets (Closed) Base URL: https://skia.googlesource.com/skia.git@mix1
Patch Set: PipelineStage enum relocation 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
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 #ifndef GrPipelineBuilder_DEFINED 8 #ifndef GrPipelineBuilder_DEFINED
9 #define GrPipelineBuilder_DEFINED 9 #define GrPipelineBuilder_DEFINED
10 10
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 virtual ~GrPipelineBuilder(); 40 virtual ~GrPipelineBuilder();
41 41
42 /** 42 /**
43 * Initializes the GrPipelineBuilder based on a GrPaint, view matrix and ren der target. Note 43 * Initializes the GrPipelineBuilder based on a GrPaint, view matrix and ren der target. Note
44 * that GrPipelineBuilder encompasses more than GrPaint. Aspects of GrPipeli neBuilder that have 44 * that GrPipelineBuilder encompasses more than GrPaint. Aspects of GrPipeli neBuilder that have
45 * no GrPaint equivalents are set to default values with the exception of ve rtex attribute state 45 * no GrPaint equivalents are set to default values with the exception of ve rtex attribute state
46 * which is unmodified by this function and clipping which will be enabled. 46 * which is unmodified by this function and clipping which will be enabled.
47 */ 47 */
48 void setFromPaint(const GrPaint&, GrRenderTarget*, const GrClip&); 48 void setFromPaint(const GrPaint&, GrRenderTarget*, const GrClip&,
49 GrRenderTarget::PipelineStage pipelineStage =
Chris Dalton 2015/03/20 07:01:45 I think it's a little confusing to pass a paramete
50 GrRenderTarget::kEverywhere_PipelineStage);
49 51
50 /////////////////////////////////////////////////////////////////////////// 52 ///////////////////////////////////////////////////////////////////////////
51 /// @name Fragment Processors 53 /// @name Fragment Processors
52 /// 54 ///
53 /// GrFragmentProcessors are used to compute per-pixel color and per-pixel f ractional coverage. 55 /// GrFragmentProcessors are used to compute per-pixel color and per-pixel f ractional coverage.
54 /// There are two chains of FPs, one for color and one for coverage. The fir st FP in each 56 /// There are two chains of FPs, one for color and one for coverage. The fir st FP in each
55 /// chain gets the initial color/coverage from the GrPrimitiveProcessor. It computes an output 57 /// chain gets the initial color/coverage from the GrPrimitiveProcessor. It computes an output
56 /// color/coverage which is fed to the next FP in the chain. The last color and coverage FPs 58 /// color/coverage which is fed to the next FP in the chain. The last color and coverage FPs
57 /// feed their output to the GrXferProcessor which controls blending. 59 /// feed their output to the GrXferProcessor which controls blending.
58 //// 60 ////
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 mutable GrProcOptInfo fCoverageProcInfo; 436 mutable GrProcOptInfo fCoverageProcInfo;
435 mutable bool fColorProcInfoValid; 437 mutable bool fColorProcInfoValid;
436 mutable bool fCoverageProcInfoValid; 438 mutable bool fCoverageProcInfoValid;
437 mutable GrColor fColorCache; 439 mutable GrColor fColorCache;
438 mutable GrColor fCoverageCache; 440 mutable GrColor fCoverageCache;
439 441
440 friend class GrPipeline; 442 friend class GrPipeline;
441 }; 443 };
442 444
443 #endif 445 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698