diff options
author | bsalomon <bsalomon@google.com> | 2014-10-13 12:32:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-13 12:32:55 -0700 |
commit | 81beccc4fb1396fe94af15bfce26e68b82b93809 (patch) | |
tree | f3b05fc07e562022e6c5e82cbaae713817021c8d /tests | |
parent | 335a0ae19c3c26a934b2a25c0b8016a453c4b013 (diff) |
Devirtualize read/write pixels on surface.
Consolidate read/write funcs in context.
Remove support for reading pixels from a surface that's not a target. It's currently broken and neither used nor tested.
Review URL: https://codereview.chromium.org/648863002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/FloatingPointTextureTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/FloatingPointTextureTest.cpp b/tests/FloatingPointTextureTest.cpp index d367659a2b..9ca34c8e81 100644 --- a/tests/FloatingPointTextureTest.cpp +++ b/tests/FloatingPointTextureTest.cpp @@ -68,9 +68,8 @@ DEF_GPUTEST(FloatingPointTextureTest, reporter, factory) { } // write square - context->writeTexturePixels(fpTexture, 0, 0, DEV_W, DEV_H, desc.fConfig, - controlPixelData, 0); - context->readTexturePixels(fpTexture, 0, 0, DEV_W, DEV_H, desc.fConfig, readBuffer, 0); + fpTexture->writePixels(0, 0, DEV_W, DEV_H, desc.fConfig, controlPixelData, 0); + fpTexture->readPixels(0, 0, DEV_W, DEV_H, desc.fConfig, readBuffer, 0); for (int j = 0; j < FP_CONTROL_ARRAY_SIZE; ++j) { REPORTER_ASSERT(reporter, readBuffer[j] == controlPixelData[j]); } |