diff options
author | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-23 18:19:56 +0000 |
---|---|---|
committer | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-23 18:19:56 +0000 |
commit | ae933ce0ea5fd9d21cb6ef2cee7e729d32690aac (patch) | |
tree | 62d80e33b16679d01454cf814977a7030d3a5462 /samplecode/SampleAAClip.cpp | |
parent | d6176b0dcacb124539e0cfd051e6d93a9782f020 (diff) |
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)
This CL is part III of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6475053
git-svn-id: http://skia.googlecode.com/svn/trunk@5264 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleAAClip.cpp')
-rw-r--r-- | samplecode/SampleAAClip.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/samplecode/SampleAAClip.cpp b/samplecode/SampleAAClip.cpp index d2931fabf6..196641e201 100644 --- a/samplecode/SampleAAClip.cpp +++ b/samplecode/SampleAAClip.cpp @@ -17,7 +17,7 @@ static void testop(const SkIRect& r0, const SkIRect& r1, SkRegion::Op op, c0.setRect(r0); c1.setRect(r1); c2.op(c0, c1, op); - + SkIRect r2 = c2.getBounds(); SkASSERT(r2 == expectedR); } @@ -42,7 +42,7 @@ static void testop() { static void drawClip(SkCanvas* canvas, const SkAAClip& clip) { SkMask mask; SkBitmap bm; - + clip.copyToMask(&mask); SkAutoMaskFreeImage amfi(mask.fImage); @@ -78,7 +78,7 @@ protected: SkAAClip aaclip; SkPath path; SkRect bounds; - + bounds.set(0, 0, 20, 20); bounds.inset(SK_ScalarHalf, SK_ScalarHalf); @@ -99,15 +99,15 @@ protected: aaclip3.op(aaclip, aaclip2, SkRegion::kIntersect_Op); canvas->translate(30, 0); drawClip(canvas, aaclip3); - + #endif - + #if 0 SkRect r; r.set(0, 0, this->width(), this->height()); r.inset(20, 20); canvas->clipRect(r); - + SkPath path; path.addRect(r); SkPaint paint; |