Add new skyline Rectanizer
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 2 Oct 2013 17:37:59 +0000 (17:37 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 2 Oct 2013 17:37:59 +0000 (17:37 +0000)
commit09846a05be093b610c91f7ff70610811ff3ee0f6
tree741ba50c4da63f95a08dbd85d920c50e4cc55304
parent80390ec0f5b5a07b7b3510a64a6efb5c9058a937
Add new skyline Rectanizer

The skyline Rectanizer tracks the leading silhouette of the
currently packed rects and tries to fit the next rectangle
on top of that. This gives slightly better packing behavior
than the current log2 scheme.

Also shrank the size of the plots, which increases their
number from 18 to 32 and gives better cache behavior (fewer
purges and uploads).

R=bsalomon@google.com

Author: jvanverth@google.com

Review URL: https://codereview.chromium.org/25584002

git-svn-id: http://skia.googlecode.com/svn/trunk@11577 2bbb7eff-a529-9590-31e7-b0007b416f81
gyp/gpu.gypi
src/gpu/GrAtlas.cpp
src/gpu/GrRectanizer.cpp
src/gpu/GrRectanizer_skyline.cpp [new file with mode: 0755]