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

Unified Diff: src/gpu/GrPipelineBuilder.h

Issue 2035823002: Make GrClipMaskManager stateless and push GrPipelineBuilder construction downstack (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review comments Created 4 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrPipelineBuilder.h
diff --git a/src/gpu/GrPipelineBuilder.h b/src/gpu/GrPipelineBuilder.h
index ca1adeee1b353fd360644dbbf0ee7dd69f24bbb5..11b427b71b8f22ed3be30fa1114b4cf46fe87712 100644
--- a/src/gpu/GrPipelineBuilder.h
+++ b/src/gpu/GrPipelineBuilder.h
@@ -198,9 +198,7 @@ public:
/// @name Stencil
////
- bool hasUserStencilSettings() const {
- return &GrUserStencilSettings::kUnused != fUserStencilSettings;
- }
+ bool hasUserStencilSettings() const { return !fUserStencilSettings->isUnused(); }
const GrUserStencilSettings* getUserStencil() const { return fUserStencilSettings; }
/**

Powered by Google App Engine
This is Rietveld 408576698