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

Unified Diff: src/gpu/GrClipMaskManager.h

Issue 367013003: Remove the AA requirement for selecting GrEffect-based clipping. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 6 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/GrClipMaskManager.h
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h
index c3a21fd8a2b1e9d6771ebde48bbdaa2731b28b85..49208dd5842b5a65c2e2b2c999cb9fabdac10eba 100644
--- a/src/gpu/GrClipMaskManager.h
+++ b/src/gpu/GrClipMaskManager.h
@@ -106,11 +106,14 @@ private:
GrClipMaskCache fAACache; // cache for the AA path
// Attempts to install a series of coverage effects to implement the clip. Return indicates
- // whether the element list was successfully converted to effects.
+ // whether the element list was successfully converted to effects. One of the elements may
+ // be selected to use the scissor. If so scissorRect will be updated to a valid rectangle
+ // that the caller should set as the scissor rect. If not, scissorRect won't be modified.
bool installClipEffects(const GrReducedClip::ElementList&,
GrDrawState::AutoRestoreEffects*,
const SkVector& clipOffset,
- const SkRect* devBounds);
+ const SkRect* devBound,
+ SkIRect* scissorRect);
// Draws the clip into the stencil buffer
bool createStencilClipMask(int32_t elementsGenID,

Powered by Google App Engine
This is Rietveld 408576698