OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 /* Description: | 8 /* Description: |
9 * This test defines a series of elementatry test steps that perform | 9 * This test defines a series of elementatry test steps that perform |
10 * a single or a small group of canvas API calls. Each test step is | 10 * a single or a small group of canvas API calls. Each test step is |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 , fPoints(kTestPoints) | 112 , fPoints(kTestPoints) |
113 , fPointCount(3) | 113 , fPointCount(3) |
114 , fWidth(2) | 114 , fWidth(2) |
115 , fHeight(2) | 115 , fHeight(2) |
116 , fText("Hello World") | 116 , fText("Hello World") |
117 , fPoints2(kTestPoints2) | 117 , fPoints2(kTestPoints2) |
118 , fBitmap(TestBitmap()) | 118 , fBitmap(TestBitmap()) |
119 { } | 119 { } |
120 | 120 |
121 SkRect fRect; | 121 SkRect fRect; |
122 SkMatrix fMatrix;; | 122 SkMatrix fMatrix; |
123 SkPath fPath; | 123 SkPath fPath; |
124 SkPath fNearlyZeroLengthPath; | 124 SkPath fNearlyZeroLengthPath; |
125 SkIRect fIRect; | 125 SkIRect fIRect; |
126 SkRegion fRegion; | 126 SkRegion fRegion; |
127 SkColor fColor; | 127 SkColor fColor; |
128 SkPaint fPaint; | 128 SkPaint fPaint; |
129 const SkPoint* fPoints; | 129 const SkPoint* fPoints; |
130 size_t fPointCount; | 130 size_t fPointCount; |
131 int fWidth; | 131 int fWidth; |
132 int fHeight; | 132 int fHeight; |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 canvas.restore(); | 770 canvas.restore(); |
771 canvas.save(); | 771 canvas.save(); |
772 path.moveTo(5, 5); | 772 path.moveTo(5, 5); |
773 canvas.clipPath(path); | 773 canvas.clipPath(path); |
774 canvas.restore(); | 774 canvas.restore(); |
775 canvas.save(); | 775 canvas.save(); |
776 path.moveTo(7, 7); | 776 path.moveTo(7, 7); |
777 canvas.clipPath(path); // should not assert here | 777 canvas.clipPath(path); // should not assert here |
778 canvas.restore(); | 778 canvas.restore(); |
779 } | 779 } |
OLD | NEW |