summaryrefslogtreecommitdiffstats
path: root/components/enhanced_bookmarks/test_image_store.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix crashes due to gfx::Image unsafe thread passingkkimlabs2015-04-031-10/+14
| | | | | | | | | | | | | | | | | | gfx::Image has |storage_| member which is base::RefCounted, not thread safe. Thus passing around gfx::Image to other threads by copying is incorrect. Workaround by using scoped_ptr and making ImageRecord class RefCountedThreadSafe. Related discussion: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/8LqVoXQ_2bo BUG=471800 Review URL: https://codereview.chromium.org/1031293002 Cr-Commit-Position: refs/heads/master@{#323720}
* ★ Record the image dominant color in the image database.lpromero2015-01-231-14/+10
| | | | | | | | | | | | | | | This CL adds a column in the bookmarks images database. It contains the dominant color extracted from the image. Since this computation can be lengthy, it is done in the background, when the image is stored in the database. For old databases, a migration path is provided and the dominant color is computed and stored upon querying the image for the first time. BUG=448443 Review URL: https://codereview.chromium.org/875463003 Cr-Commit-Position: refs/heads/master@{#312916}
* Add GetStoreSizeInBytes() to ImageStore to know the actual db size.kkimlabs@chromium.org2014-06-021-0/+16
| | | | | | | | | | | | We will limit the enhanced bookmark image store database size to ensure that the db file size is reasonable. So add a function to query the actual file size. BUG=378853 Review URL: https://codereview.chromium.org/305963004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274297 0039d316-1c4b-4281-b951-d872f2087c98
* Change ImageStore to use SequenceChecker instead of ThreadChecker.kkimlabs@chromium.org2014-05-151-8/+8
| | | | | | | | | | | | We will be using ImageStore with BrowserThread::PostBlockingPoolSequencedTask which doesn't always guarantee same thread execution. BUG=368034 Review URL: https://codereview.chromium.org/288573003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270801 0039d316-1c4b-4281-b951-d872f2087c98
* Local salient image storage for enhanced bookmark experiment.kkimlabs@chromium.org2014-05-111-0/+73
BUG=368034 Review URL: https://codereview.chromium.org/259863007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269703 0039d316-1c4b-4281-b951-d872f2087c98