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

Unified Diff: src/gpu/GrClipMaskManager.h

Issue 815553003: Move ViewMatrix off of drawstate (Closed) Base URL: https://skia.googlesource.com/skia.git@remove-fragment-stage
Patch Set: more claenup Created 6 years 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/GrClipMaskManager.h
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h
index c17231e0ec1f525a6c78aa542507be9529458c43..e12afb17825a92046ed720eded0ead9a9649ae29 100644
--- a/src/gpu/GrClipMaskManager.h
+++ b/src/gpu/GrClipMaskManager.h
@@ -53,6 +53,7 @@ public:
GrDrawState::AutoRestoreStencil*,
GrScissorState*,
const GrClipData* clipDataIn,
+ const SkMatrix& viewMatrix,
const SkRect* devBounds);
/**
@@ -131,12 +132,15 @@ private:
const SkIRect& clipSpaceIBounds,
bool willUpload);
- bool useSWOnlyPath(const GrDrawState*, const GrReducedClip::ElementList& elements);
+ bool useSWOnlyPath(const GrDrawState*,
+ const SkMatrix& viewMatrix,
+ const GrReducedClip::ElementList& elements);
// Draws a clip element into the target alpha mask. The caller should have already setup the
// desired blend operation. Optionally if the caller already selected a path renderer it can
// be passed. Otherwise the function will select one if the element is a path.
bool drawElement(GrDrawState*,
+ const SkMatrix& viewMatrix,
GrTexture* target,
const SkClipStack::Element*,
GrPathRenderer* pr = NULL);

Powered by Google App Engine
This is Rietveld 408576698