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

Unified Diff: include/gpu/GrClip.h

Issue 2196393007: Merge GrClipMaskManager into GrClipStackClip (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 4 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 | « gyp/gpu.gypi ('k') | include/gpu/GrContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrClip.h
diff --git a/include/gpu/GrClip.h b/include/gpu/GrClip.h
index c74d25d77a3ff61171b24d303bc6d9d790d28c55..03b9f65b9c4a99287a6cf87a893fe818cbdf6fcf 100644
--- a/include/gpu/GrClip.h
+++ b/include/gpu/GrClip.h
@@ -10,7 +10,6 @@
#include "GrFragmentProcessor.h"
#include "GrTypesPriv.h"
-#include "SkClipStack.h"
class GrDrawContext;
@@ -270,37 +269,4 @@ private:
bool fHasStencilClip;
};
-/**
- * GrClipStackClip can apply a generic SkClipStack to the draw state. It may generate clip masks or
- * write to the stencil buffer during apply().
- */
-class GrClipStackClip final : public GrClip {
-public:
- GrClipStackClip(const SkClipStack* stack = nullptr, const SkIPoint* origin = nullptr) {
- this->reset(stack, origin);
- }
-
- void reset(const SkClipStack* stack = nullptr, const SkIPoint* origin = nullptr) {
- fOrigin = origin ? *origin : SkIPoint::Make(0, 0);
- fStack.reset(SkSafeRef(stack));
- }
-
- const SkIPoint& origin() const { return fOrigin; }
- const SkClipStack* clipStack() const { return fStack; }
-
- bool quickContains(const SkRect&) const final;
- void getConservativeBounds(int width, int height, SkIRect* devResult,
- bool* isIntersectionOfRects) const final;
- bool apply(GrContext*,
- GrDrawContext*,
- const SkRect* devBounds,
- bool useHWAA,
- bool hasUserStencilSettings,
- GrAppliedClip* out) const final;
-
-private:
- SkIPoint fOrigin;
- SkAutoTUnref<const SkClipStack> fStack;
-};
-
#endif
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698