Improving comment in SkTileGrid::search

TBR=reed

git-svn-id: http://skia.googlecode.com/svn/trunk@6828 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
junov@chromium.org 2012-12-14 22:23:49 +00:00
Родитель 12310e42f1
Коммит 4ef4f4a596
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -73,8 +73,10 @@ void SkTileGrid::search(const SkIRect& query, SkTDArray<void*>* results) {
results->reset();
SkTDArray<int> curPositions;
curPositions.setCount(queryTileCount);
// Note: Reserving space for 1024 tile pointers on the stack. If the malloc
// becomes a bottleneck, we may consider increasing that number.
// Note: Reserving space for 1024 tile pointers on the stack. If the
// malloc becomes a bottleneck, we may consider increasing that number.
// Typical large web page, say 2k x 16k, would require 512 tiles of
// size 256 x 256 pixels.
SkAutoSTArray<1024, SkTDArray<void *>*> storage(queryTileCount);
SkTDArray<void *>** tileRange = storage.get();
int tile = 0;