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

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: Fix build error related to isMultisamped renaming Created 5 years, 6 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 * 203 *
204 * @param target The render target to set. 204 * @param target The render target to set.
205 */ 205 */
206 void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef (target)); } 206 void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef (target)); }
207 207
208 /** 208 /**
209 * Returns whether the rasterizer and stencil test (if any) will run at a hi gher sample rate 209 * Returns whether the rasterizer and stencil test (if any) will run at a hi gher sample rate
210 * than the color buffer. In is scenario, the higher sample rate is resolved during blending. 210 * than the color buffer. In is scenario, the higher sample rate is resolved during blending.
211 */ 211 */
212 bool hasMixedSamples() const { 212 bool hasMixedSamples() const {
213 return this->isHWAntialias() && !fRenderTarget->isMultisampled(); 213 return this->isHWAntialias() && !fRenderTarget->isUnifiedMultisampled();
214 } 214 }
215 215
216 /// @} 216 /// @}
217 217
218 /////////////////////////////////////////////////////////////////////////// 218 ///////////////////////////////////////////////////////////////////////////
219 /// @name Stencil 219 /// @name Stencil
220 //// 220 ////
221 221
222 const GrStencilSettings& getStencil() const { return fStencilSettings; } 222 const GrStencilSettings& getStencil() const { return fStencilSettings; }
223 223
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 mutable GrProcOptInfo fCoverageProcInfo; 444 mutable GrProcOptInfo fCoverageProcInfo;
445 mutable bool fColorProcInfoValid; 445 mutable bool fColorProcInfoValid;
446 mutable bool fCoverageProcInfoValid; 446 mutable bool fCoverageProcInfoValid;
447 mutable GrColor fColorCache; 447 mutable GrColor fColorCache;
448 mutable GrColor fCoverageCache; 448 mutable GrColor fCoverageCache;
449 449
450 friend class GrPipeline; 450 friend class GrPipeline;
451 }; 451 };
452 452
453 #endif 453 #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