Remove the bulk add-renderTasks entry point from the drawing manager
With the addition of the ddlTask this is no longer needed. Change-Id: I39c60d2bbe3bc335146d51dc0b0ca8a45dc812f2 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/333463 Reviewed-by: Adlai Holler <adlai@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
a502878308
commit
cca1976560
@ -91,16 +91,6 @@ GrRenderTask* GrDrawingManager::RenderTaskDAG::addBeforeLast(sk_sp<GrRenderTask>
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void GrDrawingManager::RenderTaskDAG::add(const SkTArray<sk_sp<GrRenderTask>>& renderTasks) {
|
||||
#ifdef SK_DEBUG
|
||||
for (auto& renderTask : renderTasks) {
|
||||
SkASSERT(renderTask->unique());
|
||||
}
|
||||
#endif
|
||||
|
||||
fRenderTasks.push_back_n(renderTasks.count(), renderTasks.begin());
|
||||
}
|
||||
|
||||
void GrDrawingManager::RenderTaskDAG::swap(SkTArray<sk_sp<GrRenderTask>>* renderTasks) {
|
||||
SkASSERT(renderTasks->empty());
|
||||
renderTasks->swap(fRenderTasks);
|
||||
|
@ -152,7 +152,6 @@ private:
|
||||
|
||||
GrRenderTask* add(sk_sp<GrRenderTask>);
|
||||
GrRenderTask* addBeforeLast(sk_sp<GrRenderTask>);
|
||||
void add(const SkTArray<sk_sp<GrRenderTask>>&);
|
||||
|
||||
void swap(SkTArray<sk_sp<GrRenderTask>>* renderTasks);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user