Index: tests/SurfaceTest.cpp |
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp |
index b1e233fa3afb3a5af929620544d9066977ff6627..3d6e59ed356572f8bf0ec632c90df3a7f05913ee 100644 |
--- a/tests/SurfaceTest.cpp |
+++ b/tests/SurfaceTest.cpp |
@@ -979,8 +979,12 @@ DEF_GPUTEST(SkImage_NewFromTexture, reporter, factory) { |
sk_memset32(storage, expected1, w * h); |
tex->writePixels(0, 0, w, h, kSkia8888_GrPixelConfig, storage, GrContext::kFlushWrites_PixelOp); |
- // We expect the ref'd image to see the new color, but cpy'd one should still see the old color |
+ // The cpy'd one should still see the old color |
+#if 0 |
+ // There is no guarantee that refImg sees the new color. We are free to have made a copy. Our |
+ // write pixels call violated the contract with refImg and refImg is now undefined. |
test_image_color(reporter, refImg, expected1); |
+#endif |
test_image_color(reporter, cpyImg, expected0); |
// Now exercise the release proc |