OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "gm.h" | 8 #include "gm.h" |
9 | 9 |
10 #include "SkColorFilter.h" | 10 #include "SkColorFilter.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 tri.rLineTo(-kTriSide, 0); | 147 tri.rLineTo(-kTriSide, 0); |
148 tri.close(); | 148 tri.close(); |
149 return tri; | 149 return tri; |
150 } | 150 } |
151 | 151 |
152 static const SkPicture* make_tri_picture() { | 152 static const SkPicture* make_tri_picture() { |
153 SkPath tri = make_tri_path(SkScalarHalf(kTriSide), 0); | 153 SkPath tri = make_tri_path(SkScalarHalf(kTriSide), 0); |
154 | 154 |
155 SkPaint fill; | 155 SkPaint fill; |
156 fill.setStyle(SkPaint::kFill_Style); | 156 fill.setStyle(SkPaint::kFill_Style); |
157 fill.setColor(SK_ColorLTGRAY);; | 157 fill.setColor(SK_ColorLTGRAY); |
158 | 158 |
159 SkPaint stroke; | 159 SkPaint stroke; |
160 stroke.setStyle(SkPaint::kStroke_Style); | 160 stroke.setStyle(SkPaint::kStroke_Style); |
161 stroke.setStrokeWidth(3); | 161 stroke.setStrokeWidth(3); |
162 | 162 |
163 SkPictureRecorder recorder; | 163 SkPictureRecorder recorder; |
164 SkRTreeFactory bbhFactory; | 164 SkRTreeFactory bbhFactory; |
165 | 165 |
166 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kPicWidth), | 166 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kPicWidth), |
167 SkIntToScalar(kPicHeight), | 167 SkIntToScalar(kPicHeight), |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 MultiPictureDraw::kTiled_Layout)
);) | 563 MultiPictureDraw::kTiled_Layout)
);) |
564 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kPathClipMulti
_Content, | 564 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kPathClipMulti
_Content, |
565 MultiPictureDraw::kTiled_Layout)
);) | 565 MultiPictureDraw::kTiled_Layout)
);) |
566 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kInvPathClipMu
lti_Content, | 566 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kInvPathClipMu
lti_Content, |
567 MultiPictureDraw::kTiled_Layout)
);) | 567 MultiPictureDraw::kTiled_Layout)
);) |
568 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kSierpinski_Co
ntent, | 568 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kSierpinski_Co
ntent, |
569 MultiPictureDraw::kTiled_Layout)
);) | 569 MultiPictureDraw::kTiled_Layout)
);) |
570 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kBigLayer_Cont
ent, | 570 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kBigLayer_Cont
ent, |
571 MultiPictureDraw::kTiled_Layout)
);) | 571 MultiPictureDraw::kTiled_Layout)
);) |
572 } | 572 } |
OLD | NEW |