| Index: include/gpu/GrTypesPriv.h
|
| diff --git a/include/gpu/GrTypesPriv.h b/include/gpu/GrTypesPriv.h
|
| index 18bc6449aad110f0f51a450d9cb26fd44413bebc..6a6fd54c7ba5488b2bbfd19eb7c9a3350fe93a41 100644
|
| --- a/include/gpu/GrTypesPriv.h
|
| +++ b/include/gpu/GrTypesPriv.h
|
| @@ -401,6 +401,8 @@ enum GrIOType {
|
|
|
| struct GrScissorState {
|
| GrScissorState() : fEnabled(false) {}
|
| + GrScissorState(const SkIRect& rect) : fEnabled(true), fRect(rect) {}
|
| + void setDisabled() { fEnabled = false; }
|
| void set(const SkIRect& rect) { fRect = rect; fEnabled = true; }
|
| bool operator==(const GrScissorState& other) const {
|
| return fEnabled == other.fEnabled &&
|
|
|