From c3c6194ba2b90fde57d8d0bc1d6302656f0dae27 Mon Sep 17 00:00:00 2001 From: mtklein Date: Thu, 19 Nov 2015 07:23:49 -0800 Subject: Add SkRecord::defrag(). Called by SkRecordOptimize(), this moves all the NoOps to the end and slices them off. This implementation with std::remove_if() is linear and doesn't malloc. No diffs: https://gold.skia.org/search2?issue=1461663003&unt=true&query=source_type%3Dgm&master=false BUG=skia: Review URL: https://codereview.chromium.org/1461663003 --- tests/RecordTestUtils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/RecordTestUtils.h') diff --git a/tests/RecordTestUtils.h b/tests/RecordTestUtils.h index e4421fab52..a281566652 100644 --- a/tests/RecordTestUtils.h +++ b/tests/RecordTestUtils.h @@ -10,6 +10,7 @@ #include "SkRecord.h" #include "SkRecords.h" +#include "Test.h" // If the command we're reading is a U, set ptr to it, otherwise set it to nullptr. template -- cgit v1.2.3