aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/RecordTestUtils.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-11-19 07:23:49 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-19 07:23:49 -0800
commitc3c6194ba2b90fde57d8d0bc1d6302656f0dae27 (patch)
tree52446ca72e146435b47a63afd39f4d15f0d0c474 /tests/RecordTestUtils.h
parenta2e3e0f7f8ceed2ab152428d7ee2812ad8c842c3 (diff)
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
Diffstat (limited to 'tests/RecordTestUtils.h')
-rw-r--r--tests/RecordTestUtils.h1
1 files changed, 1 insertions, 0 deletions
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 <typename U>