Index: src/pdf/SkPDFDocument.cpp |
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp |
index 95857c18469805a66102a03b76c5a270f0134461..dd68b5bb3996a74fb32e16d7388adfc432d972d8 100644 |
--- a/src/pdf/SkPDFDocument.cpp |
+++ b/src/pdf/SkPDFDocument.cpp |
@@ -9,7 +9,6 @@ |
#include "SkPDFCanvas.h" |
#include "SkPDFDevice.h" |
#include "SkPDFDocument.h" |
-#include "SkPDFStream.h" |
#include "SkPDFUtils.h" |
#include "SkStream.h" |
@@ -321,7 +320,7 @@ static sk_sp<SkData> SkSrgbIcm() { |
static sk_sp<SkPDFStream> make_srgb_color_profile() { |
sk_sp<SkPDFStream> stream = sk_make_sp<SkPDFStream>(SkSrgbIcm()); |
- stream->insertInt("N", 3); |
+ stream->dict()->insertInt("N", 3); |
sk_sp<SkPDFArray> array = sk_make_sp<SkPDFArray>(); |
array->appendScalar(0.0f); |
array->appendScalar(1.0f); |
@@ -329,7 +328,7 @@ static sk_sp<SkPDFStream> make_srgb_color_profile() { |
array->appendScalar(1.0f); |
array->appendScalar(0.0f); |
array->appendScalar(1.0f); |
- stream->insertObject("Range", std::move(array)); |
+ stream->dict()->insertObject("Range", std::move(array)); |
return stream; |
} |