| Index: src/gpu/GrClip.cpp
|
| diff --git a/src/gpu/GrClip.cpp b/src/gpu/GrClip.cpp
|
| index 63d8f5169510780099aac011c10131b101e47221..1dc6edc16812fd835c5f3bbd388b276abcd32ca7 100644
|
| --- a/src/gpu/GrClip.cpp
|
| +++ b/src/gpu/GrClip.cpp
|
| @@ -21,6 +21,8 @@
|
| void GrClip::getConservativeBounds(int width, int height, SkIRect* devResult,
|
| bool* isIntersectionOfRects) const {
|
| switch (fClipType) {
|
| + default:
|
| + SkFAIL("incomplete switch\n");
|
| case kWideOpen_ClipType: {
|
| devResult->setLTRB(0, 0, width, height);
|
| if (isIntersectionOfRects) {
|
| @@ -29,15 +31,6 @@
|
| } break;
|
| case kIRect_ClipType: {
|
| *devResult = this->irect();
|
| - if (isIntersectionOfRects) {
|
| - *isIntersectionOfRects = true;
|
| - }
|
| - } break;
|
| - case kRect_ClipType: {
|
| - devResult->setLTRB(SkScalarCeilToInt(this->rect().fLeft),
|
| - SkScalarCeilToInt(this->rect().fTop),
|
| - SkScalarCeilToInt(this->rect().fRight),
|
| - SkScalarCeilToInt(this->rect().fBottom));
|
| if (isIntersectionOfRects) {
|
| *isIntersectionOfRects = true;
|
| }
|
|
|