| commit | 20efde71b4fd28691b10c8f1cfe15cb2aafddaea | [log] [tgz] |
|---|---|---|
| author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon May 09 17:00:02 2011 +0000 |
| committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon May 09 17:00:02 2011 +0000 |
| tree | 6c79559680135a2e8f1f85960035883a8cf7b915 | |
| parent | 59f9961d007b573aee350218f5c5e18e4a41a2f7 [diff] [blame] |
Share code with SkRect http://codereview.appspot.com/4523046/ git-svn-id: http://skia.googlecode.com/svn/trunk@1277 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrGpu.cpp b/gpu/src/GrGpu.cpp index 66105db..9950afd 100644 --- a/gpu/src/GrGpu.cpp +++ b/gpu/src/GrGpu.cpp
@@ -399,7 +399,9 @@ GrIntToScalar(rt.width()), GrIntToScalar(rt.height())); if (fClip.hasConservativeBounds()) { bounds = fClip.getConservativeBounds(); - bounds.intersectWith(rtRect); + if (!bounds.intersect(rtRect)) { + bounds.setEmpty(); + } } else { bounds = rtRect; }