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

Side by Side Diff: tests/GpuDrawPathTest.cpp

Issue 1472733002: Include conic weights in GrPath cache kSimpleVolatilePathDomain keys (Closed) Base URL: https://skia.googlesource.com/skia.git@commandbuffer-as-api-02-other-tests-refactor
Patch Set: rebase Created 5 years 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 | « src/gpu/GrPath.cpp ('k') | no next file » | 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 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
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 SkPoint p1 = SkPoint::Make(100, 100); 121 SkPoint p1 = SkPoint::Make(100, 100);
122 122
123 path1.conicTo(p0, p1, .5f); 123 path1.conicTo(p0, p1, .5f);
124 path2.conicTo(p0, p1, .7f); 124 path2.conicTo(p0, p1, .7f);
125 125
126 bool isVolatile; 126 bool isVolatile;
127 GrUniqueKey key1, key2; 127 GrUniqueKey key1, key2;
128 GrStrokeInfo stroke(SkStrokeRec::kFill_InitStyle); 128 GrStrokeInfo stroke(SkStrokeRec::kFill_InitStyle);
129 GrPath::ComputeKey(path1, stroke, &key1, &isVolatile); 129 GrPath::ComputeKey(path1, stroke, &key1, &isVolatile);
130 GrPath::ComputeKey(path2, stroke, &key2, &isVolatile); 130 GrPath::ComputeKey(path2, stroke, &key2, &isVolatile);
131 131 REPORTER_ASSERT(reporter, key1 != key2);
132 // https://bugs.chromium.org/p/skia/issues/detail?id=4580
133 // REPORTER_ASSERT(reporter, key1 != key2);
134 } 132 }
135 133
136 #endif 134 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPath.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698