History log of /haiku/src/apps/showimage/ImageCache.cpp
Revision Date Author Comments
# 6ea53cb5 07-Apr-2015 Janus <janus2@ymail.com>

Showimage: Test thread ID for generic error.

* Thanks Ingo and Axel.


# be63ec85 07-Apr-2015 Janus <janus2@ymail.com>

Showimage: Wait for loader threads on exit.

* Uses find_thread to wait for loader threads.
(better solutions are welcome)
* As suggested by Axel the cache isn't static anymore.
* Fixes 8902.


# e7785c54 20-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed a locking bug (there was even an assert for this); not sure if that
did any harm, but we'll see if the crashing improves.
+alpha


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41608 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3d1ed0fb 25-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix ShowImage crash when image loading fail: we don't have a CacheEntry then, but still
should notify our listener (of the error, in such case).
Closes #6842.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40692 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f38b8016 20-Feb-2011 Axel Dörfler <axeld@pinc-software.de>

* Be a bit more generous about the maximum cache size; it filled up pretty
quickly with high resolution pictures.
* Changed the way how it's determined to reject pre-caching an image; this
should work better in practice, and should also fix a potential problem that
sometimes the cache wouldn't accept anything beyond the current picture as
observed by stippi.
* Add optional debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40583 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 411a3062 05-Jan-2011 Axel Dörfler <axeld@pinc-software.de>

* Reverted accidental part of r40114. Thanks Philippe!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40123 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b76ca311 04-Jan-2011 Axel Dörfler <axeld@pinc-software.de>

* Renamed bootman to BootManager, and moved it to the applications.
* Renamed its signature to BootManager as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40114 a95241bf-73f2-0310-859d-f6bbb57e9c96


# df942b3e 18-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Always make sure the reference to the bitmap is actually released. This
should fix bug #6824.
* Don't queue more pictures if we can only use a single CPU, and the queue is
already busy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39486 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7c90c6bb 15-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Do not precache anymore if we're low on memory anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39442 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e2069723 14-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Removed the "shrink to window" option. Instead, there is now a "Fit to window"
menu item that just does that. Additionally, the image is always fit to the
window size when first shown, or if the full screen mode switches.
That also fixes #6765, and #6810.
* The ImageCache now also passes a referenced BitmapOwner object, and bitmaps
are now actually freed when it's allowed to.
* Pressing the zoom button will cause ShowImage to enter full screen again. For
some reason this has been removed as part of r19540.
* The progress window is now visible again, although not that often, as you will
only see it for images that were not in the queue already. The window is now
known to the ShowImageWindow instead of the ShowImageView.
* Moved most constants out of ShowImageConstants.h to where they belong.
* Dropping an image now opens it in another window.
* Removed EntryMenuItem as it's no longer used anywhere.
* Minor other cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39431 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b9767a83 08-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* The ImageFileNavigator is now only for navigation, it doesn't load any images
anymore.
* Moved the new ImageCache into its own source file.
* The cache is now used within ShowImage. There is no read-ahead caching being
done yet, though, but you can quickly return to previous images, and you can
also skip images faster than before.
* Improved separation between the ShowImageStatusView and the rest;
ShowImageWindow no longer has a getter for the image view.
* The status view is now using the private BDirMenu which implements enhancement
ticket #6778.
* Made a few more methods private/protected in ShowImageWindow.
* Fixed bug #6797.
* The bitmap is currently only owned by the ImageCache, but we need to have a
separate referenceable object owning it. Added a TODO comment for this.
* The ProgressWindow is currently not being used anymore, added a TODO comment
for this as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39364 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6ea53cb5bbd588a1c417fedfc4208c108cb63a50 07-Apr-2015 Janus <janus2@ymail.com>

Showimage: Test thread ID for generic error.

* Thanks Ingo and Axel.


# be63ec85a81119bc21734d0c4dc7f2b150433ed3 07-Apr-2015 Janus <janus2@ymail.com>

Showimage: Wait for loader threads on exit.

* Uses find_thread to wait for loader threads.
(better solutions are welcome)
* As suggested by Axel the cache isn't static anymore.
* Fixes 8902.


# e7785c54d7937ae3d21d68e008146f0af5a349d3 20-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed a locking bug (there was even an assert for this); not sure if that
did any harm, but we'll see if the crashing improves.
+alpha


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41608 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3d1ed0fb56d77db53540c2511fe92960527255d3 25-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix ShowImage crash when image loading fail: we don't have a CacheEntry then, but still
should notify our listener (of the error, in such case).
Closes #6842.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40692 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f38b8016a8e21933b8014d6899919b9d926444ec 20-Feb-2011 Axel Dörfler <axeld@pinc-software.de>

* Be a bit more generous about the maximum cache size; it filled up pretty
quickly with high resolution pictures.
* Changed the way how it's determined to reject pre-caching an image; this
should work better in practice, and should also fix a potential problem that
sometimes the cache wouldn't accept anything beyond the current picture as
observed by stippi.
* Add optional debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40583 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 411a3062f483b747ab2aa5f2d378093275ce737c 05-Jan-2011 Axel Dörfler <axeld@pinc-software.de>

* Reverted accidental part of r40114. Thanks Philippe!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40123 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b76ca311d17d58bd6c3ac6948d839076558adc88 04-Jan-2011 Axel Dörfler <axeld@pinc-software.de>

* Renamed bootman to BootManager, and moved it to the applications.
* Renamed its signature to BootManager as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40114 a95241bf-73f2-0310-859d-f6bbb57e9c96


# df942b3eb1d49d2928d957f9adaf282cdb4be665 18-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Always make sure the reference to the bitmap is actually released. This
should fix bug #6824.
* Don't queue more pictures if we can only use a single CPU, and the queue is
already busy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39486 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7c90c6bb111776fbd75dbc0ebcd361a67a2a9416 15-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Do not precache anymore if we're low on memory anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39442 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e2069723097dcded429323414605cd250207d2c0 14-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Removed the "shrink to window" option. Instead, there is now a "Fit to window"
menu item that just does that. Additionally, the image is always fit to the
window size when first shown, or if the full screen mode switches.
That also fixes #6765, and #6810.
* The ImageCache now also passes a referenced BitmapOwner object, and bitmaps
are now actually freed when it's allowed to.
* Pressing the zoom button will cause ShowImage to enter full screen again. For
some reason this has been removed as part of r19540.
* The progress window is now visible again, although not that often, as you will
only see it for images that were not in the queue already. The window is now
known to the ShowImageWindow instead of the ShowImageView.
* Moved most constants out of ShowImageConstants.h to where they belong.
* Dropping an image now opens it in another window.
* Removed EntryMenuItem as it's no longer used anywhere.
* Minor other cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39431 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b9767a83ed31ef0a0c8f7db0a6ec032f2ce82e7e 08-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* The ImageFileNavigator is now only for navigation, it doesn't load any images
anymore.
* Moved the new ImageCache into its own source file.
* The cache is now used within ShowImage. There is no read-ahead caching being
done yet, though, but you can quickly return to previous images, and you can
also skip images faster than before.
* Improved separation between the ShowImageStatusView and the rest;
ShowImageWindow no longer has a getter for the image view.
* The status view is now using the private BDirMenu which implements enhancement
ticket #6778.
* Made a few more methods private/protected in ShowImageWindow.
* Fixed bug #6797.
* The bitmap is currently only owned by the ImageCache, but we need to have a
separate referenceable object owning it. Added a TODO comment for this.
* The ProgressWindow is currently not being used anymore, added a TODO comment
for this as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39364 a95241bf-73f2-0310-859d-f6bbb57e9c96