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

Unified Diff: src/gpu/GrClip.cpp

Issue 2147443004: Retract PipelineBuilder from GrClip::apply (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Appease some compilers Created 4 years, 5 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
« no previous file with comments | « include/gpu/GrClip.h ('k') | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrClip.cpp
diff --git a/src/gpu/GrClip.cpp b/src/gpu/GrClip.cpp
index b0577c51222814a0c8f1df815ad9bd0686ca5a2b..f55a2499b47e8340b45c33f94338c2e04a0548e9 100644
--- a/src/gpu/GrClip.cpp
+++ b/src/gpu/GrClip.cpp
@@ -41,9 +41,12 @@ void GrFixedClip::getConservativeBounds(int width, int height, SkIRect* devResul
}
}
-bool GrFixedClip::apply(GrContext*, const GrPipelineBuilder& pipelineBuilder,
+bool GrFixedClip::apply(GrContext*,
GrDrawContext* drawContext,
- const SkRect* devBounds, GrAppliedClip* out) const {
+ const SkRect* devBounds,
+ bool isHWAntiAlias,
+ bool hasUserStencilSettings,
+ GrAppliedClip* out) const {
SkASSERT(!fDeviceBounds.isLargest());
if (fScissorState.enabled()) {
SkIRect tightScissor;
@@ -90,8 +93,11 @@ void GrClipStackClip::getConservativeBounds(int width, int height, SkIRect* devR
}
bool GrClipStackClip::apply(GrContext* context,
- const GrPipelineBuilder& pipelineBuilder, GrDrawContext* drawContext,
- const SkRect* devBounds, GrAppliedClip* out) const {
- return GrClipMaskManager::SetupClipping(context, pipelineBuilder, drawContext,
- *this, devBounds, out);
+ GrDrawContext* drawContext,
+ const SkRect* devBounds,
+ bool useHWAA,
+ bool hasUserStencilSettings,
+ GrAppliedClip* out) const {
+ return GrClipMaskManager::SetupClipping(context, drawContext, *this, devBounds,
+ useHWAA, hasUserStencilSettings, out);
}
« no previous file with comments | « include/gpu/GrClip.h ('k') | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698