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

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

Issue 919683002: Remove canApplyCoverage from XP and all related functions in gpu code. (Closed) Base URL: https://skia.googlesource.com/skia.git@pdDstCopy
Patch Set: Created 5 years, 10 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 #ifndef GrPipelineBuilder_DEFINED 8 #ifndef GrPipelineBuilder_DEFINED
9 #define GrPipelineBuilder_DEFINED 9 #define GrPipelineBuilder_DEFINED
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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*); 48 void setFromPaint(const GrPaint&, GrRenderTarget*);
49 49
50 /// @} 50 /// @}
51 51
52 /** 52 /**
53 * Depending on features available in the underlying 3D API and the color bl end mode requested
54 * it may or may not be possible to correctly blend with fractional pixel co verage generated by
55 * the fragment shader.
56 *
57 * This function considers the current GrPipelineBuilder and the draw target 's capabilities to
58 * determine whether coverage can be handled correctly. This function assume s that the caller
59 * intends to specify fractional pixel coverage via a primitive processor bu t may not have
60 * specified it yet.
61 */
62 bool canUseFracCoveragePrimProc(GrColor color, const GrDrawTargetCaps& caps) const;
bsalomon 2015/02/11 15:54:17 awww, im gonna miss this guy.
63
64 /**
65 * This function returns true if the render target destination pixel values will be read for 53 * This function returns true if the render target destination pixel values will be read for
66 * blending during draw. 54 * blending during draw.
67 */ 55 */
68 bool willBlendWithDst(const GrPrimitiveProcessor*) const; 56 bool willBlendWithDst(const GrPrimitiveProcessor*) const;
69 57
70 /////////////////////////////////////////////////////////////////////////// 58 ///////////////////////////////////////////////////////////////////////////
71 /// @name Effect Stages 59 /// @name Effect Stages
72 /// Each stage hosts a GrProcessor. The effect produces an output color or c overage in the 60 /// Each stage hosts a GrProcessor. The effect produces an output color or c overage in the
73 /// fragment shader. Its inputs are the output from the previous stage as we ll as some variables 61 /// fragment shader. Its inputs are the output from the previous stage as we ll as some variables
74 /// available to it in the fragment and vertex shader (e.g. the vertex posit ion, the dst color, 62 /// available to it in the fragment and vertex shader (e.g. the vertex posit ion, the dst color,
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 mutable GrProcOptInfo fCoverageProcInfo; 450 mutable GrProcOptInfo fCoverageProcInfo;
463 mutable bool fColorProcInfoValid; 451 mutable bool fColorProcInfoValid;
464 mutable bool fCoverageProcInfoValid; 452 mutable bool fCoverageProcInfoValid;
465 mutable GrColor fColorCache; 453 mutable GrColor fColorCache;
466 mutable GrColor fCoverageCache; 454 mutable GrColor fCoverageCache;
467 455
468 friend class GrPipeline; 456 friend class GrPipeline;
469 }; 457 };
470 458
471 #endif 459 #endif
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