From 7278d68cac9e39970144909df449113d43fff480 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Fri, 16 Mar 2018 14:57:21 -0400 Subject: Add DoneProc to Promise Images This proc will notify the client when we will no longer call fulfill on their promise image so that can delete any meta data they needed to store to be able to complete the fulfill requests. Bug: skia: Change-Id: Ife1e6845f221c31ce1ae2c0d2ba5e4c8f0203b74 Reviewed-on: https://skia-review.googlesource.com/114092 Commit-Queue: Greg Daniel Reviewed-by: Robert Phillips Reviewed-by: Brian Salomon --- tests/DeferredDisplayListTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/DeferredDisplayListTest.cpp') diff --git a/tests/DeferredDisplayListTest.cpp b/tests/DeferredDisplayListTest.cpp index f17957c9c8..9abe5f9ff4 100644 --- a/tests/DeferredDisplayListTest.cpp +++ b/tests/DeferredDisplayListTest.cpp @@ -406,6 +406,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLWrapBackendTest, reporter, ctxInfo) { static void dummy_fulfill_proc(void*, GrBackendTexture*) { SkASSERT(0); } static void dummy_release_proc(void*) { SkASSERT(0); } +static void dummy_done_proc(void*) { SkASSERT(0); } // Test out the behavior of an invalid DDLRecorder DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLInvalidRecorder, reporter, ctxInfo) { @@ -439,6 +440,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLInvalidRecorder, reporter, ctxInfo) { kPremul_SkAlphaType, nullptr, dummy_fulfill_proc, dummy_release_proc, + dummy_done_proc, nullptr); REPORTER_ASSERT(reporter, !image); } -- cgit v1.2.3