Home
last modified time | relevance | path

Searched refs:tilesInTask (Results 1 – 2 of 2) sorted by relevance

/third_party/flutter/skia/src/codec/
DSkRawCodec.cpp51 int num_tasks_required(const dng_point& tilesInTask, in num_tasks_required() argument
53 return ((tilesInArea.v + tilesInTask.v - 1) / tilesInTask.v) * in num_tasks_required()
54 ((tilesInArea.h + tilesInTask.h - 1) / tilesInTask.h); in num_tasks_required()
61 dng_point tilesInTask = {1, 1}; in num_tiles_per_task() local
62 while (num_tasks_required(tilesInTask, tilesInArea) > maxTasks) { in num_tiles_per_task()
63 if (tilesInTask.h < tilesInArea.h) { in num_tiles_per_task()
64 ++tilesInTask.h; in num_tiles_per_task()
65 } else if (tilesInTask.v < tilesInArea.v) { in num_tiles_per_task()
66 ++tilesInTask.v; in num_tiles_per_task()
71 return tilesInTask; in num_tiles_per_task()
/third_party/skia/src/codec/
DSkRawCodec.cpp51 int num_tasks_required(const dng_point& tilesInTask, in num_tasks_required() argument
53 return ((tilesInArea.v + tilesInTask.v - 1) / tilesInTask.v) * in num_tasks_required()
54 ((tilesInArea.h + tilesInTask.h - 1) / tilesInTask.h); in num_tasks_required()
61 dng_point tilesInTask = {1, 1}; in num_tiles_per_task() local
62 while (num_tasks_required(tilesInTask, tilesInArea) > maxTasks) { in num_tiles_per_task()
63 if (tilesInTask.h < tilesInArea.h) { in num_tiles_per_task()
64 ++tilesInTask.h; in num_tiles_per_task()
65 } else if (tilesInTask.v < tilesInArea.v) { in num_tiles_per_task()
66 ++tilesInTask.v; in num_tiles_per_task()
71 return tilesInTask; in num_tiles_per_task()