summaryrefslogtreecommitdiffstats
path: root/applypatch/include/applypatch/imgdiff_image.h
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-02-23 00:40:39 +0100
committerTianjie Xu <xunchang@google.com>2018-02-23 19:44:05 +0100
commit572abbb81cfa12cddf742fa35cd8a4b9eebdc7d1 (patch)
treeacef858937e69879b8d122c2d20834347c095e3f /applypatch/include/applypatch/imgdiff_image.h
parentMerge "Set LOCAL_SDK_VERSION where possible." (diff)
downloadandroid_bootable_recovery-572abbb81cfa12cddf742fa35cd8a4b9eebdc7d1.tar
android_bootable_recovery-572abbb81cfa12cddf742fa35cd8a4b9eebdc7d1.tar.gz
android_bootable_recovery-572abbb81cfa12cddf742fa35cd8a4b9eebdc7d1.tar.bz2
android_bootable_recovery-572abbb81cfa12cddf742fa35cd8a4b9eebdc7d1.tar.lz
android_bootable_recovery-572abbb81cfa12cddf742fa35cd8a4b9eebdc7d1.tar.xz
android_bootable_recovery-572abbb81cfa12cddf742fa35cd8a4b9eebdc7d1.tar.zst
android_bootable_recovery-572abbb81cfa12cddf742fa35cd8a4b9eebdc7d1.zip
Diffstat (limited to '')
-rw-r--r--applypatch/include/applypatch/imgdiff_image.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/applypatch/include/applypatch/imgdiff_image.h b/applypatch/include/applypatch/imgdiff_image.h
index 0f74420f0..084807237 100644
--- a/applypatch/include/applypatch/imgdiff_image.h
+++ b/applypatch/include/applypatch/imgdiff_image.h
@@ -265,8 +265,9 @@ class ZipModeImage : public Image {
std::vector<SortedRangeSet>& split_src_ranges,
size_t total_tgt_size);
// Construct the dummy split images based on the chunks info and source ranges; and move them into
- // the given vectors.
- static void AddSplitImageFromChunkList(const ZipModeImage& tgt_image,
+ // the given vectors. Return true if we add a new split image into |split_tgt_images|, and
+ // false otherwise.
+ static bool AddSplitImageFromChunkList(const ZipModeImage& tgt_image,
const ZipModeImage& src_image,
const SortedRangeSet& split_src_ranges,
const std::vector<ImageChunk>& split_tgt_chunks,