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

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: Rebase on top of text context patch 2 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 GrPipelineStage pipelineStage = kEverywhere_GrPipelineStag e);
49 50
50 /////////////////////////////////////////////////////////////////////////// 51 ///////////////////////////////////////////////////////////////////////////
51 /// @name Fragment Processors 52 /// @name Fragment Processors
52 /// 53 ///
53 /// GrFragmentProcessors are used to compute per-pixel color and per-pixel f ractional coverage. 54 /// 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 55 /// 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 56 /// 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 57 /// 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. 58 /// feed their output to the GrXferProcessor which controls blending.
58 //// 59 ////
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 mutable GrProcOptInfo fCoverageProcInfo; 435 mutable GrProcOptInfo fCoverageProcInfo;
435 mutable bool fColorProcInfoValid; 436 mutable bool fColorProcInfoValid;
436 mutable bool fCoverageProcInfoValid; 437 mutable bool fCoverageProcInfoValid;
437 mutable GrColor fColorCache; 438 mutable GrColor fColorCache;
438 mutable GrColor fCoverageCache; 439 mutable GrColor fCoverageCache;
439 440
440 friend class GrPipeline; 441 friend class GrPipeline;
441 }; 442 };
442 443
443 #endif 444 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698