diff options
author | bsalomon <bsalomon@google.com> | 2015-02-06 08:49:24 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-06 08:49:24 -0800 |
commit | d0423587ac56ae84d3f1eb796d5c1e2dfba9646e (patch) | |
tree | 1bbbc8adbc1b63dc7dd19ffc08889be9a80b89c5 /tests/GrSurfaceTest.cpp | |
parent | 02c8fd0ad5e5279004dd49ec49fbae00f8522ec0 (diff) |
One createTexture function, attempt to recycle scratch in createTexture.
Review URL: https://codereview.chromium.org/864383003
Diffstat (limited to 'tests/GrSurfaceTest.cpp')
-rw-r--r-- | tests/GrSurfaceTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/GrSurfaceTest.cpp b/tests/GrSurfaceTest.cpp index 1e21df1972..094ca7829a 100644 --- a/tests/GrSurfaceTest.cpp +++ b/tests/GrSurfaceTest.cpp @@ -27,7 +27,7 @@ DEF_GPUTEST(GrSurface, reporter, factory) { desc.fWidth = 256; desc.fHeight = 256; desc.fSampleCnt = 0; - GrSurface* texRT1 = context->createUncachedTexture(desc, NULL, 0); + GrSurface* texRT1 = context->createTexture(desc, false, NULL, 0); REPORTER_ASSERT(reporter, texRT1 == texRT1->asRenderTarget()); REPORTER_ASSERT(reporter, texRT1 == texRT1->asTexture()); @@ -39,7 +39,7 @@ DEF_GPUTEST(GrSurface, reporter, factory) { static_cast<GrSurface*>(texRT1->asTexture())); desc.fFlags = kNone_GrSurfaceFlags; - GrSurface* tex1 = context->createUncachedTexture(desc, NULL, 0); + GrSurface* tex1 = context->createTexture(desc, false, NULL, 0); REPORTER_ASSERT(reporter, NULL == tex1->asRenderTarget()); REPORTER_ASSERT(reporter, tex1 == tex1->asTexture()); REPORTER_ASSERT(reporter, static_cast<GrSurface*>(tex1) == tex1->asTexture()); |