Commit Graph

904 Commits

Author SHA1 Message Date
87fad21582 LOK: Add a tiled rendering testbench.
Change-Id: I631c0506f427d974c3dd4c75484aa25603100895
2014-10-02 00:23:06 +01:00
25b110cd13 android: android:debuggable setting now depends on configure options.
Change-Id: I12d9c05fb05e4cf202c5c0d7b7e87c145d163fea
2014-10-01 17:04:07 +02:00
28eec2207c android: disable packaging of un-needed UI files.
Appears to save ~10Mb of apk size.

Change-Id: I7c49da979e2868628bf3cf07937e898d717a5071
2014-09-30 17:07:26 +01:00
27953d4122 android: minimize the rounding error, clean-up MultiTileLayer
Change-Id: Ib167acf5914596b69ee240255aaab173a0570038
2014-09-28 22:32:49 +02:00
295f3c12df android: LayerRendered - rename member to mScreenShotLayer
Change-Id: I16fbda06c75bbf80e7d2c2b045418297589c6ff7
2014-09-28 22:32:48 +02:00
d935e7be2c android: revert ScreenshotLayer draw method back
Own draw method expands the picture correctly but for some reason
the SingleTileLayer draw method does not so revert back.

Change-Id: Ie8e39fc46b84ae410439a781928ff79bc1503d10
2014-09-28 22:32:48 +02:00
ebc25c4279 android: replace with ImmutableViewportMetrics (Fennec import)
Change-Id: I46509f8be4dc49dac45eb98059dad25e150988dd
2014-09-28 22:32:48 +02:00
f66ff689d0 android: Improve panning smoothness (Fennec import)
Change-Id: I3983709651548eb97e588ebe2c2de608a4a4dfc7
2014-09-28 22:32:48 +02:00
590fdf4116 android: solve black screen on load - call setForceRedraw
Change-Id: Ia9ae05a14c0c751fde961186be350d57d5308519
2014-09-28 22:32:47 +02:00
40e919d2a1 android: remove notifyLayerClientOfGeometryChange (Fennec import)
Change-Id: Ibc1f4d11dcfdf177cd45fcf689b518d975b13709
2014-09-28 22:32:47 +02:00
0151bf3f28 android: move scrollBy & scaleWithFocus to PZC (Fennec Import)
Change-Id: Ie0d23b302994134f9d382e255b0408f7c9f1c1fb
2014-09-28 22:32:47 +02:00
94e7296fc5 android: add PanZoomTarget (Fennec import)
Change-Id: Ib946b7a95cd59833a732e3da6c139e848778e1bc
2014-09-28 22:32:47 +02:00
3e4d5713c1 android: remove getViewport and getZoomFactor (Fennec import)
Change-Id: Id28994e51adf779bd5462901c23c488e3465f91b
2014-09-28 22:32:47 +02:00
7e8322f251 android: add ZoomConstraints (Fennec import)
Change-Id: I7bb840f74675a2e23fd7ee45aad4d48a705e567e
2014-09-28 22:32:46 +02:00
93e7ffbd1b android: PanZoomControler updates from Fennec
Change-Id: Ic338221ced6133771af8f46ae4a257e043a1709f
2014-09-26 23:17:22 +02:00
dc169a05cf android: remove unused screenSize (Fennec import)
Change-Id: I0b8d1b29ab3219bc75de6c087e410523c18dbeef
2014-09-26 23:17:22 +02:00
c6ed6a2db8 android: change pageSize to pageRect (Fennec import)
Change-Id: Ia3958b174e7190171cbd006550e47677a1ba0966
2014-09-26 23:17:21 +02:00
40ca1cea9b android: remove tiles delayed by one redraw call
Change-Id: I5ab5e4a0ba9cdf3f3115c4913b4cf04e7f062755
2014-09-26 23:17:21 +02:00
fd08f4fc4b android: rerender tiles when the zoom changes
Initial implementation which needs a lots of polish. Sometimes
the app crashes (for yet unknown reasons). Sometimes a gap
between tiles is visible probably because of rounding errors.
Tile handling and releasing after zoom is quite naive for now
(just clearing all the tiles) which needs to be improved to be
more seamless.

Other changes: The responsibility of LOKitThread to handle tiles
was moved to MultiTileLayer. TileProvider now takes into account
the current zoom level when requesting tile rerendering.

Change-Id: Ic188c03bfadf3a3dd2f79b04f07668eb63b705fb
2014-09-26 23:17:21 +02:00
91d9276a12 android: clean MultiTileLayer of unneeded variables/methods
Change-Id: I7750322000230448d6283107daace3d9bb5da61d
2014-09-26 23:17:21 +02:00
3d39425794 android: Log number of invalidated tiles
Change-Id: I1ebfcf48f1d9a44836b4d9bf90c04c3be27cb365
2014-09-26 23:17:21 +02:00
0ab9ddaf4d android: LayerRenderer - use highp and flip in vertex shader
Change-Id: Ia517b0d94fdfb3f8fdd9b9c383c8fb337173932c
2014-09-24 20:43:04 +02:00
f789cd425e android: define mRootLayer directly as MultiTileLayer
Change-Id: I6a1f6971482ea1de28977d7905ba9fd85921551d
2014-09-24 20:43:04 +02:00
df433a70cd android: upgrade PanZoomController - add configurable zoom limits
Change-Id: I19815f58af4d060cffe515829a2a5472d32bf83c
2014-09-24 20:43:04 +02:00
0455b3d4b8 android: update LayerRenderer to newer Fennec code
Change-Id: Idc7c49351c17dc9953d55ee7f1b42e497074c85a
2014-09-24 20:43:04 +02:00
2550cb0124 android: introduce TileProviderFactory
Change-Id: I98ba16b4d1537ddeb2f8a29d15a803d527ccafe3
2014-09-24 20:43:04 +02:00
ef2b36f8d3 android: GeckoLayerClient update
Change-Id: Ie684a4d3ef012b004ede52265750da5497db434e
2014-09-24 20:43:03 +02:00
1fa58e5c60 android: update DisplayPortCalculator
Change-Id: Ib47822940e83e8fb78a0a8b1e18028646bfb35ae
2014-09-24 20:43:03 +02:00
0aad04016c android: destroy tiles (free the bitmap) when they are removed
Change-Id: I55959c115467f98d43d471c280bb3a0248b669ec
2014-09-24 20:43:03 +02:00
688ff90d32 android: force initialize LibreOfficeKit, clean-up
Change-Id: I0c7b7d10b34c0f71bf8500696fdbc0ed38303f0e
2014-09-24 20:43:03 +02:00
2c15cb70f3 android: extract touch handling into TouchEventHandler
Change-Id: I138f746940bf89349d4662c95427113bff221231
2014-09-24 20:43:02 +02:00
b0a1d4303c android: remove FlexibleGLSurfaceView
Change-Id: Ie2f3741d7aa86b5df25723d8665a679962a0efc9
2014-09-24 20:43:02 +02:00
8b0772df4e android: optimize LayerRenderer
Change-Id: I95ccb35848dc5cf3d44b761abac4e81562089186
2014-09-24 20:43:02 +02:00
cc2f2afd7e android: add DisplayPortCalculator and DisplayPortMetrics
Change-Id: I1418023011cf0ef3611e3fda6f313d9fcb9ccea7
2014-09-24 20:43:02 +02:00
b85c779595 android: use JNI direct memory allocator from Fennec
Change-Id: I95a9ab54222150a1f9cde30df820f3cd6915f641
2014-09-24 20:43:01 +02:00
2897374fda android: cleanly load/close a document when activity starts/stops
Change-Id: I2206a2b6818c030ba756f2b4d014a20d46f4106e
2014-09-22 22:40:07 +02:00
18c052d6d6 LOKit: add "destroy" and "saveAs" to android JNI
Change-Id: I08542b736e49cb9262323e9fe6188b1976d47935
2014-09-22 22:40:07 +02:00
ce2d41b58a Remove ActionBarSherlock from android
3195c6d removed the only use of ActionBarSherlock, but did not stop it
from being built. This causes the build to fail in abs-lib due to the missing
v4 support library.
Stop building abs-lib and remove the no-longer used code.

Change-Id: Ib9dd4b4b95d64ef251eaf8d4b24e539be9d855ff
Reviewed-on: https://gerrit.libreoffice.org/11421
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-09-22 06:23:52 +00:00
62a6a7d7d7 android: upgrade layers to newer code
Change-Id: Ife0d7cfad8b416c9363321a2fd1f4e9a8a1f4325
2014-09-21 23:10:25 +02:00
9bc2a66b23 android: upgrade gestures and scrolling to newer code
Change-Id: I84b9f66036891f6ad384ee71d078c654511a6e38
2014-09-21 23:10:25 +02:00
f02cef962b android: convert to ImmutableViewportMetrics
Change-Id: Idd5e604541577f6b812a971e585cee9b089d2b4b
2014-09-18 23:05:04 +02:00
046e19ef2c android: thumbnail as background when tile is not available
Change-Id: Id38e40b3fdb46adeb19e6a1e106775391c5da455
2014-09-18 23:05:04 +02:00
6ca57cb25e android: fix thumbnail() to produce a valid bitmap
Change-Id: I578ac9482f334765c71a66421a3fa2dfb85e22b3
2014-09-18 23:05:04 +02:00
58f5e531f7 android: import changes from Fennec to get ScreenShotLayer
Change-Id: I1b72af85a906aef289d1be086274941094df4f96
2014-09-18 23:05:03 +02:00
cd76306355 android: Log tile managing times
Change-Id: I70fe5f1ca6553e2b3282ad0f5c227c5c0bc31f86
2014-09-18 23:05:03 +02:00
1a42c78a59 android: create thumbnail with "paintTile" LOKit function
Additionally remember the document dimensions, so there is no
continuous call to "getDocumentWidth" and "getDocumentHeight"

Change-Id: I269b47178a25da28de8df98d0bd45211fb64797d
2014-09-18 23:05:03 +02:00
116fd06201 android: disable reinitialization on orientation change or resume
Change-Id: Ia87f27395acdf35a50d37212106674e9f9f34c0d
2014-09-18 23:05:03 +02:00
966fe14af2 Android browser: open documents with the new viewer
Change-Id: Iae63a8ec591df912938e74d67cb173f591c2a93d
Reviewed-on: https://gerrit.libreoffice.org/11488
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-09-18 20:53:17 +00:00
71832a527a Android: merge LibreOffice4Android into LOAndroid3
This commit merges the code of the document browser found in
android/experimental/LibreOffice4Android into the new document viewer
at LOAndroid3. All the source and resources is moved, and some
duplicated files are removed.

From now on the apk generated by LOAndroid3 will provide the document
browser too.

Slightly modified the build files of ExperimentalDesktop project
because they depended on LibreOffice4Android being built.

Change-Id: I0579afda7b570509ca4d3873c28a13fcbeeb5ab8
Reviewed-on: https://gerrit.libreoffice.org/11487
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-09-18 20:52:01 +00:00
0eaeb92707 LibreOffice4Android: Reorganize resources.
Removed several copies of repeated resources and moved one of each to
the "drawable" directory.

There is no need to place several identical resources in "drawable-*"
directories, it's enough placing one copy in "drawable".

Change-Id: I72a9cecab5db7cdb461fcd7f89c783817746385b
2014-09-12 14:00:33 +02:00