ea70d22dc8dc5d61f075edf6d03f86f6a68169cd |
29-Mar-2017 |
Matt Sarett <msarett@google.com> |
Xform bitmaps to sRGB on SW and PDF canvases For picture-backed canvases, we will defer the xform until playback. Test: Unit tests and cts test. Bug: 32984164 Change-Id: Ib74663bcb688b74b6ba8792b403b0475126732af
dfDocument.cpp
|
d55f20d3018d3328d9e26c971b814dfcb61aa7b2 |
17-Feb-2017 |
Philip P. Moltmann <moltmann@google.com> |
Use only official pdfium APIs Fixes: 28051413 Test: cts-tradefed run cts-dev -m CtsGraphicsTestCases -t android.graphics.pdf.cts cts-tradefed run cts-dev -m Print -t android.print.pdf.cts Change-Id: Iab52463ba225d3cddb1e97fe52cb9f56318cce68
dfRenderer.cpp
|
173215d1b20b70908a9d1807f1372bd95b7ad5f1 |
12-Jan-2017 |
Mark Salyzyn <salyzyn@google.com> |
resolve merge conflicts of ec7e2a164c37 to master Test: compile Bug: 26552300 Bug: 31289077 Change-Id: I49c6e41b79061e2b3c0352e3ac8fa5ebb152b6f5
|
96bf5985d5a360568832fd26b6d5b44236c9343e |
29-Sep-2016 |
Mark Salyzyn <salyzyn@google.com> |
Replace cutils/log.h and log/logger.h with android/log.h or log/log.h (part deux) Test: compile Bug: 26552300 Bug: 31289077 Change-Id: I7417936c4d3666608fccfe51a312c90ecefba2fb
dfEditor.cpp
|
fa4c311438dc174df7acac822a9aa91ae91e9879 |
24-Oct-2016 |
Mark Salyzyn <salyzyn@google.com> |
Merge "PdfEditor: define LOG_TAG" am: a3bb8e3cc7 am: 9c0ea2d1cd am: 5aad37e70c am: 5be5a41170 Change-Id: Ia7ee2481592d3df55c3fda94cc1abfb4ea4a95cc
|
9c0ea2d1cd63ec0ee197108d41b83153056baba6 |
24-Oct-2016 |
Mark Salyzyn <salyzyn@google.com> |
Merge "PdfEditor: define LOG_TAG" am: a3bb8e3cc7 Change-Id: Ide63ebe4228d7b7af05e20202baafdebf9699150
|
121ab7001b3d818f7e7cf3cd4a95bcb3453b44e2 |
07-Oct-2016 |
Mark Salyzyn <salyzyn@google.com> |
PdfEditor: define LOG_TAG general cleanup of logging Test: compile Bug: 31992412 Change-Id: Ie2ec5a223bbb92e902bf6914100281b6d84500e3
dfEditor.cpp
|
260ab726486317496bc12a57d599ea96dcde3284 |
07-Oct-2016 |
Mike Reed <reed@google.com> |
use SkBlendMode instead of SkXfermode use sk_sp versions of paint setters/getters Change-Id: I86591a0a8ec92e6039776cbf00424ea24f585b28
dfDocument.cpp
|
366262dc7854ba54f64905df8d275358be41edf5 |
12-May-2016 |
Philip P. Moltmann <moltmann@google.com> |
Only have a single call into pdfium at a time. Pdfium is not thread safe and uses global variables, hence no parallel call pdfium is safe Fixes: 28705066 Change-Id: I04309ee691bd9cea37587e0af5be2c07ce8c9f2c (cherry picked from commit 0768a7dc450caf4c873c5b0883a75135536e1546)
dfEditor.cpp
dfRenderer.cpp
|
4cb7bb53f987ccfccbd786aef378d87bea41fe1f |
02-May-2016 |
Hal Canary <halcanary@google.com> |
skia SkDocument - new MakePDF API, fix leak bug: 28520971 (cherry picked from commit 801ab86e9e4cde646a22da2bd224ae5cce7ad631) Change-Id: I86549284c417640629b7ce3b79b01de69a7a23a5
dfDocument.cpp
|
12328c0fd190c7baddb5f412c48005371672dc55 |
10-Jun-2016 |
Philip P. Moltmann <moltmann@google.com> |
Handle Pdfium errors ... and factor out common code from PdfEditor and PdfRenderer to PdfUtils.h Change-Id: If193579d8fccb55a3c2a7e1fa3c935ce410a17c2
dfEditor.cpp
dfRenderer.cpp
dfUtils.cpp
dfUtils.h
|
61a530742f70e59d7fbd7c35a22292176ca554fa |
31-May-2016 |
Philip P. Moltmann <moltmann@google.com> |
Use SkMatrix to compute pdf transformation. Bug: 28051413 Change-Id: Id17db12801a33955426d7e01d0af950b1c6468cf
dfEditor.cpp
dfRenderer.cpp
|
0768a7dc450caf4c873c5b0883a75135536e1546 |
12-May-2016 |
Philip P. Moltmann <moltmann@google.com> |
Only have a single call into pdfium at a time. Pdfium is not thread safe and uses global variables, hence no parallel call pdfium is safe Fixes: 28705066 Change-Id: I04309ee691bd9cea37587e0af5be2c07ce8c9f2c
dfEditor.cpp
dfRenderer.cpp
|
424784d60e475cd1ce1d8168491f07a23f213109 |
03-May-2016 |
Hal Canary <halcanary@google.com> |
stop leaking SkPDFDocument bug: 28520971 Change-Id: I0fffde4bfa0aa8fe716e5ee2fc95a00b5c824e2f
dfDocument.cpp
|
be2e7121872afe2f561f20c4660da854c31e1b66 |
27-Apr-2016 |
Philip P. Moltmann <moltmann@google.com> |
Syncronize pdfium initialization between users. Only initalize pdfium once per process and only destroy it once all users are gone. Bug: 28387883, 28370309, 28388184 Change-Id: I41e8f6da247a7cfab5fb9d159c047293719192c3
dfEditor.cpp
dfRenderer.cpp
|
cd7c97bcf720abca3c364a27427d54ffcfa502f4 |
26-Mar-2016 |
Philip P. Moltmann <moltmann@google.com> |
Merge "PDFium interface changed, hence adjust the adapter jni code." into nyc-dev
|
dccca44ffda4836b56a21da95a046c9708ffd49c |
21-Mar-2016 |
sergeyv <sergeyv@google.com> |
Reland: Move text logic from jni to hwui level Initial CL: https://googleplex-android-review.git.corp.google.com/#/c/886854/ Change-Id: I9dfd85fe1d2a2c44f4360c8a29fd58d80e6f31c8
dfDocument.cpp
|
afbd0f1fef46ef0ddf633dfde0de724db3da1405 |
21-Mar-2016 |
Sergei Vasilinetc <sergeyv@google.com> |
Revert "Move text logic from jni to hwui level" This reverts commit a7f6bba1a3565c19715e878dfe7f0e01022944ff. Change-Id: If4f36f87a85411b6128fd92d391313803ccaf9dd
dfDocument.cpp
|
79bd8d48ad69c39834291809fe78ea478d067b68 |
07-Mar-2016 |
Philip P. Moltmann <moltmann@google.com> |
PDFium interface changed, hence adjust the adapter jni code. Bug: 27564090 Change-Id: I983398a90438062ecc9c7ebc0ad325777fa8aaff
dfEditor.cpp
dfRenderer.cpp
|
a7f6bba1a3565c19715e878dfe7f0e01022944ff |
16-Mar-2016 |
sergeyv <sergeyv@google.com> |
Move text logic from jni to hwui level bug:25865834 Change-Id: I2d8c9c9544afcb5ce1784f732aed3e54e0eda372
dfDocument.cpp
|
7c90661a6f36b98fd86757c8206c67c8bf71669d |
03-Mar-2016 |
Philip P. Moltmann <moltmann@google.com> |
Do not move PDF content as the content is already moved. Bug: 26961589 Change-Id: I444a4164f3b98af7aeb6df6e9a0b025d20a4a93b
dfDocument.cpp
|
b57dd722f1dc0663417da37d3a82f8283ad3c982 |
24-Sep-2015 |
Elliott Hughes <enh@google.com> |
resolved conflicts for a884d81e to stage-aosp-master Change-Id: Ice485967fa96f13786024b6939b826638e906ff0
|
76f6a86de25e1bf74717e047e55fd44b089673f3 |
19-Sep-2015 |
Daniel Micay <danielmicay@gmail.com> |
constify JNINativeMethod function pointer tables Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
dfDocument.cpp
dfEditor.cpp
dfRenderer.cpp
|
fbd02886559e7ca2b619ed0d9bff76b10cdb23c3 |
04-Jun-2015 |
Svet Ganov <svetoslavganov@google.com> |
Update the pdfium library - framework Change-Id: I4880e9310c02c6e26d4560fb8515f2ce51c597f4
dfEditor.cpp
dfRenderer.cpp
|
ed207b92747234eac88dd3664ecfb535e45d8ed1 |
10-Apr-2015 |
John Reck <jreck@google.com> |
Change how Java Bitmaps are accessed in a few places Stop assuming that a Java Bitmap has a SkBitmap* that has some externally managed lifecycle, and instead switch a bunch of users to accessing the bitmap by providing their own SkBitmap* on which to set the (ref counted!) SkPixelRef* instead Attempt #2 to land this, original issue was in getSkBitmap and should be fixed Change-Id: I0fd9e193968b41e5597784140d56b4885906864a
dfRenderer.cpp
|
edc22fba5921f5c2d3502727e707f959b8c3a460 |
21-Apr-2015 |
John Reck <jreck@google.com> |
Revert "Change how Java Bitmaps are accessed in a few places" Bug: 20207616 This reverts commit a771b9861d11671c780092d35c0062eeefcf37c0. Change-Id: Ifd891cc075274a7986e987229e0fed5a04ed9ff0
dfRenderer.cpp
|
a771b9861d11671c780092d35c0062eeefcf37c0 |
10-Apr-2015 |
John Reck <jreck@google.com> |
Change how Java Bitmaps are accessed in a few places Stop assuming that a Java Bitmap has a SkBitmap* that has some externally managed lifecycle, and instead switch a bunch of users to accessing the bitmap by providing their own SkBitmap* on which to set the (ref counted!) SkPixelRef* instead Change-Id: I0fd9e193968b41e5597784140d56b4885906864a
dfRenderer.cpp
|
71487eb0ceb2b7dea02649e78d99bb5952f5eaef |
19-Nov-2014 |
Mike Reed <reed@google.com> |
Merge frameworks/base changes from master-skia to master. Adaptations to changes in Skia upstream since Oct 2014. (https://code.google.com/p/skia/issues/detail?id=2377) cbb922d use new roundOut signature 77082de Call SkColorTable::readColors(). 5456ab1 Handle the result of SkMatrix::asAffine. 25cfc78 Remove dependence on SK_LEGACY_PICTURE_SIZE_API. BUG:18468293 Change-Id: I5a4d274e854298843891410b1ffd5e24f038b88a
dfDocument.cpp
dfEditor.cpp
dfRenderer.cpp
|
18981294a58c411a4a33ebb22caf9c75ba639691 |
17-Dec-2014 |
Leon Scroggins III <scroggo@google.com> |
Make SkiaCanvas creation call ref() on SkCanvas. There are two callers of SkiaCanvas::create_canvas(SkCanvas*). In both cases, we were calling ref() first. It is necessary to call ref() in both cases, since we have an SkCanvas returned by SkPictureRecorder::beginRecording, which does not increment the ref count to account for the caller. (i.e. the SkPictureRecorder has the only ref until you call ref()). Rather than leave the ref up to the caller, since the SkiaCanvas does the unref(), it should also do the ref(). Update it to do so and document its behavior. Also, make SkiaCanvas' constructors explicit. Change-Id: I894d0a71a87587cf8c2b26deb2384dc49ae090ef
dfDocument.cpp
|
7d13d9db1ef90063cb542ccd6554042a6a3263b7 |
21-Nov-2014 |
Andreas Gampe <agampe@google.com> |
resolved conflicts for merge of 3fc5e3ca to lmp-mr1-dev-plus-aosp Change-Id: Id8286e5a4381315a6060251a8055b0f1d1a96019
|
ed6b9dff563c5e22f040ff37e12c0d771e0478ae |
21-Nov-2014 |
Andreas Gampe <agampe@google.com> |
Frameworks/base: Consistency in core/jni Make consistent use of core_jni_helpers for registration. Translate some #ifdefs into const bools. Change-Id: I37639aa053dd50f003a552cbd8550dddecc811c5
dfDocument.cpp
dfEditor.cpp
dfRenderer.cpp
|
3a091b79978caa9b5d58ae19f693279e5a717c2a |
21-Nov-2014 |
Dan Albert <danalbert@google.com> |
resolved conflicts for merge of 8e0cfe7c to lmp-mr1-dev-plus-aosp Change-Id: I068d2a0fb118d4e2b4c1e546bebfcbc2cb120d36
|
46d8444631b4b1253a76bfcc78a29d26014d022f |
19-Nov-2014 |
Dan Albert <danalbert@google.com> |
Fix clang warnings in core/jni. There are a few bugs in here too (mostly people expecting + to concatenate C strings) :( Change-Id: I0a243c05c4ea8b56e84896f37814d0fbea4c39d5
dfEditor.cpp
dfRenderer.cpp
|
b380d7eeee2ea73bcd2bfdf0b0b3339ab93ff75c |
19-Nov-2014 |
Chih-hung Hsieh <chh@google.com> |
am b1e4e89b: Merge "Fix incorrect usage of bool" * commit 'b1e4e89b86ee12335fa1398a6b2bc0a0604599de': Fix incorrect usage of bool
|
92ddfcfff5cec32456e2d1e0d96671f1eb0e2986 |
17-Nov-2014 |
Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> |
Fix incorrect usage of bool A bool can't be < 0 Change-Id: Ie94ffadcb38c95214d1105c02610e59b4b2872b2 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
dfEditor.cpp
|
f4e341d99c4c29cb6cc7380829a316cf4847f3df |
14-Nov-2014 |
Andreas Gampe <agampe@google.com> |
Frameworks/base: Mask pdfium warning Mask out warnings from external/. Change-Id: I371e1346925c7eb5cdc9c4dcffab41ff0c6ddd63
dfEditor.cpp
|
035a7b0235835e856f39623fc571668e2d6048da |
14-Nov-2014 |
Andreas Gampe <agampe@google.com> |
am 0626ec58: Merge "Frameworks/base: Wall Werror in core/jni" * commit '0626ec58243c9dc7f4812a453ef9456b1f7ff1f4': Frameworks/base: Wall Werror in core/jni
|
0f0b4919667f418b249c497f5ad3e83fdf4437e5 |
12-Nov-2014 |
Andreas Gampe <agampe@google.com> |
Frameworks/base: Wall Werror in core/jni Turn on -Wall -Werror in core/jni. Fix warnings. Clang TODO: For GCC we need to turn off Wunused-but-set-variable in the GL bindings. However, Clang doesn't have that warning and thus complains about an unknown pragma. It is necessary to make the pragma #ifdef-ed on the compiler being GCC. Change-Id: I14cab48d45c2771eef0432082356c47ed44a3d7f
dfRenderer.cpp
|
fce84f035c35606c5707e735f503f7bdcfd5b2a1 |
01-Nov-2014 |
Svet Ganov <svetoslavganov@google.com> |
Crash apps that print malformed or password protected PDFs. If apps are writing malformed content (typically not a PDF file) or if the PDF content they provide to the print system is password protected, are now crashed as both of these are app bugs. bug:17636435 Change-Id: Ifce6a3199e587448dd38f6a84290a965c24b698b
dfEditor.cpp
dfRenderer.cpp
|
bec22beb99b279d381f720d761ca75fe3e7414dc |
25-Sep-2014 |
Svetoslav <svetoslavganov@google.com> |
Save to a PDF file should look like print preview. When rendering a PDF file for print preview we take into account the selected print options such as paper size, orientation, etc without modifying the document. To print we send the doc in its original form and the print options so the print service can apply the necessary transforms in addition to the optional custom options it supports. When saving to PDF we have to actually change the document as we act as a print service. bug:13545980 Change-Id: Icdcecf962bec6ff742cc6015df5af9d9086ce760
dfEditor.cpp
|
62ce332c141cf7bc7200c4c87d63e395874fc3ec |
05-Sep-2014 |
Svetoslav <svetoslavganov@google.com> |
Trim unnecessary pages when printing. A user may request a subset of the document's pages to be printed. In this case the expectation is that the resulting document does not include not selected pages. While print serivices can do the trimming themselves or the printer may do so, moving, potantually many, redundant pages is inefficient. The real problem is when saving to a PDF file where the saved file must not have the pages the user did not select. This change adds shredding of undesired pages from the PDF before saving it or passing it to a print service. : bug:17285994 Change-Id: I7deba535af99457bea3c118202314f0f3812e809
dfEditor.cpp
|
8872b38ef403cc2c44aca07d392f5e9426fd7f54 |
23-Jun-2014 |
Derek Sollenberger <djsollen@google.com> |
Separate Canvas JNI code from the implementation. This introduces Canvas.h which is a pure virtual interface that is intended to be used by both Skia and HWUI implementation. To help stage this transition this CL only introduces the interface and Skia implementation. The interface is not intended to be final and will undoubtedly go through iterations in both style and location as we look to introduce the HWUI implementation. BUG:15672762 Change-Id: Ibaccdddb87d3b9358f4f0c1d317ead5282d4ee16
dfDocument.cpp
|
580ff8142b7d0455d0d41ee77572b4f55dd935f0 |
17-Jul-2014 |
John Reck <jreck@google.com> |
Revert "Separate Canvas JNI code from the implementation." This reverts commit e28a5afee885cd69a5be5809f88116b601cb1a72. Appears to cause memory corruption and random appearances of chinese Bug: 16343240 Bug: 16336642 Change-Id: Ife169181f40adff4b12948ed5f9d3a88dcec935b
dfDocument.cpp
|
f5d6c555c3430f6e423952ba3ab024380e550bba |
23-Jun-2014 |
Derek Sollenberger <djsollen@google.com> |
Separate Canvas JNI code from the implementation. DO NOT MERGE This introduces Canvas.h which is a pure virtual interface that is intended to be used by both Skia and HWUI implementation. To help stage this transition this CL only introduces the interface and Skia implementation. The interface is not intended to be final and will undoubtedly go through iterations in both style and location as we look to introduce the HWUI implementation. BUG:15672762 Change-Id: Idefadede356f688edb8eb09b4a02aa01b4077f62
dfDocument.cpp
|
525a66b2bb5abf844aff2109bdc9ed819566bece |
15-Jun-2014 |
Svet Ganov <svetoslavganov@google.com> |
Adding print preview. This change adds the pring preview part of the new print UX. The UI has two parts, the top section is the print options and the bottom section print preview with a list of pages. The user can interact only with one of them. When print options are expanded they cover the preview content and a scrim is laid out on top of the preview. Tapping the scrim collapses the print options. When the user types in page ranges and closes the options to look at the preview, the latter is updated to show only these pages. In the list of pages the user can further prune pages by deselecting them. Change-Id: I0b23d2c598afe2a34400ccfa43e4e935af83c72f
dfRenderer.cpp
|
b59508fce51b23f0201f4dcba7e4f18bab4f9d1a |
23-Apr-2014 |
Robert Phillips <robertphillips@google.com> |
Changes to framework for ToT Skia. Consists of 3 cherry-pick from changes by robertphillips@google.com in master-skia: ----------------------------------------------------------------------- New AndroidPicture wrapper class Address code review comments & use new SkPictureRecorder::partialReplay entry point Addressing code review issues Switch MakePartialCopy to makePartialCopy Conflicts: core/jni/android/graphics/Picture.cpp Ie530ab15b3d549f0ecfb0ecc131f9144a7b72a91 Remove AndroidPicture from GraphicsJNI and split into .h and .cpp ----------------------------------------------------------------------- Fix lingering legacy picture recording behavior Address code review issues Iaf870c2c400dbe70dc32d6d445574904f5ea718f ----------------------------------------------------------------------- Update Android to new SkCanvas::drawPicture interface As of Skia 9b14f26d (Alter SkCanvas::drawPicture (devirtualize, take const SkPicture, take pointer) - https://codereview.chromium.org/313613004) SkCanvas::drawPicture has an alternate signature. The old entry point is deprecated. I63395da61ecc3b58bfd2bc094752081f4b2f7535 ----------------------------------------------------------------------- Change-Id: I041133aeb5639abd853370e512acf93870f82aea
dfDocument.cpp
|
2961769ea94f69c191a2dd785b2504666c7292d0 |
25-Apr-2014 |
Svetoslav <svetoslavganov@google.com> |
Adding APIs to render PDF documents. We need to render PDF documents for two main use cases. First, for print preview. Second, for resterizing the PDF document by a print service before passing it to a printer which does not natively support PDF (most consumer ones). Adding PDF rendering APIs improves guarantees for print quality as the same library is used for preview and rasterization. Also print vendors do not have to license third-party rendering engines. Last but not least as the platform uses PDF as its main print format it should also be able to natively render it. Change-Id: I57004a435db147663cafea40cf3296465aba7f99
dfRenderer.cpp
|
cdf34469b3a49b73ffa4ab2766b55d7c0946fab1 |
23-Jan-2014 |
Ashok Bhat <ashok.bhat@arm.com> |
Use long for pointers in EmojiFactory and PdfDocument Change-Id: I275c9ce390dd9e01f772e2044c74cebdb0701de6 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
dfDocument.cpp
|
35aacf2eb325d24c67d01f4dbd706ed26ab9e8c3 |
07-Nov-2013 |
Svetoslav <svetoslavganov@google.com> |
Switch to the new Skia PDF generation APIs. The new Skia PDF generation APIs are a small extension to the code that converts drawing commands to PDF (SkPDFDevice) and this new functionality is exposed via new APIs. This change switches to using these new APIs allowing us to capitalize on the new perspective support for PDF generation. bug:11561776 Change-Id: Ief61f7ff6a5a22c27d3acbe99a48910cb679f594
dfDocument.cpp
|
6811f4e92cbb64e72a0d13eb9b99b5894bd59c76 |
19-Sep-2013 |
Svetoslav <svetoslavganov@google.com> |
Move PdfDocument to android.graphics.pdf 1. Move PdfDocument to android.graphics.pdf. 2. Changed the PdfDocument as per API concil request. 3. Updated the documentation. bug:10461180 bug:10552565 bug:10681585 bug:10552336 Change-Id: I08e15b34cf37bb064248c887e6f59808019cafe8
dfDocument.cpp
|