| 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/stringprintf.h" | 17 #include "base/stringprintf.h" |
| 18 #include "courgette/assembly_program.h" | 18 #include "courgette/assembly_program.h" |
| 19 #include "courgette/courgette.h" | 19 #include "courgette/courgette.h" |
| 20 #include "courgette/encoded_program.h" | 20 #include "courgette/encoded_program.h" |
| 21 #include "courgette/image_info.h" | |
| 22 | 21 |
| 23 namespace courgette { | 22 namespace courgette { |
| 24 | 23 |
| 25 //////////////////////////////////////////////////////////////////////////////// | 24 //////////////////////////////////////////////////////////////////////////////// |
| 26 | 25 |
| 27 class NullAdjustmentMethod : public AdjustmentMethod { | 26 class NullAdjustmentMethod : public AdjustmentMethod { |
| 28 bool Adjust(const AssemblyProgram& model, AssemblyProgram* program) { | 27 bool Adjust(const AssemblyProgram& model, AssemblyProgram* program) { |
| 29 return true; | 28 return true; |
| 30 } | 29 } |
| 31 }; | 30 }; |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 AdjustmentMethod* method = AdjustmentMethod::MakeProductionAdjustmentMethod(); | 684 AdjustmentMethod* method = AdjustmentMethod::MakeProductionAdjustmentMethod(); |
| 686 bool ok = method->Adjust(model, program); | 685 bool ok = method->Adjust(model, program); |
| 687 method->Destroy(); | 686 method->Destroy(); |
| 688 if (ok) | 687 if (ok) |
| 689 return C_OK; | 688 return C_OK; |
| 690 else | 689 else |
| 691 return C_ADJUSTMENT_FAILED; | 690 return C_ADJUSTMENT_FAILED; |
| 692 } | 691 } |
| 693 | 692 |
| 694 } // namespace courgette | 693 } // namespace courgette |
| OLD | NEW |