From 7d2b16ad13fd3262c776ae75ae35da4ad69df690 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Tue, 13 Mar 2018 16:44:48 -0400 Subject: Improve handling of GrPixelConfig in GrBackendTex/RT ctors Make sure that no client facing code was relying on what we set as the default value for fConfig by making in kUnkown. Bug: skia: Change-Id: Ie52ff08ba8deeacc16fe06eb0dd0c7292b2edf91 Reviewed-on: https://skia-review.googlesource.com/114261 Reviewed-by: Robert Phillips Reviewed-by: Brian Salomon Commit-Queue: Greg Daniel --- tests/SurfaceTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/SurfaceTest.cpp') diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index bd3090cc8e..955a5c550a 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp @@ -205,6 +205,8 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrContext_maxSurfaceSamplesForColorType, repo ->accessRenderTargetContext() ->numStencilSamples(); REPORTER_ASSERT(reporter, sampleCnt == max, "Exected: %d, actual: %d", max, sampleCnt); + + gpu->deleteTestingOnlyBackendTexture(backendTex); } } #endif -- cgit v1.2.3