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

Unified Diff: src/pdf/SkPDFDocument.cpp

Issue 2190883003: SkPDF: PDFStream has-a not is-a PDFDict (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-07-29 (Friday) 12:30:20 EDT Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698