summaryrefslogtreecommitdiffstats
path: root/ui/gfx/canvas_skia_linux.cc
Commit message (Collapse)AuthorAgeFilesLines
* Allow CanvasSkia to bind to an existing SkCanvas.piman@chromium.org2011-10-051-15/+5
| | | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/8122013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104146 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Make 'ui' buildable without gtk.sadrul@chromium.org2011-09-211-7/+11
| | | | | | | | | BUG=97131 TEST=ui_unittests links and runs with use_aura=1 Review URL: http://codereview.chromium.org/7977025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102131 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Pango RenderText for Linux.xji@google.com2011-09-071-157/+2
| | | | | | | | | | Follow the I18N recommendations for BiDi text editing. BUG=90426 TEST=--use-pure-views text editing Review URL: http://codereview.chromium.org/7511029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99987 0039d316-1c4b-4281-b951-d872f2087c98
* aura-views: Make views_aura_desktop compile and run on linux.sadrul@chromium.org2011-09-071-1/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7739016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99901 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented nicer battery statusdavemoore@chromium.org2011-08-121-0/+2
| | | | | | | | | BUG=chromium-os:17469 TEST=Click battery icon, confirm it meets spec Review URL: http://codereview.chromium.org/7491083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96643 0039d316-1c4b-4281-b951-d872f2087c98
* Adding Wayland support for ui/gfxdnicoara@chromium.org2011-08-101-1/+4
| | | | | | | | | | | | | | | | | * Added GL surface and context support for Wayland. * Updated ui/gfx files to allow Wayland support * All Wayland code is behind the use_wayland gyp flag This CL depends on http://codereview.chromium.org/7457023 BUG= TEST=Compiled Chrome with use_wayland disabled to verify that the changes didn't break anything Review URL: http://codereview.chromium.org/7467007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96192 0039d316-1c4b-4281-b951-d872f2087c98
* linux: Fix text underline color/halo in Skia canvas.derat@chromium.org2011-07-221-27/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes us use the correct color for underlined text and draw a halo around the underlining when needed. Manual testing: - Checked that the underlining on the screen locker sign out link is white. - Hacked up status area text to be underlined and checked that things are mostly reasonable when drawing normal, embossed, or haloed text. (Actually, underlined-and-haloed text can get clipped in some cases, but I don't think that we use it anywhere and this is hard to fix without a lot of refactoring -- we don't specify whether text is going to be drawn with a halo or not when requesting its size.) - Turned on underlining on tab titles and checked that the underline also fades out to the right on long, elided titles. BUG=chromium-os:16490 TEST=manual; see above Review URL: http://codereview.chromium.org/7466025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93559 0039d316-1c4b-4281-b951-d872f2087c98
* Check string to decide if rtldavemoore@chromium.org2011-07-081-5/+16
| | | | | | | | | BUG=chromium-os:16019 TEST=Open http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=arabic#sclient=psy&hl=en&source=hp&q=%D8%A8%D8%AC%D8%AF%D9%8A%D8%A9+%D8%B9%D8%B1%D8%A8%D9%8A%D8%A9%E2%80%8E+%CA%BE&pbx=1&oq=%D8%A8%D8%AC%D8%AF%D9%8A%D8%A9+%D8%B9%D8%B1%D8%A8%D9%8A%D8%A9%E2%80%8E+%CA%BE&aq=f&aqi=&aql=undefined&gs_sm=e&gs_upl=4559l4559l0l1l1l0l0l0l0l76l76l1l1&bav=on.2,or.r_gc.r_pw.&fp=7c469d2a1253a36a&biw=1832&bih=1022 and check if the tab has a "..." in the middle Review URL: http://codereview.chromium.org/7324011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91881 0039d316-1c4b-4281-b951-d872f2087c98
* Apply HIDE_PREFIX to Skia strings on linux without doubling underscores.rhashimoto@chromium.org2011-06-211-3/+9
| | | | | | | | | | | | | | | | On linux, CanvasSkia::DrawStringInt() was removing ampersands (when HIDE_PREFIX flag was set) with gfx::RemoveWindowsStyleAccelerators(), which has the side effect of doubling underscores. This CL replaces the call with code that only strips ampersands (turning doubled ampersands into a single ampersand). BUG=chromium-os:15823 TEST=observe network menu with SSIDs containing underscores and ampersands Review URL: http://codereview.chromium.org/7170025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89845 0039d316-1c4b-4281-b951-d872f2087c98
* linux: fix tab title fadingevan@chromium.org2011-06-061-34/+15
| | | | | | | | | | By using a gradient as the source, we can reuse most of the non-fade code path. BUG=84782 R=davemoore git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88051 0039d316-1c4b-4281-b951-d872f2087c98
* Ellide by fadingdavemoore@chromium.org2011-06-011-17/+79
| | | | | | | | | BUG=chromium-os:15552 TEST=Examine tabs when text overflows Review URL: http://codereview.chromium.org/7105001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87431 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements a first pass in the effort to remove the dependency ↵twiz@chromium.org2011-05-261-27/+31
| | | | | | | | | | | | | | of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86823 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 86625 - This change implements a first pass in the effort to remove ↵vandebo@chromium.org2011-05-251-31/+27
| | | | | | | | | | | | | | | the dependency of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7019013 TBR=twiz@chromium.org Review URL: http://codereview.chromium.org/6987019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86629 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements a first pass in the effort to remove the dependency ↵twiz@chromium.org2011-05-251-27/+31
| | | | | | | | | | | | of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86625 0039d316-1c4b-4281-b951-d872f2087c98
* Use IntersectsClipRectInt() more, in hopes of saving some work. Original ↵pkasting@chromium.org2011-04-251-2/+2
| | | | | | | | | | idea from http://codereview.chromium.org/3134041/ . BUG=none TEST=none Review URL: http://codereview.chromium.org/6897011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82947 0039d316-1c4b-4281-b951-d872f2087c98
* Tweak text with halo to avoid truncated "J".falken@chromium.org2011-04-141-2/+2
| | | | | | | | | BUG=chromium-os:13729 TEST=manually Review URL: http://codereview.chromium.org/6837017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81528 0039d316-1c4b-4281-b951-d872f2087c98
* Start working on compositor tree painting.sadrul@chromium.org2011-03-151-0/+5
| | | | | | | | | | | | | As a first step, maintain a skia canvas in each transformed view. Each transformed view will acquire a texture-id for the canvas it owns. Whenever the canvas is updated, it will trigger a refresh in the compositor tree. BUG=none TEST=none Review URL: http://codereview.chromium.org/6594125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78149 0039d316-1c4b-4281-b951-d872f2087c98
* Change includes of gfx/* to ui/gfx/*sail@chromium.org2011-02-051-5/+5
| | | | | | | | | 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/+387
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