df-libreoffice:private/Ashod/cd-5.3-3.2_import_unloaded

Last commit made on 2018-06-20
Get this branch:
git clone -b private/Ashod/cd-5.3-3.2_import_unloaded https://git.launchpad.net/df-libreoffice
Members of The Document Foundation can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
private/Ashod/cd-5.3-3.2_import_unloaded
Repository:
lp:df-libreoffice

Recent commits

1fb42f8... by Ashod Nakashian <email address hidden>

vcl: remove swapping logic from GraphicObject to support lazy-loading

Change-Id: I286a9b6ee75f07744232771263c26579ad9653e7

7be2fd1... by =?utf-8?q?Toma=C5=BE_Vajngerl?= <email address hidden>

vcl: detach usage and remove GraphicManager and GraphicCache

Also remove some GraphicObjectTest because they call into
GraphicManager which now doesn't exist anymore.

Reviewed-on: https://gerrit.libreoffice.org/52243
Tested-by: Jenkins <email address hidden>
Reviewed-by: Tomaž Vajngerl <email address hidden>
(cherry picked from commit ea3d755ac949c1b6dada5c341e018f8c23f5d395)

Change-Id: Ia434736d8611df629af3e897c878a7fb8bbe4706

515abee... by Mike Kaganski <email address hidden>

tdf#110448: Remove "Memory" page from Options dialog

The relevant caches settings are still available under Expert
Configuration:

/org.openoffice.Office.Common/Cache/GraphicManager/TotalCacheSize
/org.openoffice.Office.Common/Cache/GraphicManager/ObjectCacheSize
/org.openoffice.Office.Common/Cache/GraphicManager/ObjectReleaseTime
/org.openoffice.Office.Common/Cache/DrawingEngine/OLE_Objects
/org.openoffice.Office.Common/Cache/Writer/OLE_Objects

Reviewed-on: https://gerrit.libreoffice.org/40640
Tested-by: Jenkins <email address hidden>
Reviewed-by: Mike Kaganski <email address hidden>
(cherry picked from commit 765398294b872d01fba5345a7aa65f310ff27868)

Change-Id: I7692fd94a873ba7220a21d51ff8a943598c6a9fc

edd715d... by Noel Grandin <email address hidden>

move transparency adjust code to BitmapEx

part of making Bitmap an internal implementation detail of vcl/

Reviewed-on: https://gerrit.libreoffice.org/49667
Tested-by: Jenkins <email address hidden>
Reviewed-by: Noel Grandin <email address hidden>
(cherry picked from commit d03c6ee8d0e2f5637038cf80b890e97630b60b9e)

Change-Id: I6978d84c86c3d55b3ebbeacda60fd94b160daa29

381c01e... by Ashod Nakashian <email address hidden>

vcl: maintain shared PdfData across swap-in and -out

Change-Id: I6e434e5b5db0ddcd2fb4d1e522ffdb1c963c1f34

2e53f66... by Ashod Nakashian <email address hidden>

vcl: sd: import PDF as unloaded images

Change-Id: Ibf9afeab2cb580a245af666b906310de1c9b351f

a9b6b1b... by Ashod Nakashian <email address hidden>

vcl: load the correct page when swapping-in a PDF Graphic

Change-Id: I00ffb9f76e763e1c4cd65c5dcea061d6d94d1d6a

d46098a... by =?utf-8?q?Toma=C5=BE_Vajngerl?= <email address hidden>

Function to load graphic swapped out (loaded on demand)

When a document is loaded it takes a lot of time and memory to
load the graphic that are in the documet, so avoid that and just
store the compressed graphic into a temporary file (handeled by
GfxLink) and load when we really need to show the graphic.

GraphicObject cached some attributes from Graphic, but this
attributes now aren't available immediately so this attributes
are removed form GraphicObject and now delegate to the Graphic
itself. GetSizeBytes attribute however was removed as it is
only used in some tests.

GfxLink initial values were moved to the constructor and are
not set in the header file anymore (as it is the recommended
way to do it).

The SdImportTest::testDocumentLayout failed as it looks like the
dump sometimes didn't include the width and height of the null
bitmap (which is set to 32x32) of the FillBitmap in some
situations, but then in other situations it did include this
attributes. With this change the width and height are always
included for the FillBitmap which looks like it is more correct.

Reviewed-on: https://gerrit.libreoffice.org/53016
Tested-by: Jenkins <email address hidden>
Reviewed-by: Tomaž Vajngerl <email address hidden>
(cherry picked from commit 7b355669c6ddeab2e6cec692d6afdff41c61d0fb)

Change-Id: Ia1218f93b1735402b7828404f65660e2d4acf32f

bc559ee... by Miklos Vajna <email address hidden>

vcl: split jpeg import into two parts

Split the import into two:

1) Just create the bitmap, this part is not thread-safe (e.g.
OpenGLContext::makeCurrent() is called when OpenGL is enabled).

2) Import the image into an existing bitmap.

The point is that the second part takes much more time than the first,
and in the future that part may be executed on a thread, while without
such a split the whole ImportJPEG() can't do that. For now
GraphicFilter::ImportGraphic() simply invokes the two parts after each
other, so no real functional changes yet.

Reviewed-on: https://gerrit.libreoffice.org/37397
Reviewed-by: Miklos Vajna <email address hidden>
Tested-by: Jenkins <email address hidden>
(cherry picked from commit e8a05109d91bb9e82fcec5204514766f4bdbbee8)

Change-Id: Iee742a2cd3c581aeaf1a1ed9f55cd543955a85e0

d4333b1... by Noel Grandin <email address hidden>

convert GfxLink::IsEqual to operator==

exactly one use site

Change-Id: Id0a75d46c459be213e81b47aa6c1194c87aec848
Reviewed-on: https://gerrit.libreoffice.org/42891
Reviewed-by: Noel Grandin <email address hidden>
Tested-by: Noel Grandin <email address hidden>
(cherry picked from commit ce301dadcbbf8d0f0a71c7eaebca9bfad2e08801)