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

Side by Side Diff: src/gpu/instanced/InstanceProcessor.cpp

Issue 2468653002: Remove GrStencilSettings from GrPipeline (Closed)
Patch Set: Remove GrStencilSettings from GrPipeline Created 4 years, 1 month 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/glsl/GrGLSLFragmentShaderBuilder.cpp ('k') | src/gpu/vk/GrVkPipeline.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 2016 Google Inc. 2 * Copyright 2016 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 "InstanceProcessor.h" 8 #include "InstanceProcessor.h"
9 9
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 switch (batchInfo.fAntialiasMode) { 1694 switch (batchInfo.fAntialiasMode) {
1695 default: 1695 default:
1696 SkFAIL("Unexpected antialias mode."); 1696 SkFAIL("Unexpected antialias mode.");
1697 case AntialiasMode::kNone: 1697 case AntialiasMode::kNone:
1698 return new BackendNonAA(batchInfo, inputs); 1698 return new BackendNonAA(batchInfo, inputs);
1699 case AntialiasMode::kCoverage: 1699 case AntialiasMode::kCoverage:
1700 return new BackendCoverage(batchInfo, inputs); 1700 return new BackendCoverage(batchInfo, inputs);
1701 case AntialiasMode::kMSAA: 1701 case AntialiasMode::kMSAA:
1702 case AntialiasMode::kMixedSamples: { 1702 case AntialiasMode::kMixedSamples: {
1703 const GrRenderTargetPriv& rtp = pipeline.getRenderTarget()->renderTa rgetPriv(); 1703 const GrRenderTargetPriv& rtp = pipeline.getRenderTarget()->renderTa rgetPriv();
1704 const GrGpu::MultisampleSpecs& specs = rtp.getMultisampleSpecs(pipel ine.getStencil()); 1704 const GrGpu::MultisampleSpecs& specs = rtp.getMultisampleSpecs(pipel ine);
1705 return new BackendMultisample(batchInfo, inputs, specs.fEffectiveSam pleCnt); 1705 return new BackendMultisample(batchInfo, inputs, specs.fEffectiveSam pleCnt);
1706 } 1706 }
1707 } 1707 }
1708 } 1708 }
1709 1709
1710 //////////////////////////////////////////////////////////////////////////////// //////////////////// 1710 //////////////////////////////////////////////////////////////////////////////// ////////////////////
1711 1711
1712 const ShapeVertex kVertexData[] = { 1712 const ShapeVertex kVertexData[] = {
1713 // Rectangle. 1713 // Rectangle.
1714 {+1, +1, ~0}, /*0*/ 1714 {+1, +1, ~0}, /*0*/
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 2113
2114 case kCorneredRect_FirstIndex: return "basic_round_rect"; 2114 case kCorneredRect_FirstIndex: return "basic_round_rect";
2115 case kCorneredFramedRect_FirstIndex: return "coverage_round_rect"; 2115 case kCorneredFramedRect_FirstIndex: return "coverage_round_rect";
2116 case kCorneredRectFanned_FirstIndex: return "mixed_samples_round_rect"; 2116 case kCorneredRectFanned_FirstIndex: return "mixed_samples_round_rect";
2117 2117
2118 default: return "unknown"; 2118 default: return "unknown";
2119 } 2119 }
2120 } 2120 }
2121 2121
2122 } 2122 }
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp ('k') | src/gpu/vk/GrVkPipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698