diff options
author | sra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 23:28:14 +0000 |
---|---|---|
committer | sra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 23:28:14 +0000 |
commit | 8cd9696d8eff70fa52198d81672efb2b780a2f40 (patch) | |
tree | d96ab9873dd5f89e96863d19e52b55a532d57a1d /courgette/adjustment_method.h | |
parent | 3e6ba015438230f62be8e702f9c95e950c5e727f (diff) | |
download | chromium_src-8cd9696d8eff70fa52198d81672efb2b780a2f40.zip chromium_src-8cd9696d8eff70fa52198d81672efb2b780a2f40.tar.gz chromium_src-8cd9696d8eff70fa52198d81672efb2b780a2f40.tar.bz2 |
New adjustment method for Courgette.
Slower, but better.
1.0.154.59 to 1.0.154.65
Old: 1m19s, 354,997 bytes
New: 4m01s, 279,798 bytes
Timings on Lenovo T61 (T7700 cpu)
BUG=none
TEST=none (existing tests)
Review URL: http://codereview.chromium.org/118031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/adjustment_method.h')
-rw-r--r-- | courgette/adjustment_method.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/courgette/adjustment_method.h b/courgette/adjustment_method.h index 8ca71e8..0ecf04d 100644 --- a/courgette/adjustment_method.h +++ b/courgette/adjustment_method.h @@ -16,11 +16,20 @@ class AdjustmentMethod { // Factory methods for making adjusters. // Returns the adjustment method used in production. - static AdjustmentMethod* MakeProductionAdjustmentMethod(); + static AdjustmentMethod* MakeProductionAdjustmentMethod() { + return MakeShingleAdjustmentMethod(); + } // Returns and adjustement method that makes no adjustments. static AdjustmentMethod* MakeNullAdjustmentMethod(); + // Returns the original adjustment method. + static AdjustmentMethod* MakeTrieAdjustmentMethod(); + + // Returns the new shingle tiling adjustment method. + static AdjustmentMethod* MakeShingleAdjustmentMethod(); + + // AdjustmentMethod interface: // Adjusts |program| to increase similarity to |model|. |program| can be // changed in any way provided that it still produces the same output when |