summaryrefslogtreecommitdiffstats
path: root/ui/gfx/skbitmap_operations.cc
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup: Update the path to gfx size headers.tfarina2015-01-031-1/+1
| | | | | | | | | | | | | The geometry headers were moved from /ui/gfx/ to ui/gfx/geometry, so we are updating the include paths to fix this. BUG=395370 TEST=compiles TBR=sky@chromium.org,danakj@chromium.org Review URL: https://codereview.chromium.org/832953002 Cr-Commit-Position: refs/heads/master@{#309873}
* Cleanup: Update the path to insets and point headers.tfarina2014-12-231-3/+3
| | | | | | | | | | | | | The geometry headers were moved from /ui/gfx/ to ui/gfx/geometry, so we are updating the include paths to fix this. BUG=395370 TEST=unit_tests, content_unittests, extensions_unittests ... TBR=sky@chromium.org,danakj@chromium.org Review URL: https://codereview.chromium.org/823703003 Cr-Commit-Position: refs/heads/master@{#309523}
* ui/gfx: remove redundant erase operations and remove unused functionhyunki.baik@samsung.com2014-07-171-34/+0
| | | | | | | | | | | | | | | It removes erase operations for SkBitmaps which touch whole inside pixels since all pixels should be drawn fully. Additionally, it removes a unused function, CreateSuperimposedBitmap(). BUG=NONE TEST=gfx_unittests --gtest_filter="SkBitmapOperationsTest*" Review URL: https://codereview.chromium.org/394183002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283814 0039d316-1c4b-4281-b951-d872f2087c98
* setConfig is deprecated, use setInfo or allocPixels insteadreed@google.com2014-07-011-19/+16
| | | | | | | | | | kPMColor_SkColorType -> kN32_SkColorType BUG= Review URL: https://codereview.chromium.org/361643002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280863 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Skia legacy API from Chrome.dominikg@chromium.org2014-04-151-2/+2
| | | | | | | | | | | | | | | Skia paint effects have recently been refactored to make them only allocatable on the heap. This has been achieved by making constructors non-public and providing factory methods instead. If necessary, we kept the old API behind a flag so as to not break Chrome or Blink. This CL updates Chrome to use the new API and disable the flag. BUG=skia:2187 Review URL: https://codereview.chromium.org/236833008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263827 0039d316-1c4b-4281-b951-d872f2087c98
* use SkColorType instead of (deprecated) SkBitmap::Configreed@google.com2014-03-121-47/+27
| | | | | | | | BUG=http://code.google.com/p/skia/issues/detail?id=2239 Review URL: https://codereview.chromium.org/197223004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256636 0039d316-1c4b-4281-b951-d872f2087c98
* replace setIsOpaque (deprecated) with explicit SkAlphaTypereed@google.com2013-10-241-4/+3
| | | | | | | | | BUG= R=enne@chromium.org, jam@chromium.org, jamesr@chromium.org, thakis@chromium.org Review URL: https://codereview.chromium.org/37233002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230799 0039d316-1c4b-4281-b951-d872f2087c98
* Correct rotate image to clockwise (currently counter clockwise).harrym@chromium.org2013-03-131-3/+3
| | | | | | | | | | TBR=sky@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/12570011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187792 0039d316-1c4b-4281-b951-d872f2087c98
* Rotated Imagesharrym@chromium.org2013-01-081-0/+1
| | | | | | | | | | | - Update launcher items, and background to use rotated images instead of duplicates. BUG=127583 Review URL: https://codereview.chromium.org/11644033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175545 0039d316-1c4b-4281-b951-d872f2087c98
* Rotated Imagesharrym@chromium.org2012-12-181-0/+37
| | | | | | | | | | | - Added functions to allow rotating images in 90 degree increments, for use in (and added us there-of) reducing duplicate assets related to the launcher and shelf with regards to multiple alignments. BUG=162997 TBR=rsesek@chromium.org Review URL: https://chromiumcodereview.appspot.com/11445037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173624 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Use skia::RefPtr<T> for implicit safe reference counting.danakj@chromium.org2012-12-051-6/+8
| | | | | | | | | | | R=sky BUG=163454 Depends on: https://codereview.chromium.org/11418217/ NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11299262 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171107 0039d316-1c4b-4281-b951-d872f2087c98
* Fix SkBitmapOperations::CreateMaskedBitmap. SkAlphaMul expects alpha value invarunjain@chromium.org2012-08-311-4/+7
| | | | | | | | | | | range 0..256 while SkColor has values in 0..255. BUG=none Review URL: https://chromiumcodereview.appspot.com/10919037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154524 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes spelling mistake CreateTransposedBtmap -> CreateTransposedBitmappkotwicz@chromium.org2012-06-181-2/+1
| | | | | | | | | | BUG=None TEST=Compiles TBR=sky Review URL: https://chromiumcodereview.appspot.com/10558021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142674 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up SkBitmapOperations.xiyuan@chromium.org2012-05-261-46/+21
| | | | | | | | | | | | | | | | - Remove CreateResizedBitmap since there is a better skia::ImageOperations::Resize; - Update CreateDropShadow to use ShadowValue for shadow definition; BUG=None. TEST=None. All should work as before this change. R=asvitkine@chromium.org Review URL: https://chromiumcodereview.appspot.com/10453035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139162 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Add drop shadow to app list icons.xiyuan@chromium.org2012-03-231-0/+94
| | | | | | | | | | BUG=117238 TEST=Verify fix for issue 117238 Review URL: http://codereview.chromium.org/9816019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128397 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Do not use the deprecated SkBitmap::getConfig() function.tfarina@chromium.org2012-03-191-2/+2
| | | | | | | | | | | Instead this patch uses SkBitmap::config() which is the preferred way. R=asvitkine@chromium.org TBR=brettw@chromium.org,thestig@chromium.org Review URL: https://chromiumcodereview.appspot.com/9720040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127468 0039d316-1c4b-4281-b951-d872f2087c98
* Draw new tab button with tab backgroundsail@chromium.org2012-01-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | Currently the new tab button is drawn with a semi-transparent image blended with the window background color. This CL changes the drawing code so that we now use the inactive tab background image as the button's background. I've removed the fill from the newtab button images so that they just contain the border and shadow. The main benefit of this approach is that the button now matches the look of inactive tabs. Note, I'm only implementing this on views for now. Once this is implemented on all platforms we can remove the old button images. Screenshots: http://imgur.com/a/iez8r Note, this is the non-binary portion of this CL: http://codereview.chromium.org/9252026/ BUG=100775 TEST= Review URL: https://chromiumcodereview.appspot.com/9290009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119099 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 119018 - Draw new tab button with tab backgroundsail@chromium.org2012-01-251-3/+2
| | | | | | | | | | | | | | | | | | | | | Currently the new tab button is drawn with a semi-transparent image blended with the window background color. This CL changes the drawing code so that we now use the inactive tab background image as the button's background. I've removed the fill from the newtab button images so that they just contain the border and shadow. The main benefit of this approach is that the button now matches the look of inactive tabs. Note, I'm only implementing this on views for now. Once this is implemented on all platforms we can remove the old button images. Screenshots: http://imgur.com/a/iez8r BUG=100775 TEST= Review URL: https://chromiumcodereview.appspot.com/9252026 TBR=sail@chromium.org Review URL: https://chromiumcodereview.appspot.com/9288015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119020 0039d316-1c4b-4281-b951-d872f2087c98
* Draw new tab button with tab backgroundsail@chromium.org2012-01-251-2/+3
| | | | | | | | | | | | | | | | | | Currently the new tab button is drawn with a semi-transparent image blended with the window background color. This CL changes the drawing code so that we now use the inactive tab background image as the button's background. I've removed the fill from the newtab button images so that they just contain the border and shadow. The main benefit of this approach is that the button now matches the look of inactive tabs. Note, I'm only implementing this on views for now. Once this is implemented on all platforms we can remove the old button images. Screenshots: http://imgur.com/a/iez8r BUG=100775 TEST= Review URL: https://chromiumcodereview.appspot.com/9252026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119018 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up CreateTransposedBtmap.thakis@chromium.org2011-11-081-4/+4
| | | | | | | | | | | | | The function started to show up in valgrind reports. It's unlikely this change will improve this. BUG=103391 TEST=none TBR=sky Review URL: http://codereview.chromium.org/8501013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109081 0039d316-1c4b-4281-b951-d872f2087c98
* optimize DownsampleByTwo, as it was a hot-spot in acid3reed@google.com2011-09-141-18/+22
| | | | | | | Remove (almost all) branches in inner-loop, and use SK_RESTRICT Review URL: http://codereview.chromium.org/7891011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101065 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Pass parameters by reference.jhawkins@chromium.org2011-06-221-15/+29
| | | | | | | | | | | | CID=8976,8977,8978,8979,8980,8981,8982,17240 BUG=none TEST=none R=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7227002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89962 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity PASS_BY_VALUE bug fixesdpapad@chromium.org2011-03-111-1/+1
| | | | | | | | | BUG=CIDs 8731,9102,15473,6809 TEST=NONE Review URL: http://codereview.chromium.org/6670025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77854 0039d316-1c4b-4281-b951-d872f2087c98
* Change includes of gfx/* to ui/gfx/*sail@chromium.org2011-02-051-1/+1
| | | | | | | | | BUG=71063 TEST=compiled Review URL: http://codereview.chromium.org/6312156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73890 0039d316-1c4b-4281-b951-d872f2087c98
* Move src/gfx/ to src/ui/gfxsail@chromium.org2011-02-021-0/+721
To reduce the size of this change I've left stub header files in src/gfx/. Once all includes have been updated I'll delete the stub files. BUG=71063 TEST=Still doing test builds. Review URL: http://codereview.chromium.org/6246027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73530 0039d316-1c4b-4281-b951-d872f2087c98