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

Unified Diff: tests/GpuDrawPathTest.cpp

Issue 1967513002: Revert of Replace GrStrokeInfo with GrStyle. (Closed) Base URL: https://chromium.googlesource.com/skia.git@resscale
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/text/GrStencilAndCoverTextContext.cpp ('k') | tests/TessellatingPathRendererTests.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/GpuDrawPathTest.cpp
diff --git a/tests/GpuDrawPathTest.cpp b/tests/GpuDrawPathTest.cpp
index dc8db0ff70f09b12720d97e206ff8264986c8440..2dc7702fffa7d0fcf808cab55c2889afa52885b3 100644
--- a/tests/GpuDrawPathTest.cpp
+++ b/tests/GpuDrawPathTest.cpp
@@ -11,7 +11,7 @@
#include "GrContext.h"
#include "GrPath.h"
-#include "GrStyle.h"
+#include "GrStrokeInfo.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColor.h"
@@ -104,8 +104,9 @@
bool isVolatile;
GrUniqueKey key1, key2;
- GrPath::ComputeKey(path1, GrStyle::SimpleFill(), &key1, &isVolatile);
- GrPath::ComputeKey(path2, GrStyle::SimpleFill(), &key2, &isVolatile);
+ GrStrokeInfo stroke(SkStrokeRec::kFill_InitStyle);
+ GrPath::ComputeKey(path1, stroke, &key1, &isVolatile);
+ GrPath::ComputeKey(path2, stroke, &key2, &isVolatile);
REPORTER_ASSERT(reporter, key1 != key2);
}
« no previous file with comments | « src/gpu/text/GrStencilAndCoverTextContext.cpp ('k') | tests/TessellatingPathRendererTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698