Commit Graph

14377 Commits

Author SHA1 Message Date
Mason Chang
1e4a4d3d88 Bug 1181028. Log assert error. r=me 2015-07-07 15:41:29 -07:00
Robert O'Callahan
3d3268c3c1 Bug 1181303. Set composition time earlier so that computing invalid regions works properly. r=mattwoodrow 2015-07-08 08:50:29 +12:00
Seth Fowler
8441769275 Bug 1177587 - Detect use of <img> elements for animation and use sync decoding to reduce flicker. r=tn 2015-07-07 14:00:08 -07:00
Wes Kocher
c6423d0a96 Backed out changeset 1afe81135def (bug 1181028) for android build bustage CLOSED TREE 2015-07-07 12:23:33 -07:00
Mason Chang
6642f354a6 Bug 1181028. Log assert error. r=me 2015-07-07 12:00:48 -07:00
Ryan VanderMeulen
18afe1cb5f Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-07 13:38:10 -04:00
Ryan VanderMeulen
c076b1148d Merge b2g-inbound to m-c. a=merge 2015-07-07 13:25:39 -04:00
Hiroyuki Ikezoe
a98fa02cfd Bug 1175751 - Apply playback rate to compositor animations. r=bbirtles 2015-07-06 19:05:00 +02:00
Mason Chang
252332b5d8 Bug 1179049. Properly null check for draw target in box shadow code. r=mstange 2015-07-06 08:58:22 -07:00
Nicolas Silva
bb9aef341d Bug 1178816 - Fix a crash when DrawTargetD2D1 fails to initialize. r=milan 2015-07-06 17:57:03 +02:00
Kartikaya Gupta
fa9c7e68df Bug 1176798 - Increase the content response timeout to prevent intermittently failing. r=botond 2015-07-06 09:53:11 -04:00
Cervantes Yu
d0d380cd18 Bug 1180644: Fix crashes after enabling OOP on B2GDroid. r=snorp 2015-07-06 19:18:20 +08:00
Robert O'Callahan
e701b816c3 Bug 1181085 - Don't accumulate ImageCompositeNotifications when we're compositing to a DrawTarget. r=nical
CLOSED TREE
2015-07-08 00:12:24 +12:00
Dylan Roeh
fe4c41859d Bug 1153848 - Add pref to disable SurfaceTexture attach/detach. r=snorp 2015-07-06 16:43:45 -05:00
Dragana Damjanovic
c7fc0a288e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Lee Salzman
29638db104 Bug 1180246 - Part 4 - reduce Cairo dependencies where safe in TextureClientD3D9. r=bas 2015-07-03 11:54:35 -04:00
Lee Salzman
f2c9badec6 Bug 1180246 - Part 3 - remove usage of cairo_d2d_device. r=bas 2015-07-02 17:44:53 -04:00
Lee Salzman
94f9867660 Bug 1180246 - Part 2 - kill gfxD2DSurface with fire. r=bas 2015-07-02 08:02:59 -04:00
Lee Salzman
54afeb6c7a Bug 1180246 - Part 1 - remove dependencies on gfxD2DSurface. r=bas 2015-07-02 08:02:51 -04:00
Robert O'Callahan
acb540bea6 Bug 1143575. Add assertion for diagnostic purposes. r=nical 2015-07-06 17:20:23 +12:00
Robert O'Callahan
5844f35124 Bug 1143575. Fix build by ensuring ColorLayerComposite uses namespace gfx. r=nical 2015-07-04 10:50:30 +12:00
Robert O'Callahan
7a27819a5a Bug 1143575. Add a bias value to ImageHost to avoid unpredictable results when image times and compositor times are closely aligned. r=nical 2015-06-15 15:27:02 +12:00
Karl Tomlinson
6649094fd6 bug 1180012 remove unused GetPrefFonts() r=jdaggett 2015-05-19 19:39:51 +12:00
Robert O'Callahan
3e6ba27857 Bug 1143575. Let ImageContainer::SetCurrentImages accept multiple images. r=nical 2015-05-25 14:33:35 +12:00
Robert O'Callahan
78a9c11df4 Bug 1143575. Let callers of ImageContainer::SetCurrentImages specify frame IDs. r=nical 2015-07-03 22:13:48 +12:00
Robert O'Callahan
fd527c8295 Bug 1143575. Reimplement ImageContainer::GetPaintCount to be composition-aware. r=nical 2015-06-15 14:45:59 +12:00
Robert O'Callahan
f14957a15b Bug 1143575. Implement ImageContainer::GetDroppedCount. r=nical 2015-05-11 14:07:07 +12:00
Robert O'Callahan
a60e071b21 Bug 1143575. Clarify code by renaming method to ClearCurrentImageFromImageBridge. r=nical
We need to make it clear that ClearCurrentImage is really an internal method
of the ImageContainer implementation, not a method that ImageContainer users
should call.
2015-03-26 14:17:13 +13:00
Robert O'Callahan
3da031b651 Bug 1143575. Remove ClearAllImagesExceptFront because it doesn't do anything. r=nical
ImageBridgeChild::FlushAllImages with aExceptFront==true does absolutely
nothing, so remove the parameter and remove all callers which pass true.
2015-03-26 14:08:30 +13:00
Robert O'Callahan
407df544d9 Bug 1143575. Implement ImageContainer::GetPaintDelay. r=nical 2015-07-03 19:39:09 +12:00
Robert O'Callahan
4c9be9c5c5 Bug 1143575. Pass a list of timestamped images to ImageContainer::SetCurrentImages. r=nical 2015-07-07 09:58:18 +12:00
Robert O'Callahan
5da95d1584 Bug 1143575. Async image invalidation does not necessarily need to invalidate the layer; LayerTreeInvalidation will do that for us. r=mattwoodrow
We need to remove this so that adding images to the end of the list of images
for an ImageLayer doesn't force composition to happen even if nothing else
has changed.
2015-05-15 18:16:41 +12:00
Robert O'Callahan
745582f4ee Bug 1143575. Exit composition early if nothing is invalid. r=mattwoodrow
We need this change so that when ImageHost has a next image to display
more than one composition-interval in the future, we skip the actual
compositing work in those intermediate composition(s) if nothing else
has changed.

This change is a little bit scary since it breaks any code that was
previously assuming ScheduleComposition would actually update the screen.
However, that code was already broken for BasicCompositor.
2015-05-15 18:27:04 +12:00
Robert O'Callahan
125bf1559e Bug 1143575. Make LayerTreeInvalidation invalidate when an ImageLayerComposite's current frame has changed. r=mattwoodrow 2015-06-07 12:27:06 +03:00
Robert O'Callahan
f3ff1b5c23 Bug 1143575. Route ImageCompositeNotifications to ImageContainers. r=nical
For frame statistics to work properly, we have to notify an ImageContainer
when it has been composited. This requires a few changes, which have
been lumped together in this patch:
-- Create PImageContainer and ImageContainerParent/ImageContainerChild.
-- Add mFrameID and mProducerID everywhere we're passing around images.
-- Route composition notifications from the compositor back to
ImageContainerChild.
2015-07-06 15:02:26 +12:00
Robert O'Callahan
efca013ba5 Bug 1143575. Make ImageClientSingle handle multiple textures. r=nical 2015-07-03 22:37:03 +12:00
Robert O'Callahan
77012707de Bug 1143575. Factor out AsyncTransactionWaiter from AsyncTransactionTracker so we'll be able to wait for multiple AsyncTransactionTrackers. r=nical,sotaro 2015-05-12 15:36:49 +12:00
Robert O'Callahan
bdc6e7257d Bug 1143575. Fix some code formatting. r=nical 2015-03-20 16:46:29 +13:00
Robert O'Callahan
92a09b0193 Bug 1143575. ImageClient::UpdateImage should not return false when there's no image, because recreating the ImageClient won't help. r=nical 2015-03-19 21:06:27 +13:00
Robert O'Callahan
8f72b276f0 Bug 1143575. Remove ImageClientBridge::Updated. r=nical 2015-03-19 21:00:52 +13:00
Robert O'Callahan
8ba13e5876 Bug 1143575. Replace ImageClientSingle::UpdateImage's use of Image serial numbers with ImageContainer state generation counters, and switch it to use ImageContainer::GetCurrentImages. r=nical
When ImageContainer and ImageClient are managing a list of images, the
individual Image serial numbers are no longer enough to detect whether the
state has changed.
2015-05-12 12:56:09 +12:00
Robert O'Callahan
4ea78a5cc2 Bug 1143575. Ensure we schedule another composite if ImageHost has pending images. r=nical 2015-03-19 19:58:16 +13:00
Robert O'Callahan
8904d5f44d Bug 1143575. Implement ImageHost support for multiple timed images. r=nical 2015-05-25 22:48:09 +12:00
Robert O'Callahan
3cd1184fdf Bug 1143575. Store composition time in Compositor. r=nical
We'll need this later so ImageHost can select the correct image to use.

Adding a TimeStamp parameter to BeginFrame is a bit annoying since BeginFrame
is overridden by every subclass. It's a bit more convenient to just call a
separate non-virtual method just before we call BeginFrame.
2015-07-07 15:38:38 +12:00
Robert O'Callahan
43d10b00a4 Bug 1143575. Extend IPDL OpUseTexture to support multiple timestamped images. r=nical 2015-05-04 22:59:02 +12:00
Robert O'Callahan
292adc3c7d Bug 1143575. Replace ImageContainer Lock methods with simplified AutoLockImage. r=nical 2015-03-27 12:07:53 +13:00
Robert O'Callahan
50198d43fc Bug 1143575. Fix typo in ImageContainer comment. r=nical 2015-03-16 23:23:50 +13:00
Robert O'Callahan
07ef0f7d0d Bug 1143575. Rename ImageBridgeChild's AutoRemoteTextures to AutoRemoveTexturesFromImageBridge to avoid clashes with later work. r=nical 2015-03-16 23:20:42 +13:00
Robert O'Callahan
05a2f9de86 Bug 1143575. Pass a picture rect with OpUseOverlaySource and OpUseTexture, and eliminate OpUpdatePictureRect. r=nical
The picture rect logically belongs with the texture, and later patches will
make OpUseTexture take multiple textures, each of which needs its own
picture rect.
2015-07-04 10:52:42 +12:00
Robert O'Callahan
db09f27c29 Bug 1143575. Move mLayer from ImageClientBridge up into its superclass ImageClient. r=nical
This simplifies code slightly.
2015-03-25 22:02:04 +13:00