diff options
author | sergeyv <sergeyv@google.com> | 2016-10-25 15:21:50 -0700 |
---|---|---|
committer | sergeyv <sergeyv@google.com> | 2016-10-26 14:01:09 -0700 |
commit | 2a38c42e921451abebb4ee5f5ecd738f1b6b04ed (patch) | |
tree | 2074f10be351fa19cfd4fdb80a4e24ed649782ca /libs/hwui/Readback.cpp | |
parent | 98fa4f9e7b33a3004ce9142c9acd4300391b9a0e (diff) |
Add target to texture
Test: refactoring cl.
bug:32413624
Change-Id: I94b1c31cd4e0712dfcfd7777a0012424c1bf0dca
Diffstat (limited to 'libs/hwui/Readback.cpp')
-rw-r--r-- | libs/hwui/Readback.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Readback.cpp b/libs/hwui/Readback.cpp index 22c6dfc6b55a..1645218495eb 100644 --- a/libs/hwui/Readback.cpp +++ b/libs/hwui/Readback.cpp @@ -196,8 +196,8 @@ CopyResult Readback::copySurfaceInto(renderthread::RenderThread& renderThread, } Texture sourceTexture(caches); - sourceTexture.wrap(sourceTexId, - sourceBuffer->getWidth(), sourceBuffer->getHeight(), 0, 0 /* total lie */); + sourceTexture.wrap(sourceTexId, sourceBuffer->getWidth(), + sourceBuffer->getHeight(), 0, 0 /* total lie */, GL_TEXTURE_EXTERNAL_OES); CopyResult copyResult = copyTextureInto(caches, renderThread.renderState(), sourceTexture, texTransform, srcRect, bitmap); |