summaryrefslogtreecommitdiff
path: root/slideshow
AgeCommit message (Collapse)AuthorFilesLines
2015-11-17loplugin:unnecessaryvirtualNoel Grandin4-48/+0
update the plugin with lessons learned from the mergeclasses plugin and re-run it Change-Id: I9d622eb3d05fceaf8fa764c533c8fa5dfb4c7711 Reviewed-on: https://gerrit.libreoffice.org/20015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-16slideshow: initial work on "honeycomb" transition (incomplete)Tomaž Vajngerl3-2/+64
Change-Id: I4a46f7f1ec289f96f9fd1b849317b7548ac29383
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian1-163/+220
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-13slideshow: improve rotation timing in glitter transitionTomaž Vajngerl1-20/+26
Change-Id: I8b0475a6dcde53202a489b9d3265add9fe068cbc
2015-11-13slideshow: simplify NByMTileFlip transitionTomaž Vajngerl1-23/+15
Change-Id: I0ec07eb25d538d82d740a33f05b0a4f002adf36a
2015-11-13slideshow: add "glitter" slide transitionTomaž Vajngerl3-5/+67
Change-Id: Ie89b64c4399cd0092eee579660c9fe85f8ca8e73
2015-11-12Bin mesa_headers completelyTor Lillqvist2-2/+0
We don't need them in a MSVC or OS X compilation either. Change-Id: I00181fe0a047df09bbdfcce34c07eb2ebc45a2da
2015-11-12Avoid mesa_headers on X11, also link with -lGL only where necesssaryTor Lillqvist2-2/+2
The GLEW headers are enough, and what we actually use in these places. In addition to handling GL extension things in its dynamic fashion, GLEW headers also have declarations for standard, non-extension, OpenGL API, including xgl and wgl ones. Most likely we don't need mesa_headers on Windows or OS X either, and can drop them completely. Change-Id: Ic0d8d6238c862f8fe4a74e99e95344dcbf540980
2015-11-11new loplugin: memoryvarNoel Grandin1-4/+4
detect when we can convert a new/delete sequence on a local variable to use std::unique_ptr Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc Reviewed-on: https://gerrit.libreoffice.org/19884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann16-32/+32
Change-Id: Ief4dd31d68bd7c8e45070eea689d07057449ce77
2015-11-10Improve the Vortex transitionTor Lillqvist1-3/+11
Let about half the tiles move around in one direction (in front of the slide plane), and the rest the other direction (behind the slide plane). Make sure tiles that rotate into each other's location go the same way around, so that they don't pass through each others, which looks ugly. Avoid z-fighting by not letting the tile end up exactly on top of the one it is replacing, in case that one has not started moving yet. Change-Id: I232b0f815412d5d575b0dde4df2d337288e645bb
2015-11-09Simplify and improve (?) the Vortex transitionTor Lillqvist1-34/+14
Change-Id: I0602be9567961ca3bb5d41febd35ad65d8d7fb2a
2015-11-08Now I understand why that multiplication by 10 was there originallyTor Lillqvist1-1/+1
I was suffering from one basic misunderstanding: I did not get it that samplers are indexed with normalized texture coordinates, i.e. 0..1. (Note that multiplying a coordinate by any number does not break anything horribly for this use case, looking up a pseudo-random number, because textures by default repeat as a coordinate wraps.) We multiply by 10 so that neighbouring pixels that map to close index into the permTexture don't get clumped together with close sn values, and thus same behaviour. (Sure, the multiplication by 256 that I had changed it to worked, too, but not the way my initial reasoning went... So let's use the original 10 to avoid somebody else thinking that we need to multiply by 256 because permTexture is built from a 256x256 array.) (See 1877228ae8e7cc298cf4e45d061ee54774aa1d08) Change-Id: I1d350446460fe2fdd3e55f00053a5ce01d2d117c
2015-11-07Improve transition shader portabilityTor Lillqvist7-94/+40
Use #version 120 explicitly, and adapt the shader shader code accordingly, to use strictly only GLSL 1.20 constructs. Also, use less vertex attribute data in the Vortex vertex shader: We can pack the per-vertex tile x and y index and in-tile vertex index information into one float. Also, the shader can calculate the center of the tile a vertex belongs to based on the knowledge of which tile it is. Now the shader transitions work on OS X, too. Change-Id: I93e8b5069a6d06d2e412ffee322b1eb32805e606
2015-11-06Make the Vortex transition a bit more interestingTor Lillqvist3-53/+113
Also some minor cleanups in the C++ code. Change-Id: I106657130dd6e32b458cb416717806caac5031ce
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann6-16/+14
Change-Id: I23de1fa2f8e6c0cf6281b32eab179e131aa98056
2015-11-06Add a 'Ripple' transitionTor Lillqvist5-0/+109
Change-Id: I18efe35c299bc3a4a2a5e449021323fc1f53f378
2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin2-3/+2
Change-Id: Ib93d762cf523e0029bbed16e08beebd9f418ae24
2015-11-04yyyyyNoel Grandin4-11/+5
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-10-30Mac fixStephan Bergmann1-1/+1
Change-Id: Ib44f84ae028a73dd1940797acdadaff1e3c206d9
2015-10-30The fglrx driver is an X11 only thingTor Lillqvist1-1/+2
It means "FireGL and Radeon for X". Change-Id: I188fa03a113d9977a7a240bc0fc9f6dc9be054b8
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin1-2/+2
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-30coverity#1332210 Uninitialized scalar fieldCaolán McNamara1-3/+11
Change-Id: I9f62e3f9d2bb517ad8f40400004670de1c4d06a5
2015-10-30loplugin:unusedmethodsNoel Grandin1-86/+0
Change-Id: Id3b5cd75d4357336ed592ef11a3f34d209f8e95f Reviewed-on: https://gerrit.libreoffice.org/19636 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-29com::sun::star->css in slideshowNoel Grandin66-381/+249
Change-Id: I7ae3c5198c22a3937e8c3ef87f48fa2a7e562c62 Reviewed-on: https://gerrit.libreoffice.org/19664 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-27Remove initial :: from sal_* typesTor Lillqvist3-43/+43
Change-Id: Idcdc9aeb7d3fdca0a9db43c1cb518ab1d1b2f0f4
2015-10-27Nothing that would be covered by that hereTor Lillqvist2-50/+12
Change-Id: I4f76c7699333cd9236f5231984db5c6d02a31445
2015-10-27WaE: unused parametersTor Lillqvist1-1/+1
Change-Id: I4273a4ddc00d24f561cce6a21b5237d4dfc56a92
2015-10-27Initial work on a "Vortex" transitionTor Lillqvist6-0/+352
The actual transition is not yet at all like the one in the competing product. But some basic ideas are in place. Change-Id: Ie17a4fe03ae93abe51a2f1f760f417ee4b193e2c
2015-10-26Bin dead codeTor Lillqvist1-2/+0
We already have an if statement for (time < PART) right above. Change-Id: I43b817dd6d0a11be4ed51a5bd378806447abf69c
2015-10-26Actually, the permTexture is 256*256 pixelsTor Lillqvist1-3/+1
Change-Id: Ia32c98d8162f31a8ee0b0d0c1301ca204c9c3c87
2015-10-26Add confused commentTor Lillqvist1-0/+2
Change-Id: I5179ee1cd295f256526feebb192a8548c41276a7
2015-10-26Drop some 'using', the std:: is not that uglyTor Lillqvist1-9/+6
Change-Id: If26ae80278dc55d5bf9fa644763e653c69415597
2015-10-26Use std::shared_ptr instead of boostTor Lillqvist3-86/+81
Change-Id: Id1b48f190831bbd4cc75d0d9e315e5b2b491d595
2015-10-26Simplify ifdefsTor Lillqvist1-16/+8
Change-Id: I5c3835f6fdc215e5d9dc1b8146c12e0d1a57da7c
2015-10-23Remove obsolete version map filesStephan Bergmann1-25/+0
Change-Id: Ic179264fe306bb2bca9797f10e26c0224fb1dd00
2015-10-22Use same order in this switch, too, as aboveTor Lillqvist1-18/+18
Change-Id: Icbe775e59d66efbb994a73c00024f9f7750f9ef0
2015-10-22Add a bit of explanatory commentTor Lillqvist1-14/+21
Also, sort the cases in the switch in numeric order for clarity. Change-Id: Ic32da29a78b3aeedf22ee5f646a0975e4cbcb9cc
2015-10-21No, it isn'tTor Lillqvist1-1/+1
Change-Id: I0236ff718ec9c3ee8d5845a044d65c927a896879
2015-10-21remove untyped Link<>Noel Grandin1-3/+2
Change-Id: I809f9e10309ceadda0a82c3818277323b34ec61b Reviewed-on: https://gerrit.libreoffice.org/19491 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-19slideshow: remove unecessary boost/bind includesDaniel Robertson4-5/+1
All of the remaining includes of boost/bind.hpp may be removed from slideshow, as last remaining uses of boost::bind have been removed from the module. There should be no side effects due to this change. Change-Id: I4e1855545fad69d09e594d0be139c09aad561b2d Reviewed-on: https://gerrit.libreoffice.org/19395 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-15loplugin:unreffunNoel Grandin1-7/+0
Change-Id: If9ca3e2d88d1b0dee57531ed954ba4895fb37fe3
2015-10-15tdf#93243 slideshow: boost::bind -> C++11 lambdasDaniel Robertson2-68/+43
Replace boost::bind with C++11 lambdas. In addition, replace the use of FuncT::result_type in ListenerOperations::notifyAllListeners with a less type specific means of determining the return type of the function to be applied in order to allow for the use of C++11 lambdas. Change-Id: I1035be976e542d8b5bbd451c473a896d91ed66ca Reviewed-on: https://gerrit.libreoffice.org/19314 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-13tdf#93243 slideshow: boost::bind -> C++11 lambdasDaniel Robertson6-71/+44
Replace boost::bind with C++11 lambdas Change-Id: I37e769c88d997eaecf46c07e510cef6a30fbce8e Reviewed-on: https://gerrit.libreoffice.org/19334 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-13cppcheck:variableScopeNoel Grandin1-13/+13
Change-Id: I7cbd5a9e9bb5417f754d4e2445df309140fd40af Reviewed-on: https://gerrit.libreoffice.org/19329 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann78-511/+511
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-11tdf#93243 slideshow: replace boost::bindDaniel Robertson7-96/+52
Replace boost::bind with C++11 lambdas Change-Id: I13c500d085e6b8e80b2c067139db4ed0fffb2c71 Reviewed-on: https://gerrit.libreoffice.org/19299 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-11Replace simple while loops with range-based forDaniel Robertson10-195/+94
Replace simple while loops with range-based for-loops when apropriate. There should be no side effects due to this change. Change-Id: I0c39d4c10c991354248e864a09333144974c953c Reviewed-on: https://gerrit.libreoffice.org/19281 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-09slideshow: replace for_each with range-based forDaniel Robertson11-174/+82
Replace ::std::for_each for a more readable range-based for loop in cases in which the function object to be applied by for_each is more readable as the body of a for loop. Change-Id: I5798293cdd0d784cc4c95c67e3fc6a0b930db8bb Reviewed-on: https://gerrit.libreoffice.org/19261 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-08tdf#94222: Revert "slideshow: replace for_each with range-based loop"Jan Holesovsky13-147/+316
This reverts commit ead5bc3cfb07a4e96e367e7904dc674ee5f5ccd6. Change-Id: Icc2778cf904a71c4deaff4575d0de231acfc1335