Commit Graph

2650 Commits

Author SHA1 Message Date
Gregory Szorc
295f553e4e Bug 896797 - Part 2: Don't list autogenerated files in EXPORTS; r=glandium 2013-09-03 20:28:05 -07:00
Nicolas Silva
363a50c0c2 Bug 910921 - Wrong default texture flags when using ImageClient. r=sotaro 2013-09-02 13:36:42 +02:00
Nicholas Cameron
cdc79d8299 Bug 904073. Don't crash if we can't get a texture for a render target. r=Bas 2013-09-02 10:19:19 +12:00
Nicholas Cameron
b6f3b6ba96 Bug 786412. Conslidate container layer methods. r=mattwoodrow 2013-09-02 10:19:18 +12:00
Bill McCloskey
14949db0b2 Bug 910488 - XSync can hang indefinitely with OMTC enabled (r=bjacob) 2013-08-30 14:30:10 -07:00
Ed Morley
49ca5b33d6 Merge latest green inbound changeset and mozilla-central 2013-08-30 17:23:11 +01:00
Sotaro Ikeda
2b856354d2 Bug 910928 - Fix build and class function override for new gralloc textures. r=nical 2013-08-30 10:24:05 -04:00
Ryan VanderMeulen
1d7bdba295 Merge inbound to m-c. 2013-08-29 00:00:10 -04:00
Nicolas Silva
ead42beefc Bug 907745 - Add comments to prepare for bug 908196. r=bjacob 2013-08-28 15:21:13 +02:00
Nicolas Silva
588e1f0ebd Bug 907745 - cleanup ImageClient::CreateImage. r=mattwoodrow 2013-08-28 15:21:05 +02:00
Nicolas Silva
17e512124b Bug 907745 - Gralloc implementaion of the new texture client/host. r=pchang, bjacob 2013-08-09 17:23:46 +02:00
Brian O'Keefe
0ee041b9fd Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Nicholas Nethercote
56844b8076 Bug 831193 (part 10) - Don't use NS_MEMORY_REPORTER_IMPLEMENT in parts of gfx/. r=bjacob.
--HG--
extra : rebase_source : 433b12748c8562b384a02fbee6d98e3bc991802d
2013-01-17 16:45:11 -08:00
Nicholas Cameron
2bfb2c736d Bug 910054. Remove a printf from CompositorD3D11. r=mattwoodrow 2013-08-28 16:44:03 +12:00
Nicholas Cameron
977411e3c7 Bug 909185. Use an RAII helper class for Add/RemoveMaskEffect. r=nical 2013-08-28 16:44:03 +12:00
Justin Lebar
4aeeb65d91 Bug 909514 - Include <new> before mozilla::Maybe (and move Maybe into mfbt/Maybe.h). r=waldo
--HG--
rename : mfbt/Util.h => mfbt/Maybe.h
2013-08-27 15:10:28 -07:00
Matt Woodrow
d1463f4b25 Bug 907792 - Use SharedTextureClientOG for SharedTextureImage. r=nical 2013-08-28 08:16:54 +12:00
Matt Woodrow
00f7d4acb2 Bug 907792 - Refactor texture flags so that we set the deallocate flags based on the texture type. r=nical 2013-08-28 08:16:03 +12:00
Ryan VanderMeulen
76ad621e29 Backed out changeset a255d2d2b67f (bug 907792) for OSX mochitest asserts on a CLOSED TREE. 2013-08-27 13:07:33 -04:00
Matt Woodrow
711b716949 Bug 907792 - Use SharedTextureClientOGL when needed. r=nical 2013-08-27 11:50:24 +12:00
Nicolas Silva
7897f25f43 Bug 909765 - Make TextureClient and CompositableClient ref counting thread-safe. r=sotaro 2013-08-27 17:03:58 +02:00
Andreas Gal
2006d0a939 Bug 909113 - Make FPS counter code a bit more readable. r=jgilbert 2013-08-27 09:01:45 -04:00
Nicolas Silva
a0feb7b33c Bug 858914 - Basic backend for the new textures. r=mattwoodrow 2013-08-27 10:52:14 +02:00
Ryan VanderMeulen
52ef962a16 Merge inbound to m-c. 2013-08-26 20:19:26 -04:00
Kartikaya Gupta
55c123d4d6 Bug 885023 - Convert mFrameMetrics.mZoom to a CSSToScreenScale. r=BenWa,k17e
The mFrameMetrics.mZoom was previously a "resolution-independent" zoom,
which meant it had to always be multiplied by the CalculateIntrinsicScale()
value to be useful. This patch converts it to a "resolution-dependent" zoom,
and includes the intrinsic scale multiplier already. This means it needs
to be updated if either the viewport or composition bounds (which determine
the intrinsic scale) change, but there are only a few places where this
happens and it makes the rest of the code cleaner.
2013-08-26 09:50:30 -04:00
Matt Woodrow
335a18b7c9 Bug 908006 - use 4 bytes aligned stride in ImageDataSerializer. r=nical 2013-08-26 16:13:22 +12:00
Gabriele Svelto
619cc7ccf1 Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan 2013-08-24 08:12:51 +02:00
Ms2ger
b5df99e7e3 Revert this CLOSED TREE to changeset 4d3e221584a0. 2013-08-24 13:31:48 +02:00
Gabriele Svelto
b6e8140bfc Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan 2013-08-24 08:12:51 +02:00
Ryan VanderMeulen
6c745be1f4 Merge m-c to b2g-inbound. 2013-08-23 10:52:20 -04:00
Ryan VanderMeulen
9d72cb6e1e Merge b2g-inbound to m-c. 2013-08-23 10:50:14 -04:00
Matt Woodrow
f1907aafe6 Bug 907926 - Follow-up to make sure we only enable Azure on the platforms we meant to. 2013-08-23 20:12:30 +12:00
Andreas Gal
e48e7f4315 Bug 905589 - Use VBO instead of client side rendering. r=bas 2013-08-22 15:04:55 -04:00
Matt Woodrow
1b896b5ba3 Bug 907926 - Make ContentClientBasic support Azure content. r=nrc 2013-08-23 18:13:55 +12:00
Matt Woodrow
11914fb596 Bug 907926 - Supprt having different content/canvas backends in gfxPlatform. r=nrc 2013-08-23 18:13:55 +12:00
Matt Woodrow
65fcce9289 Bug 907011 - Add support for Azure in ThebesLayerD3D9. r=Bas 2013-08-23 16:51:27 +12:00
Benoit Girard
d6b9b9b872 Bug 907286 - Implement Frame Counter for non OMTC basic. r=jmuizel,tnikkel
--HG--
extra : rebase_source : a2cf8295ead1af3f0a66491fd9455d37e7b3985d
2013-08-22 12:54:05 -04:00
Jim Mathies
78b96f65d5 Bug 904214 - Add missing assert per review comments. r=nrc 2013-08-22 20:54:49 -05:00
Jim Mathies
a81fcc97ef Bug 904214 - Don't initialize component alpha blend state if its not in use. r=nrc 2013-08-22 19:28:03 -05:00
Jim Mathies
e6ba4d9285 Bug 907243 - Move SetDPI to APZCTreeManager. r=kats 2013-08-22 19:28:02 -05:00
Kartikaya Gupta
ce48a63b67 Bug 907977 - Don't null out the mApzcForInputBlock prematurely. r=roc 2013-08-23 00:03:43 -04:00
Ryan VanderMeulen
1ef4f3befe Merge inbound to m-c. 2013-08-22 15:42:18 -04:00
Ryan VanderMeulen
cdf56a6889 Backed out changeset 230120afcbbf (bug 905589) for Android and B2G bustage on a CLOSED TREE. 2013-08-22 14:17:49 -04:00
Andreas Gal
e712f7caa3 Bug 905589 - Use VBO instead of client side rendering. r=bas 2013-08-22 12:54:21 -04:00
Nicholas Cameron
01b99f2af9 Bug 902929. Be explicit about re-attaching async video compositable hosts. r=nical 2013-08-21 13:28:53 +12:00
Nicholas Cameron
485fad14c4 Bug 902929. Assert that we don't have a compositable child for ImageBridgeClients. r=nical 2013-08-21 13:27:05 +12:00
Ms2ger
4af9d89266 Merge m-c to inbound 2013-08-22 10:38:48 +02:00
Ms2ger
19f3e043e3 Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps 2013-08-22 08:56:01 +02:00
Ms2ger
8085d723ed Bug 883284 - Part d: Move LIBXUL_LIBRARY into moz.build (f-j); r=bsmedberg 2013-08-22 08:56:00 +02:00
Ryan VanderMeulen
908be1856b Merge inbound to m-c. 2013-08-21 17:14:32 -04:00
Kartikaya Gupta
3151f4b7bd Bug 898443 - Update loops to run forward and use a size_t variable. r=BenWa 2013-08-21 12:03:03 -04:00
Kartikaya Gupta
07a7fa46a1 Bug 898443 - Always use the innermost APZC containing all touch points for multi-touch inputs. r=BenWa 2013-08-21 12:03:03 -04:00
Kartikaya Gupta
f5135c8214 Bug 898443 - Completely extract the transformation calculation from GetTargetAPZC. r=BenWa 2013-08-21 12:03:03 -04:00
Kartikaya Gupta
faf1a873b2 Bug 898443 - Ensure that all multitouch events following a START go to the same APZC instance. r=BenWa 2013-08-21 12:03:02 -04:00
Kartikaya Gupta
fa7cec9eff Bug 898443 - Extract input transform calculations from GetAPZCAtPoint. No functional changes. r=BenWa 2013-08-21 12:03:02 -04:00
Kartikaya Gupta
438bcc477f Bug 898443 - Add a parent pointer to the AsyncPanZoomController class. r=BenWa 2013-08-21 12:03:02 -04:00
Ed Morley
6e9119b21e Merge mozilla-central and b2g-inbound 2013-08-21 13:10:57 +01:00
Kartikaya Gupta
06c5db076e Bug 907372 - Fix incorrect comment in FrameMetrics.h. r=k17e 2013-08-21 07:46:05 -04:00
Wes Kocher
a62887bc50 Backed out changeset 6356b67f6c87 (bug 902929) 2013-08-20 20:50:26 -07:00
Wes Kocher
2a9e21a70f Backed out changeset 315c9f0af9bb (bug 902929) 2013-08-20 20:50:20 -07:00
Nicholas Cameron
8acfeaece0 Bug 902929. Be explicit about re-attaching async video compositable hosts. r=nical 2013-08-21 13:28:53 +12:00
Nicholas Cameron
1caed203b3 Bug 902929. Assert that we don't have a compositable child for ImageBridgeClients. r=nical 2013-08-21 13:27:05 +12:00
Nicholas Cameron
4f4d777bc8 Bug 907466. Support large canvases with d3d11. r=mattwoodrow 2013-08-21 13:13:57 +12:00
Jan Beich
66c4b90185 Bug 907837 - Don't include SPS headers directly. r=nrc 2013-08-22 19:11:51 +12:00
Jan Beich
de6b591a26 Bug 907837 - Fix IWYU false positive to unbreak non-SPS build. r=nrc 2013-08-22 19:11:47 +12:00
Botond Ballo
fe4f404898 Bug 898580 - Remove updating of scroll offset in AsyncPanZoomController::NotifyLayersUpdated. It is now no longer needed by any platform. r=bbondy, r=kats 2013-08-15 11:30:27 -04:00
Nicholas Cameron
b5c77aec19 Bug 903816. Include-what-you-use for gfx/layers. r=roc 2013-08-12 11:17:23 +12:00
Nicholas Cameron
9b7d0b4cf3 Bug 903816. Fixups in non-layers files. r=roc 2013-08-12 11:15:10 +12:00
Matt Woodrow
9c51651626 Bug 906147 - Make sure we lock component alpha textures in the correct order to prevent deadlocks. r=nrc 2013-08-21 11:49:31 +12:00
Kartikaya Gupta
ee4d416a21 Bug 906427 - When a touch event has multiple touch points, send it to the root APZC for the layer subtree. r=BenWa 2013-08-22 10:40:44 -04:00
Nicolas Silva
81ab7b7667 Bug 907745 - Prepare for texture locking support. r=mattwodrow 2013-08-26 14:50:16 +02:00
Matt Woodrow
b58cfaa3e8 Bug 900133 - Make sure we always set TEXTURE_DEALLOCATE_HOST when required. r=nical 2013-08-20 11:39:56 +12:00
Matt Woodrow
d599f32005 Bug 900133 - Don't mark textures as being sent to the compositor until after we've drawn to them. r=nical 2013-08-20 11:39:55 +12:00
Matt Woodrow
4d9a2a8167 Bug 904620 - Always send a transaction when we get a WebGL update to ensure that we get a composite. r=nrc 2013-08-20 11:39:55 +12:00
Ryan VanderMeulen
fc58488cf2 Merge m-c to inbound on a CLOSED TREE. 2013-08-19 17:05:12 -04:00
Ryan VanderMeulen
9278f21e00 Merge m-c to b2g-inbound. 2013-08-19 11:53:02 -04:00
Kartikaya Gupta
19cd81339f Bug 906109 - Make the GestureEventListener realize when a touch point disappears. r=k17e
When receiving a touch event arrives that is missing previously-known
touch points, remove them from the list. This makes the GestureEventListener
more robust so that it doesn't keeping doing pinches when there should
be pans.
2013-08-19 09:38:43 -04:00
Nicholas Cameron
35c388ed22 Bug 904343. Clear surface descriptors. r=nical. 2013-08-19 11:08:43 +12:00
Daniel Holbert
2f7a0b6179 Bug 903065: Update switch statement in LayersLogging.cpp to include new FILTER_GOOD enum value. r=jrmuizel 2013-08-18 12:40:58 -07:00
Nicholas Cameron
41056e2efb Bug 905790. Let canvases use fallback texure clients like images clients can. r=mattwoodrow 2013-08-18 18:46:21 +12:00
Nicholas Cameron
d45b9fe216 Bug 903893. Backend fallback for OMTC. r=mattwoodrow 2013-08-18 18:46:16 +12:00
Chris Lord
ce468943a9 Bug 747811 - Add gfxReusableImageSurfaceWrapper. r=BenWa
Add an implementation of gfxReusableSurfaceWrapper based on gfxImageSurface
and use it on Android to avoid the overhead of shared memory.
2013-08-19 14:59:27 +01:00
Chris Lord
53810eb0be Bug 747811 - Separate gfxReusableSurfaceWrapper into a base class and implementation. r=BenWa
Split gfxReusableSurfaceWrapper into gfxReusableSurfaceWrapper and
gfxReusableSharedImageSurfaceWrapper, to allow for non gfxSharedImage-based
implementations.

--HG--
rename : gfx/thebes/gfxReusableSurfaceWrapper.cpp => gfx/thebes/gfxReusableSharedImageSurfaceWrapper.cpp
2013-08-19 14:59:25 +01:00
Benoit Girard ext:(%2C%20Chris%20Lord%20%3Cchrislord.net%40gmail.com%3E)
1b95e41dd6 Bug 747811 - Make the tiles backend safe across processes. r=nrc,BenWa
The tiles backend passes raw pointers to transfer tiled buffers between the
main thread and the compositor. This patch changes that to use shared
memory and tile descriptors instead, as well as changing the memory management
slightly to facilitate that.
2013-08-19 14:59:22 +01:00
Jeff Muizelaar
be2cbcb453 Bug 898525. Separate out Gfx helpers into GfxMessageUtils.h. r=bent
This helps us include less.

--HG--
extra : rebase_source : bb9ca934a9dade9ef21cecfee7ae8e860f9c60c1
2013-07-26 15:28:31 -04:00
Ryan VanderMeulen
8c1d293b1c Merge m-c to inbound. 2013-08-16 21:58:51 -04:00
Wes Kocher
26854193d4 merge b2g-inbound to central 2013-08-16 15:30:59 -07:00
Arnaud Sourioux
de3b6b7cdf Bug 903112 - Replace this with MOZ_THIS_IN_INITIALIZER_LIST() in gfx/. r=jfkthame 2013-08-16 09:18:36 -04:00
Nicholas Cameron
71f4e88183 Bug 904012. Remove a bogus assertion from ThebesLayerBuffer. r=mattwoodrow 2013-08-16 10:42:02 +12:00
Trevor Saunders
86d20580f1 bug 905410 - remove most remaining usage of nspr atomics outside of xpcom/ r=ehsan 2013-08-12 05:51:49 -04:00
Jonathan Kew
3deb66f151 Bug 905780 - actually call the function, don't just interpret its address as a boolean. r=nrc 2013-08-15 22:18:54 +01:00
Botond Ballo
c7e59f7954 Bug 895905 - B2G mechanism for content to inform APZC about scroll events. Handles multi-APZC. r=kats 2013-08-08 15:56:08 -04:00
Kartikaya Gupta
b59db3868c Bug 890280 - Apply proper transformations when sending inputs to the APZC and back to the DOM. r=BenWa 2013-08-14 10:15:54 -04:00
Nicolas Silva
21b12f43ab Bug 858914 - Various TextureClient/Host cleanups. r=nrc. 2013-08-08 14:53:12 +02:00
Adrian May
a697186d75 Bug 877115 - Moz2Dify GLContext and GLTextureImage. r=nical 2013-08-13 15:44:53 +02:00
Kartikaya Gupta
30c87b92e1 Bug 903460 - Back out cset 9813b854b713 because it regresses panning behaviour on Android. r=me 2013-08-12 08:32:11 -04:00
Phil Ringnalda
26893fc5ad Back out d393cfeb5dbf:9f82224bb8a3 (bug 903816) for Android reftest failures
CLOSED TREE
2013-08-11 19:21:17 -07:00
Matt Woodrow
4ea156e47f Bug 902339 - Null check mImageHost in ImageLayerComposite before trying to access it. r=nrc 2013-08-12 12:11:09 +12:00
Nicholas Cameron
788218a793 Bug 903816. Include-what-you-use for gfx/layers. r=roc 2013-08-12 11:17:23 +12:00
Nicholas Cameron
f639add88a Bug 903816. Fixups in non-layers files. r=roc 2013-08-12 11:15:10 +12:00
Kartikaya Gupta
378f96db6d Bug 903460 - Apply the async transform after the CSS transform for a given layer. r=BenWa
Since the CSS transform includes a 1/resolution scaling factor, the translation
amount in the async transform is now in LayoutDevicePixels instead of LayerPixels.
The shadow tree transform is now effectively:
(1/resolution * rest of CSS transform * async translation * async resolution)
Whereas before it was
(async translation * async resolution * 1/resolution * rest of CSS transform)
2013-08-10 11:19:47 -04:00
Jeff Muizelaar
ecae027e49 Bug 897532. Add support for better filtering in Azure. r=bas
This fixes the quality regression on OS X.

--HG--
extra : rebase_source : f045caa95800d05098ea49e05fe90fc933f8849f
2013-07-31 14:46:25 -04:00
Ryan VanderMeulen
7b01d7a416 Backed out changeset ce3a1df4d559 (bug 875247) for mochitest-mc crashes. 2013-08-09 17:56:15 -04:00
Chris Pearce
1f88a47969 Bug 875247 - Use DXVA2 via D3D11 on Windows 8 to avoid readback of video frames when we turn on OMTC on Windows 8. r=Bas,padenot,gps 2013-08-10 08:17:44 +12:00
David Zbarsky
826b4c099f Bug 903819 - Don't include Layers.h everywhere, part 4 r=nrc 2013-08-20 15:45:30 -04:00
Po-Chun Chang
a3033884fb Bug 897258 - Avoid wasted work in GestureEventListener::HandleInputEvent(). r=kentuckyfriedtakahe 2013-08-09 15:01:56 -04:00
Daniel Holbert
48fdb50213 Bug 903071: Drop unused variable 'gfxSize' from ImageDataSerializer::ComputeMinBufferSize. r=nical 2013-08-09 15:07:32 +02:00
Nicholas Cameron
8ca7f5e641 Bug 899435. Part 4 - smooth resizing with OMTC. r=roc 2013-08-09 11:32:26 +12:00
Nicholas Cameron
8e9e2f0fc4 Bug 902330. Initialise shmem texture clients properly. r=mattwoodrow 2013-08-09 11:32:25 +12:00
Nicholas Cameron
180f8169bb Bug 902330. Fix the SupportsAzureContent mess. r=mattwoodrow 2013-08-09 11:32:19 +12:00
Nicholas Cameron
484d8249f0 Bug 901722. Part 2 - changes to generated files. r=bas 2013-08-09 11:30:19 +12:00
Nicholas Cameron
a61919231a Bug 901722. Implement component alpha for d3d11 compositor. r=Bas 2013-08-09 11:30:19 +12:00
Nicholas Cameron
e90fed4a14 Bug 901722. Tweek to d3d9 compositor blend modes. r=bas 2013-08-09 11:30:19 +12:00
Nicholas Cameron
82aab79456 Bug 902329. Implement component alpha thebes layers with Azure. r=mattwoodrow 2013-08-09 11:30:19 +12:00
Nicholas Cameron
1bc1f9224a Bug 901722. Fix up component alpha/sub-pixel AA enablement. r=mattwoodrow 2013-08-09 11:30:19 +12:00
Nicholas Cameron
af23265853 Bug 901404. Support Azure with single buffered thebes layers. r=mattwoodrow 2013-08-09 11:30:18 +12:00
Nicholas Cameron
05b78d0697 Bug 902528. Check we still have a render target in BeginFrame. r=Bas 2013-08-09 11:30:18 +12:00
Ed Morley
a428bbb020 Merge mozilla-central and inbound 2013-08-07 16:19:03 -07:00
Edwin Flores
6318f92344 Bug 892934 - Pass RGB image format into CreateTextureImage r=mattwoodrow 2013-08-08 10:38:21 +12:00
Kartikaya Gupta
24718d2f2e Bug 900742 - Fix APZC hit testing problem introduced by bug 866232. r=BenWa 2013-08-06 16:20:14 -04:00
Ryan VanderMeulen
a1195a8c19 Backed out changeset aada9eac6fd3 (bug 900742) for checktest failures. 2013-08-06 12:50:36 -04:00
Kartikaya Gupta
5cd5511bea Bug 900742 - Fix APZC hit testing problem introduced by bug 866232. r=BenWa 2013-08-06 10:39:19 -04:00
Milan Sreckovic
536093c3dc Bug 900729: Make TextureFlags constant names (UseNearestFilter, NeedsYFlip, AllowRepeat, NewTile, ComponentAlpha) all caps in CompositorTypes.h and prefix them with TEXTURE_ for consistency and uniqueness. r=nsilva. 2013-08-06 13:36:35 -04:00
Kartikaya Gupta
d2aa7640b9 Bug 901339 - Fix the focal point when zooming in and out. r=BenWa 2013-08-07 12:34:16 -04:00
Nicolas Silva
687afe45cd Bug 900393 - Implement missing method in DeprecatedSharedRGBImage. r=eflores 2013-08-06 18:47:44 +02:00
Nicolas Silva
ee0736e8c9 Bug 900793 - Rename TextureSourceOGL::ReleaseTexture into UnbindTexture. r=nrc 2013-08-05 12:15:21 +02:00
Nicolas Silva
8e7aa5738e Bug 899667 - Make layer borders more readable. r=BenWa 2013-08-03 00:50:17 +02:00
Kartikaya Gupta
e490c33d50 Bug 899810 - Ensure that mFrameMetrics is updated properly in NotifyLayersUpdated. r=bbondy
In some cases the mScrollOffset was getting updated on the mFrameMetrics
before the IsDefault() check, so the IsDefault() check would return false
when it should have returned true. Calling IsDefault() on the
mFrameMetrics before writing stuff into it fixes this.
2013-08-04 12:26:54 -04:00
Nicholas Cameron
dd58f82344 Bug 874721, bug 899435. D3D9 compositor and windows OMTC window resizing. r=Bas, mattwoodrow 2013-08-04 19:46:17 +12:00
Matt Woodrow
ea28516906 Bug 900133 - Add TEXTURE_IMMEDIATE_UPLOAD to avoid racing when single buffered. r=nical 2013-08-03 13:30:28 -04:00
Matt Woodrow
a7fdd93853 Bug 900133 - Make sure we always call OnTransaction when we might recreate textures. r=nical 2013-08-03 13:29:48 -04:00
Matt Woodrow
6436bb8202 Bug 893302 - Implement CanvasClient2D on top of NewTextures. r=nical 2013-08-03 13:29:37 -04:00
Matt Woodrow
1afc70d202 Bug 893302 - Rename the CanvasClient class to include Deprecated so we can implement one on top of NewTextureHost. r=nical 2013-08-03 13:29:28 -04:00
Matt Woodrow
e49181d0be Bug 900133 - Recreate the TextureClient for an ImageClient if the image size changes. r=nical 2013-08-03 13:29:18 -04:00
Wes Kocher
f304825fbc Backed out 6 changesets (bug 900133, bug 881634, bug 893302) for build bustage
Backed out changeset 49632bc14e27 (bug 900133)
Backed out changeset 036780fccc89 (bug 900133)
Backed out changeset b8db58f5e209 (bug 893302)
Backed out changeset 67c3e4204e44 (bug 893302)
Backed out changeset a857a4246dd9 (bug 900133)
Backed out changeset e0e2e27af6c1 (bug 881634)
2013-08-02 20:35:39 -07:00
Matt Woodrow
e90b2b5bae Bug 900133 - Add TEXTURE_IMMEDIATE_UPLOAD to avoid racing when single buffered. r=nical 2013-08-02 23:00:02 -04:00
Matt Woodrow
1cb456c128 Bug 900133 - Make sure we always call OnTransaction when we might recreate textures. r=nical 2013-08-02 22:59:56 -04:00
Matt Woodrow
1004e045e5 Bug 893302 - Implement CanvasClient2D on top of NewTextures. r=nical 2013-08-02 22:59:49 -04:00
Matt Woodrow
28248b7852 Bug 893302 - Rename the CanvasClient class to include Deprecated so we can implement one on top of NewTextureHost. r=nical 2013-08-02 22:59:40 -04:00
Matt Woodrow
d5af0a03b9 Bug 900133 - Recreate the TextureClient for an ImageClient if the image size changes. r=nical 2013-08-02 22:59:26 -04:00
Matt Woodrow
9a90b3621f Bug 900133 - Only draw the picture rect of a tiled image. r=nical
--HG--
extra : rebase_source : 836d60efd38040971f2bff9c2b24e66fb084d65d
2013-08-01 21:12:16 -04:00
Matt Woodrow
aa675bfd8e Bug 900133 - Fix leak reporting for MemoryTextureHost. r=nical
--HG--
extra : rebase_source : 445d3cc5ed8d82bf26e357dc878d0d1b846b113a
2013-08-01 21:12:16 -04:00
Matt Woodrow
77d440cc12 Bug 900133 - Support MaskLayers that are backed by a NewTextureHost. r=nical
--HG--
extra : rebase_source : 8494dd32a837fc1ca44ed7c838e4def84f3292e1
2013-08-01 21:12:16 -04:00
Matt Woodrow
06a3f097c5 Bug 900133 - Remove unnecessary printf when adding textures. r=nical
--HG--
extra : rebase_source : 78b76ede5e23d445833a65fd18c7eb336709c1b4
2013-08-01 21:12:15 -04:00
Matt Woodrow
eb3dede292 Bug 898129 - Only set the texture transform for shaders where it will be used. r=nrc
--HG--
extra : rebase_source : 6f636720a53dac7d0842caf41dffb457cecd379c
2013-08-01 21:12:15 -04:00
Matt Woodrow
c2432550aa Bug 900188 - Correctly treat WebGL as being single buffered when we share it across ipdl. r=nrc
--HG--
extra : rebase_source : 92be3f39d6e07d1e5f5de0a484a0c94eca93a97c
2013-08-01 21:12:15 -04:00
Ms2ger
21409e5d2c Merge m-c to inbound. 2013-08-02 11:07:57 +02:00
Ms2ger
f28bde905f Bug 900096 - Cleanup Touch some; r=dzbarsky 2013-08-02 09:06:35 +02:00
Ms2ger
625b832e4f Bug 896251 - Make nsEvent::{refPoint, lastRefPoint} LayoutDeviceIntPoints; r=smaug+kats 2013-08-02 09:05:16 +02:00
Ms2ger
65b9d384bf Bug 897540 - Reduce includes in nsDeviceContext.h; r=roc 2013-08-02 09:04:22 +02:00
Mike Hommey
8cdcebc8bc Backout changesets 8b67eb363e5c (bug 893824), 2f603fe51b71, d623d68577ec, 12adb590b761, e08e42b8435b (bug 900133) and c8230843d507 (bug 898129) for crashtest bustage on a CLOSED TREE 2013-08-02 15:35:25 +09:00
Ryan VanderMeulen
8fcc29f850 Backed out changeset 9a5f4bbd4fcb (bug 900188) to see if it fixes the OSX crashtest and reftest asserts.
CLOSED TREE
2013-08-02 00:45:09 -04:00
Matt Woodrow
0c8c5ad671 Bug 900133 - Only draw the picture rect of a tiled image. r=nical 2013-08-01 21:12:16 -04:00
Matt Woodrow
a4ce2d33f0 Bug 900133 - Fix leak reporting for MemoryTextureHost. r=nical 2013-08-01 21:12:16 -04:00
Matt Woodrow
3be48e4437 Bug 900133 - Support MaskLayers that are backed by a NewTextureHost. r=nical 2013-08-01 21:12:16 -04:00
Matt Woodrow
9274800265 Bug 900133 - Remove unnecessary printf when adding textures. r=nical 2013-08-01 21:12:15 -04:00
Matt Woodrow
cfb50c37ed Bug 898129 - Only set the texture transform for shaders where it will be used. r=nrc 2013-08-01 21:12:15 -04:00
Matt Woodrow
561f72ffc5 Bug 900188 - Correctly treat WebGL as being single buffered when we share it across ipdl. r=nrc 2013-08-01 21:12:15 -04:00
Nicolas Silva
f46dc128f3 Bug 899583 - Disallow BigImage with YCbCr compositing. r=BenWa 2013-08-02 01:02:06 +02:00
Nicolas Silva
5876362bbe Bug 900012 - Make async-video double buffered. r=mattwoodrow 2013-08-02 00:14:55 +02:00
Nicholas Cameron
f67c88d7e9 back out bug 874721, bug 899435 2013-08-01 18:30:46 +12:00
Nicholas Cameron
db1fba861e Bug 899435. Tidy up pt 3 - d3d11. r=Bas 2013-08-01 17:00:47 +12:00
Nicholas Cameron
048cbdc435 Bug 899435. Tidy up pt 2 - d3d9. r=Bas 2013-08-01 17:00:41 +12:00
Nicholas Cameron
180e532323 Bug 899435. Tidy up pt 1. r=mattwoodrow 2013-08-01 17:00:16 +12:00
Nicholas Cameron
9f0187319e Bug 874721; implement CreateRenderTargetFromSource and clear surfaces before use. r=Bas 2013-08-01 16:53:07 +12:00
Nicholas Cameron
9e1943584e Bug 874721. Ensure a compositable is valid before use. r=Bas 2013-08-01 16:52:57 +12:00
Nicholas Cameron
4cd532521f Bug 874721; don't OOM with large canvases. r=Bas 2013-08-01 16:52:53 +12:00
Nicholas Cameron
19f4e0a65c Bug 874721; identify multi-process OMTC and use shmem. r=Bas 2013-08-01 16:52:46 +12:00
Nicholas Cameron
9d09b0b60d Bug 874721. Fallback for EnsureAllocated and compositor, and some more sanity checks. r=mattwoodrow 2013-08-01 16:52:36 +12:00
Nicholas Cameron
068a3c90a4 Bug 874721. CompositorD3D9, r=Bas 2013-08-01 16:50:52 +12:00
Nicholas Cameron
936a43cf50 Bug 897839. Use OMTC for invisible windows and initialise LayerTreeState::mParent. r=mattwoodrow 2013-08-01 10:20:24 +12:00
Nicholas Cameron
3ffc0fea6a Bug 897409. Use a temporary surface instead of forcing image surfaces (v2). r=mattwoodrow 2013-08-01 10:17:41 +12:00
Jim Chen
02ade91805 Bug 881018 - Never inline TiledLayerBuffer::GetScaledTileLength to avoid crash; r=Cwiiis 2013-07-31 13:26:44 -04:00
Jim Chen
2d9ab495c1 Backout rev 9497429e8463 (bug 881018) to land real fix 2013-07-31 13:26:21 -04:00
Kartikaya Gupta
e56113f533 Bug 890932 - Add a missing lock in AsyncPanZoomController::SendAsyncScrollEvent. r=BenWa 2013-07-31 08:53:17 -04:00
Kartikaya Gupta
aa06750a8e Bug 890932 - Remove unnecessary internal method now that the monitor re-entrant. r=BenWa 2013-07-31 08:53:16 -04:00
Kartikaya Gupta
e7eb189cc7 Bug 890932 - Make AsyncPanZoomController::mMonitor re-entrant to reduce code madness. r=BenWa 2013-07-31 08:53:16 -04:00
Ryan VanderMeulen
876ec34e66 Backed out changeset 6846b610be41 (bug 897409) for suspicion of making Win8 mochitest-mc perma-orange. 2013-07-30 22:28:46 -04:00
Ryan VanderMeulen
02d1dbe0d8 Merge m-c to inbound. 2013-07-30 18:08:18 -04:00
Nicholas Cameron
5b1bec37f3 Bug 897839. Add some null checks for the compositor map. r=mattwoodrow 2013-07-31 09:45:42 +12:00
Nicholas Cameron
604246128e Bug 897409. Use a temporary surface instead of forcing image surfaces. r=mattwoodrow 2013-07-31 09:45:31 +12:00
Timothy Nikkel
d619fd2bc6 Bug 899730. Part 2. Use nsIntRegion::Area in layers and get rid of the unneeded GetRegionArea function that does the same. r=nrc 2013-07-30 16:10:32 -05:00
Kartikaya Gupta
795301b997 Bug 866232 - Fix build breakage introduced in f69d34718660. r=me 2013-07-30 14:55:57 -04:00
Kartikaya Gupta
40271aeb0c Bug 866232 - Break assumption of a single global root layer tree. r=BenWa, mattwoodrow 2013-07-30 14:03:43 -04:00
Kartikaya Gupta
0ab038a3d2 Bug 866232 - Only fire mozbrowserasyncscroll events on the top-level scrollable for backwards compatibility. r=BenWa 2013-07-30 14:03:42 -04:00
Kartikaya Gupta
c27169836e Bug 866232 - Update and re-enable the test for hit detection in the APZC tree. r=BenWa 2013-07-30 14:03:41 -04:00
Kartikaya Gupta
288b98292e Bug 866232 - Add visible region tracking and hit-testing code for APZCTreeManager. r=BenWa, mattwoodrow 2013-07-30 14:03:41 -04:00
Kartikaya Gupta
ef737ecf30 Bug 866232 - Extract a GetCurrentAsyncTransform method in APZC. r=BenWa 2013-07-30 14:03:41 -04:00
Kartikaya Gupta
d725e5e6a1 Bug 866232 - Some documentation/variable renaming cleanup. r=BenWa 2013-07-30 14:03:40 -04:00
Kartikaya Gupta
81eb2a5995 Bug 866232 - Add code to build the APZC tree on layer updates. r=BenWa, mattwoodrow 2013-07-30 14:03:40 -04:00
Kartikaya Gupta
047677d3e3 Bug 866232 - Add an APZCTreeManager to encapsulate the multiple APZCs corresponding to a given layer tree. r=BenWa, mattwoodrow 2013-07-30 14:03:40 -04:00
Kartikaya Gupta
3a19367421 Bug 866232 - Add support for delaying APZC creation until the layer update. r=BenWa 2013-07-30 14:03:40 -04:00
Kartikaya Gupta
d87852c133 Bug 866232 - Guard some APZC fields by a lock so they can be nulled out from the compositor thread. r=BenWa 2013-07-30 14:03:39 -04:00
Kartikaya Gupta
56b257378e Bug 866232 - Move around code in APZC to more easily allow creating it on the compositor thread. r=BenWa 2013-07-30 14:03:39 -04:00
Kartikaya Gupta
b91095aea2 Bug 866232 - Reserve a layer tree id for the root layer tree. r=BenWa 2013-07-30 14:03:38 -04:00
Nicolas Silva
2b6a0c31a2 Bug 858914 - New texture classes + OGL backend (preffed off). r=bas, nrc 2013-07-30 11:59:51 +02:00
David Zbarsky
10f3eae40e Backout 40683014a638 for causing mochitest orange 2013-07-29 21:11:01 -07:00
David Zbarsky
2708b889b0 Bug 895116: Lock the mask texture before compositing with BasicCompositor r=bas 2013-07-29 16:04:09 -07:00
David Zbarsky
d3fdca2e8d Bug 898105 - Remove nsIDOMTouch r=reuben 2013-07-29 16:04:09 -07:00
Ehsan Akhgari
085494b95d Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00