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

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

Issue 1952323002: Remove hasMixedSamples() from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Comments Created 4 years, 7 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/GrPipeline.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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 */ 186 */
187 GrRenderTarget* getRenderTarget() const { return fRenderTarget.get(); } 187 GrRenderTarget* getRenderTarget() const { return fRenderTarget.get(); }
188 188
189 /** 189 /**
190 * Sets the render-target used at the next drawing call 190 * Sets the render-target used at the next drawing call
191 * 191 *
192 * @param target The render target to set. 192 * @param target The render target to set.
193 */ 193 */
194 void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef (target)); } 194 void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef (target)); }
195 195
196 /**
197 * Returns whether the rasterizer and stencil test (if any) will run at a hi gher sample rate
198 * than the color buffer. In is scenario, the higher sample rate is resolved during blending.
199 */
200 bool hasMixedSamples() const {
201 return fRenderTarget->hasMixedSamples() &&
202 (this->isHWAntialias() || !fStencilSettings.isDisabled());
203 }
204
205 /// @} 196 /// @}
206 197
207 /////////////////////////////////////////////////////////////////////////// 198 ///////////////////////////////////////////////////////////////////////////
208 /// @name Stencil 199 /// @name Stencil
209 //// 200 ////
210 201
211 const GrStencilSettings& getStencil() const { return fStencilSettings; } 202 const GrStencilSettings& getStencil() const { return fStencilSettings; }
212 203
213 /** 204 /**
214 * Sets the stencil settings to use for the next draw. 205 * Sets the stencil settings to use for the next draw.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 mutable SkAutoTUnref<const GrXPFactory> fXPFactory; 376 mutable SkAutoTUnref<const GrXPFactory> fXPFactory;
386 FragmentProcessorArray fColorFragmentProcessors; 377 FragmentProcessorArray fColorFragmentProcessors;
387 FragmentProcessorArray fCoverageFragmentProcessors; 378 FragmentProcessorArray fCoverageFragmentProcessors;
388 GrClip fClip; 379 GrClip fClip;
389 380
390 friend class GrPipeline; 381 friend class GrPipeline;
391 friend class GrDrawTarget; 382 friend class GrDrawTarget;
392 }; 383 };
393 384
394 #endif 385 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPipeline.cpp ('k') | src/gpu/GrPipelineBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698