Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Side by Side Diff: courgette/ensemble_create.cc

Issue 8166013: Further refactoring, move ImageInfo into Disassembler/DisassemblerWin32X86. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // The main idea in Courgette is to do patching *under a tranformation*. The 5 // The main idea in Courgette is to do patching *under a tranformation*. The
6 // input is transformed into a new representation, patching occurs in the new 6 // input is transformed into a new representation, patching occurs in the new
7 // repesentation, and then the tranform is reversed to get the patched data. 7 // repesentation, and then the tranform is reversed to get the patched data.
8 // 8 //
9 // The idea is applied to pieces (or 'elements') of the whole (or 'ensemble'). 9 // The idea is applied to pieces (or 'elements') of the whole (or 'ensemble').
10 // Each of the elements has to go through the same set of steps in lock-step. 10 // Each of the elements has to go through the same set of steps in lock-step.
11 11
12 // This file contains the code to create the patch. 12 // This file contains the code to create the patch.
13 13
14 14
15 #include "courgette/ensemble.h" 15 #include "courgette/ensemble.h"
16 16
17 #include <vector> 17 #include <vector>
18 #include <limits> 18 #include <limits>
19 19
20 #include "base/basictypes.h" 20 #include "base/basictypes.h"
21 #include "base/logging.h" 21 #include "base/logging.h"
22 #include "base/time.h" 22 #include "base/time.h"
23 23
24 #include "courgette/third_party/bsdiff.h" 24 #include "courgette/third_party/bsdiff.h"
25 #include "courgette/crc.h" 25 #include "courgette/crc.h"
26 #include "courgette/difference_estimator.h" 26 #include "courgette/difference_estimator.h"
27 #include "courgette/image_info.h"
28 #include "courgette/streams.h" 27 #include "courgette/streams.h"
29 #include "courgette/region.h" 28 #include "courgette/region.h"
30 #include "courgette/simple_delta.h" 29 #include "courgette/simple_delta.h"
31 30
32 #include "courgette/win32_x86_patcher.h" 31 #include "courgette/win32_x86_patcher.h"
33 #include "courgette/win32_x86_generator.h" 32 #include "courgette/win32_x86_generator.h"
34 33
35 namespace courgette { 34 namespace courgette {
36 35
37 TransformationPatchGenerator::TransformationPatchGenerator( 36 TransformationPatchGenerator::TransformationPatchGenerator(
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 return C_STREAM_ERROR; 418 return C_STREAM_ERROR;
420 } 419 }
421 420
422 VLOG(1) << "done GenerateEnsemblePatch " 421 VLOG(1) << "done GenerateEnsemblePatch "
423 << (base::Time::Now() - start_time).InSecondsF() << "s"; 422 << (base::Time::Now() - start_time).InSecondsF() << "s";
424 423
425 return C_OK; 424 return C_OK;
426 } 425 }
427 426
428 } // namespace 427 } // namespace
OLDNEW
« no previous file with comments | « courgette/ensemble_apply.cc ('k') | courgette/image_info.h » ('j') | courgette/types_win_pe.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698