Commit Graph

235 Commits

Author SHA1 Message Date
Benoit Jacob
e6d46b061f Bug 962784 - Convert ImageTypes.h to typed enums - r=jrmuizel
find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(GRALLOC_PLANAR_YCBCR\|PLANAR_YCBCR\|SHARED_RGB\|CAIRO_SURFACE\|MAC_IOSURFACE\|REMOTE_IMAGE_BITMAP\|SHARED_TEXTURE\|REMOTE_IMAGE_DXGI_TEXTURE\|D3D9_RGB32_TEXTURE\)\($\|[^A-Za-z0-9_]\)/\1ImageFormat::\2\3/g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's|ImageFormat\:\:ImageFormat|ImageFormat|g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)STEREO_MODE_\(MONO\|LEFT_RIGHT\|RIGHT_LEFT\|BOTTOM_TOP\|TOP_BOTTOM\)\($\|[^A-Za-z0-9_]\)/\1StereoMode::\2\3/g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's|StereoMode\:\:StereoMode|StereoMode|g'
2014-01-30 17:58:49 -05:00
David Zbarsky
44eeb608e1 Bug 952977: Convert GetTransform to gfx::Matrix4x4 r=nical 2014-01-27 10:28:47 -05:00
David Zbarsky
1e61d187aa Bug 952977: Convert SetBaseTransform to gfx::Matrix4x4 r=nical 2014-01-27 10:28:33 -05:00
David Zbarsky
4e68a5f47e Bug 952977: Convert ComputeEffectiveTransforms to gfx::Matrix4x4 r=nical 2014-01-27 10:28:04 -05:00
Benoit Jacob
67a17b1047 Bug 959448 - Convert most of LayersTypes.h to typed enums - r=nrc
find content/media dom/ipc widget/ gfx/tests gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)LAYERS_\(NONE\|BASIC\|OPENGL\|D3D9\|D3D10\|D3D11\|CLIENT\|LAST\)\($\|[^A-Za-z0-9_]\)/\1LayersBackend::LAYERS_\2\3/g'

find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::BUFFER_\2\3/g'

find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(BUFFERED\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(DRAW\|DRAW_SNAPPED\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::CLIP_\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SURFACE_\(NONE\|OPAQUE\|SINGLE_CHANNEL_ALPHA\|COMPONENT_ALPHA\)\($\|[^A-Za-z0-9_]\)/\1SurfaceMode::SURFACE_\2\3/g'

find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(STRETCH\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::\2\3/g'

find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::SCALE_\2\3/g'
2014-01-23 13:26:41 -05:00
Benoit Jacob
3369ca8bb6 Bug 959380 - 2/5 - Make gfxImageFormat a typed enum - r=jrmuizel
find . -type f | grep -v \./obj | grep -v \.hg | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)gfxImageFormat\(ARGB32\|RGB24\|A8\|A1\|RGB16_565\|Unknown\)\($\|[^A-Za-z0-9_]\)/\1gfxImageFormat::\2\3/g'
2014-01-23 13:26:40 -05:00
Kartikaya Gupta
3f3757a2fb Bug 947337 - Update APZC tests to exercise the newly introduced transform. r=botond 2014-01-22 13:37:30 -05:00
Nick Lebedev
e43c2b2978 Bug 795567 - Part 7: Add gtests for the apzc to cover touch-action stuff. r=kats 2014-01-15 10:03:16 -05:00
Kartikaya Gupta
df5655f5e4 Bug 957790 - Initialize the APZC with zooming disabled until we know for sure if it is allowed. r=botond,jimm
On Metro we don't support the meta-viewport tag yet, so we need to re-enable
zooming there.
2014-01-13 12:35:00 -05:00
Benoit Jacob
3a7886f0e9 Bug 958375 - 7/9 - Make Font-related enums typed - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Benoit Jacob
55e7c24065 Bug 958375 - 4/9 - Make SurfaceFormat a typed enum - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Jonathan Kew
34a42a397f bug 955957 - pt 1.1 - update gfxSkipChars test for revised API (no gfxSkipCharsBuilder any longer). r=roc 2014-01-10 09:42:05 +00:00
Jonathan Kew
31b10dfce6 bug 955957 - pt 0 - add a simple unit test for gfxSkipChars functionality. r=roc 2014-01-10 09:42:04 +00:00
Carsten "Tomcat" Book
736fcee1d3 Backed out changeset 4ab32fa7732f (bug 955957) for Build Bustage on a CLOSED TREE 2014-01-10 09:30:43 +01:00
Carsten "Tomcat" Book
5bc4a66e8a Backed out changeset e285a5fbea6c (bug 955957) for Build Bustage on a CLOSED TREE 2014-01-10 09:30:07 +01:00
Jonathan Kew
65039413c8 bug 955957 - pt 1.1 - update gfxSkipChars test for revised API (no gfxSkipCharsBuilder any longer). r=roc 2014-01-10 07:48:11 +00:00
Jonathan Kew
5d40c6e32d bug 955957 - pt 0 - add a simple unit test for gfxSkipChars functionality. r=roc 2014-01-10 07:47:53 +00:00
Kartikaya Gupta
9ae1485883 Bug 915985 - Refactoring to introduce a ZoomConstraints class. r=botond 2014-01-06 13:26:44 -05:00
Ehsan Akhgari
ebd358dfd7 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ms2ger
9b8e245bf9 Bug 950143 - Remove the implicit conversion operator from nsIntSize to IntSize; r=roc 2013-12-31 10:06:12 +01:00
Martijn Wargers
99b6c90427 Bug 358732 - crashtests. 2013-12-23 16:51:57 +00:00
Tor Arvid Lund
0f9fdd2d39 Bug 950677 - Change gfxIntSize to gfx::IntSize in ImageContainer.h. r=nical 2013-12-20 11:46:29 -05:00
Milan Sreckovic
a707eef534 Bug 893572 - Add tests and backout part of bug 922942 for regressing the tests prior to them being landed. r=Bas, r=mattwoodrow 2013-12-17 16:51:16 -05:00
Ryan VanderMeulen
cb5b5eee51 Merge m-c to inbound on a CLOSED TREE. 2013-12-11 22:39:20 -05:00
Dale Harvey
7870fd7c06 Bug 942929 - Use longtapup event to handle firing clicks when longtap not handled. r=kats 2013-12-12 00:39:06 +00:00
Kartikaya Gupta
bb5ac9289e Bug 946661 - Add APZC tests for short and medium length taps. r=daleharvey 2013-12-11 17:19:33 +00:00
Nicolas Silva
97b38370cc Bug 897452 - Part 5 - Fix a TextureClient gtest crash - r=BenWa 2013-12-11 20:44:51 -05:00
Nicolas Silva
f8d884874b Bug 897452 - Part 3 - Clean up some unused code after PTexture change - r=mattwoodrow 2013-12-11 20:44:47 -05:00
Ryan VanderMeulen
f9166936cb Backed out 17 changesets (bug 897452) for OSX crashes on a CLOSED TREE.
Backed out changeset 11ad8608bc27 (bug 897452)
Backed out changeset 6bcc629e76f9 (bug 897452)
Backed out changeset b91c858a43f5 (bug 897452)
Backed out changeset 38ba49ee3e97 (bug 897452)
Backed out changeset ea184ef84762 (bug 897452)
Backed out changeset 686cc5122149 (bug 897452)
Backed out changeset 3685a8018e49 (bug 897452)
Backed out changeset be7ef6240068 (bug 897452)
Backed out changeset f95c20e70947 (bug 897452)
Backed out changeset 4a370d2a1c62 (bug 897452)
Backed out changeset 1222f6ab66d2 (bug 897452)
Backed out changeset 5e9d3c681ee9 (bug 897452)
Backed out changeset 3b9ddce12b7a (bug 897452)
Backed out changeset 7aec6387f3e9 (bug 897452)
Backed out changeset eb1fe464fdaf (bug 897452)
Backed out changeset 07deaa53b6fd (bug 897452)
Backed out changeset ddab7d071d69 (bug 897452)
2013-12-11 14:52:50 -05:00
Nicolas Silva
0174584ce6 Bug 897452 - Part 5 - Fix a TextureClient gtest crash - r=BenWa 2013-12-11 13:05:17 -05:00
Nicolas Silva
82e5ac3f48 Bug 897452 - Part 3 - Clean up some unused code after PTexture change - r=mattwoodrow 2013-12-11 13:05:13 -05:00
Birunthan Mohanathas
759ab69b0a Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
--HG--
rename : mfbt/Util.h => mfbt/ArrayUtils.h
2013-12-08 21:52:54 -05:00
Benoit Girard
c89f1d8081 Bug 904227 - Expect any number of calls to SendAsyncScrollDOMEvent. r=kats 2013-12-07 12:45:19 -05:00
Geoff Brown
4437beef7c Bug 936226 - (4) Adjust crashtest manifest for Android x86; r=dminor 2013-12-06 16:02:48 -07:00
Anthony Jones
582919bf02 Bug 839911 - Separate animation out from layer code; r=kats 2013-12-06 16:21:39 +13:00
Benoit Girard
fd07b9c161 Bug 904227 - Disable gfxWordCacheTest.cpp to see if it helps with gtest crashes. r=bjacob 2013-12-05 11:36:04 -05:00
Benoit Girard
b21fdbc0d6 Bug 904227 - Ignore gmock warnings from MockContentController. r=kats 2013-11-18 20:54:22 -05:00
Botond Ballo
cc2d1d28c8 Bug 944521 - Scroll-grabbing elements shouldn't grab tap gestures. r=Cwiiis 2013-11-29 16:40:21 -05:00
Ms2ger
a129edb4cb Merge mozilla-inbound to mozilla-central. 2013-11-29 09:54:12 +01:00
Ms2ger
0830a3df32 Bug 937258 - Part b: Remove gfx/tests/gtest/Makefile.in; r=gps
CXXFLAGS is only taken into account when set *after* the rules.mk inclusion,
so it is useless here.
2013-11-28 15:25:41 +01:00
Ms2ger
a88cf8354a Bug 937224 - Part a: Move LOCAL_INCLUDES to moz.build in gfx/; r=mshal 2013-11-28 15:10:38 +01:00
Ms2ger
d0fc57fd83 Bug 939271 - Part g: move mochitests to manifests in gfx/tests; r=roc 2013-11-28 15:03:17 +01:00
Ehsan Akhgari
6265857bfe Bug 943983 - Build gfx/tests/gtest in unified mode; r=BenWa 2013-11-28 14:10:33 -05:00
Andreas Pehrson
801b8841c8 Bug 907292 - Change gfxImageSurface to gfx::DataSourceSurface in TextureHost et al 2013-11-27 10:59:01 +01:00
Matt Brubeck
72385391d3 Bug 942689 - Include modifer info in tap gesture events [r=roc,jimm,botond] 2013-11-25 20:30:26 -08:00
Mike Hommey
62cde4eed8 Bug 940407 - Kill GTEST_SOURCES. r=gps 2013-11-26 11:48:58 +09:00
Birunthan Mohanathas
0816e609ee Bug 784739 - Switch from NULL to nullptr in miscellaneous directories; r=ehsan
--HG--
extra : rebase_source : 8ace754e117a12e2599f5a90030f13a3a7064fed
2013-11-25 14:02:47 -05:00
Phil Ringnalda
68d38376ad Bug 939638 - 611498-1.html needs some fuzz on Windows 2013-11-20 20:52:48 -08:00
Botond Ballo
b75d9dd1de Bug 900092 - Remove FrameMetrics::ROOT_SCROLL_ID. r=kats,tn 2013-11-08 19:07:00 -05:00
Jeff Muizelaar
8a2b69cc87 Bug 845874. Switch to Y-X banded regions. r=roc
Previously our region code was just a simple y,x sorted list of
non-intersecting rectangles. This can cause us to have simple regions
represented in a complex unoptimizable way.

Switching to pixman regions gives us a canonical region implementation.

There are some cases when this can cause performance regressions.

For example, with the old region code we end up with this region:
http://people.mozilla.org/~jmuizelaar/region-pre.html
which is represented like this:
http://people.mozilla.org/~jmuizelaar/region-post.html
with the new code.

We call SimplifyOutward(4) on this. With old regions we can't simplify it so we
end up taking the bounds and get 1 rect. With the new regions we have only 3
rects to start and so we do nothing. The difference between 3 rects and 1 rect
cause D2D to do a PushLayer() instead of a ClipRect() and that seems to be the
causes for the regression.

--HG--
extra : rebase_source : 65e0d29d67b51a3780448eaecfde33dbcb6b99b1
2013-11-18 13:01:54 -05:00