Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: tests/RectangleTextureTest.cpp

Issue 2448593002: Remove SkAutoTUnref and SkAutoTDelete from public includes. (Closed)
Patch Set: And Vulcan. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/PathTest.cpp ('k') | tests/ResourceCacheTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/RectangleTextureTest.cpp
diff --git a/tests/RectangleTextureTest.cpp b/tests/RectangleTextureTest.cpp
index a21b5a2f63364de4fd1c43e5ba4dd53d9e263809..1491326236951070ec5bf458f0680d4244ab4968 100644
--- a/tests/RectangleTextureTest.cpp
+++ b/tests/RectangleTextureTest.cpp
@@ -187,7 +187,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(RectangleTexture, reporter, ctxInfo) {
}
}
- SkAutoTUnref<GrTexture> rectangleTexture(
+ sk_sp<GrTexture> rectangleTexture(
context->textureProvider()->wrapBackendTexture(rectangleDesc));
if (!rectangleTexture) {
ERRORF(reporter, "Error wrapping rectangle texture in GrTexture.");
@@ -195,15 +195,15 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(RectangleTexture, reporter, ctxInfo) {
continue;
}
- test_read_pixels(reporter, context, rectangleTexture, refPixels);
+ test_read_pixels(reporter, context, rectangleTexture.get(), refPixels);
- test_copy_surface_src(reporter, context, rectangleTexture, refPixels);
+ test_copy_surface_src(reporter, context, rectangleTexture.get(), refPixels);
- test_copy_surface_dst(reporter, context, rectangleTexture);
+ test_copy_surface_dst(reporter, context, rectangleTexture.get());
- test_write_pixels(reporter, context, rectangleTexture);
+ test_write_pixels(reporter, context, rectangleTexture.get());
- test_clear(reporter, context, rectangleTexture);
+ test_clear(reporter, context, rectangleTexture.get());
GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID));
}
« no previous file with comments | « tests/PathTest.cpp ('k') | tests/ResourceCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698