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

Unified Diff: src/pdf/SkJpegInfo.cpp

Issue 1372783003: SkPDF: Implement drawImage*() properly (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-09-30 (Wednesday) 21:22:24 EDT Created 5 years, 3 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/SkJpegInfo.h ('k') | src/pdf/SkPDFBitmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkJpegInfo.cpp
diff --git a/src/pdf/SkJpegInfo.cpp b/src/pdf/SkJpegInfo.cpp
index 455b4aa2c046e663123bf73f343040d8fa7f77e2..3c52a102db663769b5f6671d170d61231621ee32 100644
--- a/src/pdf/SkJpegInfo.cpp
+++ b/src/pdf/SkJpegInfo.cpp
@@ -107,8 +107,8 @@ bool SkIsJFIF(const SkData* skdata, SkJFIFInfo* info) {
return false; // Invalid JFIF
}
if (info) {
- info->fHeight = JpegSegment::GetBigendianUint16(&segment.data()[1]);
- info->fWidth = JpegSegment::GetBigendianUint16(&segment.data()[3]);
+ info->fSize.set(JpegSegment::GetBigendianUint16(&segment.data()[3]),
+ JpegSegment::GetBigendianUint16(&segment.data()[1]));
if (numberOfComponents == 3) {
info->fType = SkJFIFInfo::kYCbCr;
} else {
« no previous file with comments | « src/pdf/SkJpegInfo.h ('k') | src/pdf/SkPDFBitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698