| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2011 Google Inc. | 2  * Copyright 2011 Google Inc. | 
| 3  * | 3  * | 
| 4  * Use of this source code is governed by a BSD-style license that can be | 4  * Use of this source code is governed by a BSD-style license that can be | 
| 5  * found in the LICENSE file. | 5  * found in the LICENSE file. | 
| 6  */ | 6  */ | 
| 7 | 7 | 
| 8 #include "SampleCode.h" | 8 #include "SampleCode.h" | 
| 9 #include "SkView.h" | 9 #include "SkView.h" | 
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" | 
| 11 #include "SkGradientShader.h" | 11 #include "SkGradientShader.h" | 
| 12 #include "SkPath.h" | 12 #include "SkPath.h" | 
| 13 #include "SkRegion.h" | 13 #include "SkRegion.h" | 
| 14 #include "SkShader.h" | 14 #include "SkShader.h" | 
| 15 #include "SkUtils.h" | 15 #include "SkUtils.h" | 
| 16 #include "SkImageDecoder.h" |  | 
| 17 | 16 | 
| 18 #include <math.h> | 17 #include <math.h> | 
| 19 | 18 | 
| 20 static void test_strokerect(SkCanvas* canvas) { | 19 static void test_strokerect(SkCanvas* canvas) { | 
| 21     int width = 100; | 20     int width = 100; | 
| 22     int height = 100; | 21     int height = 100; | 
| 23 | 22 | 
| 24     SkBitmap bitmap; | 23     SkBitmap bitmap; | 
| 25     bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2)); | 24     bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2)); | 
| 26     bitmap.eraseColor(SK_ColorTRANSPARENT); | 25     bitmap.eraseColor(SK_ColorTRANSPARENT); | 
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 403 private: | 402 private: | 
| 404     SkIRect    fBase, fRect; | 403     SkIRect    fBase, fRect; | 
| 405 | 404 | 
| 406     typedef SampleView INHERITED; | 405     typedef SampleView INHERITED; | 
| 407 }; | 406 }; | 
| 408 | 407 | 
| 409 ////////////////////////////////////////////////////////////////////////////// | 408 ////////////////////////////////////////////////////////////////////////////// | 
| 410 | 409 | 
| 411 static SkView* MyFactory() { return new RegionView; } | 410 static SkView* MyFactory() { return new RegionView; } | 
| 412 static SkViewRegister reg(MyFactory); | 411 static SkViewRegister reg(MyFactory); | 
| OLD | NEW | 
|---|