aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GpuDrawPathTest.cpp
diff options
context:
space:
mode:
authorGravatar kkinnunen <kkinnunen@nvidia.com>2015-11-19 09:37:02 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-19 09:37:02 -0800
commitc11a527cd06a0a6c2cef0d986ea8f5ef0989505a (patch)
tree17bfe5bfe566fc459c25769bf9108159d6041b14 /tests/GpuDrawPathTest.cpp
parent29d60e5ab594b39d1f533bff090877b1bb821e06 (diff)
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
Diffstat (limited to 'tests/GpuDrawPathTest.cpp')
-rw-r--r--tests/GpuDrawPathTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/GpuDrawPathTest.cpp b/tests/GpuDrawPathTest.cpp
index ea3b3a7aed..42083fe08f 100644
--- a/tests/GpuDrawPathTest.cpp
+++ b/tests/GpuDrawPathTest.cpp
@@ -77,9 +77,6 @@ static void test_drawSameRectOvals(skiatest::Reporter*, SkCanvas* canvas) {
}
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 @@ DEF_GPUTEST(GpuDrawPath, reporter, factory) {
SkAutoTUnref<SkSurface> surface(
SkSurface::NewRenderTarget(grContext, SkSurface::kNo_Budgeted, info,
sampleCounts[i], nullptr));
+ if (!surface) {
+ continue;
+ }
test_drawPathEmpty(reporter, surface->getCanvas());
}
}