| Index: src/pdf/SkPDFDocument.cpp
|
| diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp
|
| index 57eab950edb987bbe0c2649183b08c17920d8dbf..6d49e68584d92bb387ce3272a45f32ee2f66315c 100644
|
| --- a/src/pdf/SkPDFDocument.cpp
|
| +++ b/src/pdf/SkPDFDocument.cpp
|
| @@ -70,9 +70,12 @@ bool SkPDFDocument::EmitPDF(const SkTDArray<SkPDFDevice*>& pageDevices,
|
| if (pageDevices.isEmpty()) {
|
| return false;
|
| }
|
| +
|
| SkTDArray<SkPDFPage*> pages;
|
| for (int i = 0; i < pageDevices.count(); i++) {
|
| SkASSERT(pageDevices[i]);
|
| + SkASSERT(i == 0 ||
|
| + pageDevices[i - 1]->getCanon() == pageDevices[i]->getCanon());
|
| // Reference from new passed to pages.
|
| pages.push(SkNEW_ARGS(SkPDFPage, (pageDevices[i])));
|
| }
|
|
|