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

Side by Side Diff: tests/GpuDrawPathTest.cpp

Issue 1957363002: Replace GrStrokeInfo with GrStyle. (Closed) Base URL: https://chromium.googlesource.com/skia.git@resscale
Patch Set: Fix issue where hairlines were going to MSAAPathRenderer Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 "SkTypes.h" 8 #include "SkTypes.h"
9 9
10 #if SK_SUPPORT_GPU 10 #if SK_SUPPORT_GPU
11 11
12 #include "GrContext.h" 12 #include "GrContext.h"
13 #include "GrPath.h" 13 #include "GrPath.h"
14 #include "GrStrokeInfo.h" 14 #include "GrStyle.h"
15 #include "SkBitmap.h" 15 #include "SkBitmap.h"
16 #include "SkCanvas.h" 16 #include "SkCanvas.h"
17 #include "SkColor.h" 17 #include "SkColor.h"
18 #include "SkPaint.h" 18 #include "SkPaint.h"
19 #include "SkPath.h" 19 #include "SkPath.h"
20 #include "SkDashPathEffect.h" 20 #include "SkDashPathEffect.h"
21 #include "SkRRect.h" 21 #include "SkRRect.h"
22 #include "SkRect.h" 22 #include "SkRect.h"
23 #include "SkSurface.h" 23 #include "SkSurface.h"
24 #include "Test.h" 24 #include "Test.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 path1.setIsVolatile(true); 97 path1.setIsVolatile(true);
98 path2.setIsVolatile(true); 98 path2.setIsVolatile(true);
99 SkPoint p0 = SkPoint::Make(100, 0); 99 SkPoint p0 = SkPoint::Make(100, 0);
100 SkPoint p1 = SkPoint::Make(100, 100); 100 SkPoint p1 = SkPoint::Make(100, 100);
101 101
102 path1.conicTo(p0, p1, .5f); 102 path1.conicTo(p0, p1, .5f);
103 path2.conicTo(p0, p1, .7f); 103 path2.conicTo(p0, p1, .7f);
104 104
105 bool isVolatile; 105 bool isVolatile;
106 GrUniqueKey key1, key2; 106 GrUniqueKey key1, key2;
107 GrStrokeInfo stroke(SkStrokeRec::kFill_InitStyle); 107 GrPath::ComputeKey(path1, GrStyle::SimpleFill(), &key1, &isVolatile);
108 GrPath::ComputeKey(path1, stroke, &key1, &isVolatile); 108 GrPath::ComputeKey(path2, GrStyle::SimpleFill(), &key2, &isVolatile);
109 GrPath::ComputeKey(path2, stroke, &key2, &isVolatile);
110 REPORTER_ASSERT(reporter, key1 != key2); 109 REPORTER_ASSERT(reporter, key1 != key2);
111 } 110 }
112 111
113 #endif 112 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698