Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Side by Side Diff: tests/DrawPathTest.cpp

Issue 1312163008: Forward declare SkStrokeRec in SkPathEffect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/DashPathEffectTest.cpp ('k') | tests/PathTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkDashPathEffect.h" 10 #include "SkDashPathEffect.h"
11 #include "SkStrokeRec.h"
11 #include "SkSurface.h" 12 #include "SkSurface.h"
12 #include "Test.h" 13 #include "Test.h"
13 14
14 // test that we can draw an aa-rect at coordinates > 32K (bigger than fixedpoint ) 15 // test that we can draw an aa-rect at coordinates > 32K (bigger than fixedpoint )
15 static void test_big_aa_rect(skiatest::Reporter* reporter) { 16 static void test_big_aa_rect(skiatest::Reporter* reporter) {
16 SkBitmap output; 17 SkBitmap output;
17 SkPMColor pixel[1]; 18 SkPMColor pixel[1];
18 output.installPixels(SkImageInfo::MakeN32Premul(1, 1), pixel, 4); 19 output.installPixels(SkImageInfo::MakeN32Premul(1, 1), pixel, 4);
19 20
20 SkSurface* surf = SkSurface::NewRasterN32Premul(300, 33300); 21 SkSurface* surf = SkSurface::NewRasterN32Premul(300, 33300);
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 test_crbug_124652(); 281 test_crbug_124652();
281 test_crbug_140642(); 282 test_crbug_140642();
282 test_crbug_140803(); 283 test_crbug_140803();
283 test_inversepathwithclip(); 284 test_inversepathwithclip();
284 // why? 285 // why?
285 if (false) test_crbug131181(); 286 if (false) test_crbug131181();
286 test_infinite_dash(reporter); 287 test_infinite_dash(reporter);
287 test_crbug_165432(reporter); 288 test_crbug_165432(reporter);
288 test_big_aa_rect(reporter); 289 test_big_aa_rect(reporter);
289 } 290 }
OLDNEW
« no previous file with comments | « tests/DashPathEffectTest.cpp ('k') | tests/PathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698