diff options
author | bsalomon <bsalomon@google.com> | 2016-02-26 10:37:26 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-26 10:37:26 -0800 |
commit | b2c0133caf0f03462385c19634281c351355c979 (patch) | |
tree | f5a3bbbe93fbfa0d7f72dc93d9fe0865220139c8 /tests/SurfaceTest.cpp | |
parent | 992ad363d7ca879cdb86f802b379f06800a44125 (diff) |
When a surface is backed by an external render target force a copy on image snap
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1694943002
Review URL: https://codereview.chromium.org/1694943002
Diffstat (limited to 'tests/SurfaceTest.cpp')
-rw-r--r-- | tests/SurfaceTest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index 7449f211b5..8166bba9bd 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp @@ -439,9 +439,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(UniqueImageSnapshot_Gpu, reporter, context) { { SkAutoTUnref<SkSurface> surface( SkSurface::NewRenderTargetDirect(texture->asRenderTarget())); - // We should be able to pass true here, but disallowing copy on write for direct GPU - // surfaces is not yet implemented. - test_unique_image_snap(reporter, surface, false, imageBackingStore, + test_unique_image_snap(reporter, surface, true, imageBackingStore, surfaceBackingStore); } texture->unref(); |