OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "courgette/adjustment_method.h" | 5 #include "courgette/adjustment_method.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
17 #include "base/string_util.h" | 17 #include "base/stringprintf.h" |
18 | |
19 #include "courgette/assembly_program.h" | 18 #include "courgette/assembly_program.h" |
20 #include "courgette/courgette.h" | 19 #include "courgette/courgette.h" |
21 #include "courgette/encoded_program.h" | 20 #include "courgette/encoded_program.h" |
22 #include "courgette/image_info.h" | 21 #include "courgette/image_info.h" |
23 | 22 |
24 namespace courgette { | 23 namespace courgette { |
25 | 24 |
26 //////////////////////////////////////////////////////////////////////////////// | 25 //////////////////////////////////////////////////////////////////////////////// |
27 | 26 |
28 class NullAdjustmentMethod : public AdjustmentMethod { | 27 class NullAdjustmentMethod : public AdjustmentMethod { |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 AdjustmentMethod* method = AdjustmentMethod::MakeProductionAdjustmentMethod(); | 685 AdjustmentMethod* method = AdjustmentMethod::MakeProductionAdjustmentMethod(); |
687 bool ok = method->Adjust(model, program); | 686 bool ok = method->Adjust(model, program); |
688 method->Destroy(); | 687 method->Destroy(); |
689 if (ok) | 688 if (ok) |
690 return C_OK; | 689 return C_OK; |
691 else | 690 else |
692 return C_ADJUSTMENT_FAILED; | 691 return C_ADJUSTMENT_FAILED; |
693 } | 692 } |
694 | 693 |
695 } // namespace courgette | 694 } // namespace courgette |
OLD | NEW |