Fix GpuDrawPathTest on ANGLE and enable it
Fix GpuDrawPathTest on ANGLE by avoiding a crash
if MSAA surface creation fails.
Enable the test.
BUG=skia:4581
Review URL: https://codereview.chromium.org/1463493002
diff --git a/tests/GpuDrawPathTest.cpp b/tests/GpuDrawPathTest.cpp
index ea3b3a7..42083fe 100644
--- a/tests/GpuDrawPathTest.cpp
+++ b/tests/GpuDrawPathTest.cpp
@@ -77,9 +77,6 @@
}
DEF_GPUTEST(GpuDrawPath, reporter, factory) {
- // https://bugs.chromium.org/p/skia/issues/detail?id=4581
- return;
-
for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
GrContextFactory::GLContextType glType = static_cast<GrContextFactory::GLContextType>(type);
@@ -95,6 +92,9 @@
SkAutoTUnref<SkSurface> surface(
SkSurface::NewRenderTarget(grContext, SkSurface::kNo_Budgeted, info,
sampleCounts[i], nullptr));
+ if (!surface) {
+ continue;
+ }
test_drawPathEmpty(reporter, surface->getCanvas());
}
}