Commit Graph

675 Commits

Author SHA1 Message Date
Benoit Girard
7b69b51053 Bug 864829 - Add graphics performance warning feature. r=bjacob
--HG--
extra : rebase_source : 11585fb913c4a10c9293787fa6e86f2f76bdcdb4
2014-05-07 18:09:41 -04:00
Jeff Gilbert
2bcd725268 Bug 1037151 - Merge SharedSurface_GL into SharedSurface. - r=mattwoodrow 2014-07-11 15:10:49 -07:00
Sushil Chauhan
b351fc9339 Bug 1027343 - Geometry change flag needs to be set for modified layer tree. r=mattwoodrow 2014-07-07 12:58:26 -07:00
Kartikaya Gupta
d138da640f Bug 1031494 - Move the FBO texture clamping code so that the OGL CompositingRenderTarget gets the unclamped size. r=BenWa 2014-07-04 20:21:36 -04:00
Kartikaya Gupta
737bb4f80d Bug 1034258 - Change mCompositionBounds to be a ParentLayerRect instead of a ParentLayerIntRect. r=Cwiiis 2014-07-04 08:12:41 -04:00
Boris Chiou
56aa721508 Bug 975346 - Part 2: Support LayerScope for HwcComposer2D. r=dglastonbury
1. Retrieve buffer from GPU.
2. Refactor - use SenderHelper class to manage the Sender
   static function structure.
2014-07-03 01:17:00 +02:00
Boris Chiou
fc4b3f1b0b Bug 975346 - Part 1: General functions for Effects. r=dglastonbury
1. Support GenEffectChain() for LayerComposite.
   Each layer can use this API to gen the
   EffectChain (only primary effect now)
2. Support GenEffect() for CompositableHost.
3. Move AutoLock to compositeHost.
2014-06-22 19:06:00 +02:00
Jeff Gilbert
ce8367febb Bug 1030934 - Handle a null-frame update. - r=bas 2014-06-30 15:09:55 -07:00
Jonathan Watt
2b73199b9a Bug 1031055 - Get rid of the Thebes backed gfxContexts in FrameLayerBuilder.cpp, and get rid of gfxASurface::DumpAsDataURL. r=mattwoodrow 2014-06-27 12:19:40 +01:00
Kartikaya Gupta
9a6406323d Bug 1023506 - Don't fill the background color for overscrolled scrollinfo layers. r=mattwoodrow 2014-06-25 19:18:33 -04:00
Brian Birtles
e17455d50f Bug 1010067 part 2 - Rename nsStyleAnimation.{h,cpp} to StyleAnimationValue.{h,cpp}; r=dbaron
--HG--
rename : layout/style/nsStyleAnimation.cpp => layout/style/StyleAnimationValue.cpp
rename : layout/style/nsStyleAnimation.h => layout/style/StyleAnimationValue.h
2014-06-24 15:29:54 +09:00
Brian Birtles
9fe1178360 Bug 1010067 part 1 - Rename nsStyleAnimation::Value to mozilla::StyleAnimationValue; r=dbaron
This patch also moves the static methods defined on nsStyleAnimation so that
they are part of StyleAnimationValue class.

Renaming nsStyleAnimation.h to StyleAnimationValue.h is performed in a separate
patch to simplify the diff (since some tools may not handle file renames
elegantly).
2014-06-24 15:29:54 +09:00
Kartikaya Gupta
6372a34da2 Bug 1020778 - Reduce opacity of low-res buffer on B2G by half when compositing it to the screen. r=jrmuizel 2014-06-23 12:00:18 -04:00
Benoit Jacob
4033d06c7c Remove unused static variable that causes non-unified build to fail - trivial, no review, no bug 2014-06-23 11:53:51 -04:00
Mason Chang
bf3556743d Bug 990832 - Build a tool to visualize frame uniformity. r=mchang, benwa. 2014-06-19 09:33:00 +02:00
Brian Birtles
d4fb178556 Bug 1025709 part 1 - Move mDelay to AnimationTiming; r=heycam
This patch is the first part in preparing the way to merge ElementTransitions
with CommonElementAnimationData (which we'll eventually rename to something
nicer).

Here we move mTiming from CommonElementAnimationData to the AnimationTiming
struct. While this is not strictly necessary in order to do the later
refactoring it makes it simpler since it:

- Divides time calculation into calculation based on dynamic play state (the
  responsibility of animation players in Web Animations terms) and static
  author-specified timing parameters (a property of animations in Web Animations
  terms).
- In future we will probably put animations on the compositor during their
  delay phase so we will want the delay to be present in the AnimationTiming
  struct then.
- Makes AnimationTiming line up with the dictionary of the same name in Web
  Animations.
2014-06-20 12:39:23 +09:00
Sotaro Ikeda
d32e919388 Bug 1027088 - Ensure fence delivery for TiledContentClient on gonk r=nical 2014-06-19 19:41:36 -07:00
Benoit Girard
2c957e7952 Bug 1027496 - Stream display list and layers dump. r=mattwoodrow 2014-06-19 18:36:25 -04:00
Benoit Girard
d34fdfc599 Bug 1027794 - Don't copy the visible region when rendering. r=bjacob 2014-06-19 16:14:46 -04:00
Birunthan Mohanathas
617866f602 Bug 1026535 - Fix mismatched class/struct tags. r=ehsan 2014-06-18 17:57:51 -07:00
Benoit Jacob
e01bd7ff0c Bug 1027251 - Fix or whitelist dangerous public destructors in gfx/ - r=jrmuizel 2014-06-18 22:28:59 -04:00
Jeff Gilbert
0d8f255d01 Bug 1000640 - Crash if we try to use the Gralloc path in TextureHost. - r=mattwoodrow 2014-06-18 17:04:06 -07:00
Jeff Gilbert
4ffbabe4bc Bug 1000640 - Use new StreamTextureClient/Host with OMTC. - r=mattwoodrow 2014-06-18 17:04:06 -07:00
Jeff Gilbert
848f7a9baa Bug 1000640 - Death to whitespace. - r=mattwoodrow 2014-06-18 17:04:05 -07:00
Nicolas Silva
cba735449e Bug 1014355 - Fix ownership issue in X11TextureClient. r=cwiiis 2014-06-18 19:11:12 +02:00
Benoit Girard
63335138a5 Bug 1015659 - Replace frame-counter by qrcode to tag video frames. r=jrmuizel 2014-06-17 16:34:42 -04:00
Botond Ballo
d28131c9fb Bug 1019996 - Apply overscroll effect to fixed and sticky layers. r=kats, r=Cwiiis 2014-06-12 20:27:32 -04:00
Botond Ballo
d1869da29c Bug 1019996 - Remove an unnecessary call to AlignFixedAndStickyLayers. r=Cwiiis 2014-06-12 16:40:35 -04:00
Sotaro Ikeda
a95491f0e3 Bug 1025781 - Add CreateDataSourceSurface() failure checks r=nical 2014-06-16 16:47:28 -07:00
"Kan-Ru Chen (陳侃如)"
0eedfd3ad4 Bug 879475 - Part 007. Allow nested remote mozbrowsers to push layer transactions to the compositor r=mattwoodrow
Based on original patch by David Zbarsky <dzbarsky@gmail.com>
2014-06-11 13:44:39 +08:00
Nicolas Silva
fad7865258 Bug 1000103 - Fix intermittent OSX crash in TextureImageTextureSourceOGL::GetFormat. r=mattwoodrow 2014-06-09 17:30:53 -04:00
Botond Ballo
b9214c5fa1 Bug 1014280 - Fill blank areas created by overscroll transform with background color. r=mattwoodrow,BenWa,nical
--HG--
extra : source : 4323c71f0e921b50a1774e46ec700b354b479c7a
2014-06-05 14:48:53 -04:00
Wes Kocher
7f0d583dfb Backed out changeset 9d1dd5a9be4f (bug 1000640) 2014-06-04 18:27:41 -07:00
Wes Kocher
3729ad76bc Backed out changeset 3a764e34c366 (bug 1000640) 2014-06-04 18:27:22 -07:00
Jeff Gilbert
47ba34ee84 Bug 1000640 - Use new StreamTextureClient/Host with OMTC. - r=mattwoodrow 2014-06-04 15:20:26 -07:00
Jeff Gilbert
c3001939d4 Bug 1000640 - Death to whitespace. - r=mattwoodrow 2014-06-04 15:20:25 -07:00
Markus Stange
33538971bb Bug 1013392 - Adjust the search algorithm for async scrollbar thumb shifting. r=kats 2014-06-04 14:44:26 +02:00
Kartikaya Gupta
869d80a296 Bug 1019004 - Guard against a null pointer deref when dumping painting. r=BenWa 2014-06-03 12:59:15 -04:00
Victor Porof
928e1cef59 Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj 2014-05-23 17:12:29 -04:00
Andreas Gal
37ea7c31b8 Bug 1012407 - Part 8: Remove VBOArena which is now dead code (r=Bas) 2014-05-28 14:04:07 -04:00
Ed Morley
deb3f4131b Backed out changeset f0b1908ce71a (bug 1013392) 2014-05-28 18:19:44 +01:00
Markus Stange
713c103128 Bug 1013392 - Adjust the search algorithm for async scrollbar thumb shifting. r=kats 2014-05-28 16:14:43 +02:00
Markus Stange
922651b231 Bug 1016437 - Document why we don't use TiledTextureImage for YCbCr frames and add an assert to that effect. r=nical 2014-05-28 12:52:12 +02:00
Brian Birtles
29b49734b6 Bug 1015803 - Align Layers' Animation.numIterations with AnimationTiming.mIterationCount; r=dholbert
In the IPC Animation struct used in layers code we have a member called
'numIterations' where 'iterate forever' is represented by -1.

In layout/style however we have an AnimationTiming struct with an
mIterationCount member where 'iterate forever' is represented by
NS_IEEEPositiveInfinity().

This patch renames 'numIterations' to 'iterationCount' and uses infinity to
represent 'iterate forever'.
2014-05-28 16:51:50 +09:00
Brian Birtles
ce31823aa2 Bug 1004871 part 9 - Move ElementAnimations::GetPositionInIteration to ElementAnimation::GetComputedTimingAt; r=dholbert
This patch simply moves the code from ElementAnimations to ElementAnimation so
that it can later be used in transitions code and so we can later move
EnsureStyleRuleFor to ElementAnimation.
2014-05-28 16:51:50 +09:00
Brian Birtles
155c5f0edb Bug 1004871 part 6 - Make GetPositionInIteration return a ComputedTiming object; r=dholbert
This patch makes ElementAnimations::GetPositionInIteration return
a ComputedTiming object instead of just a time portion (time fraction).

Since the ComputedTiming object includes phase information, we can fix those
parts of EnsureStyleRule and GetEventsAt that were temporarily using the time
portion to guess if the animation might have finished or not.
2014-05-28 16:51:49 +09:00
Brian Birtles
9f3b8d91b0 Bug 1004871 part 3 - Replace parameters to GetPositionInIteration with an AnimationTiming object; r=dholbert
This patch makes use of the AnimationTiming struct introduced in the previous
patch to simplify calls to ElementAnimations::GetPositionInIteration.
2014-05-28 16:51:49 +09:00
Brian Birtles
f06a971a86 Bug 1004871 part 1 - Factor event queuing out of EnsureStyleRuleFor; r=dholbert
This patch moves event queuing out of EnsureStyleRuleFor into a separate method.
This is a preparatory step towards making GetPositionInIteration into a more
generic method for calculating the current time fraction.

In order to achieve this, GetPositionInIteration needs to be able to calculate
the correct time portion for times outside the range [0, 1] even when it is not
passed a ElementAnimation object. Specifically, it needs the fill mode of the
animation to be passed in.

(Rather than using FillForwards/FillBackwards this patch just compares the
NS_STYLE_ANIMATION_FILL_MODE_* values directly but FillForwards/FillBackwards
are restored in a subsequent patch when they are added to the struct used to
lump the timing parameters together.)

There are a number of places where positionInIteration is used to determine if
the current sample occurs in the active phase or after. This is sub-optimal but
is fixed in a subsequent patch in this series.

The actual work of removing event queuing from GetPositionInIteration is
deferred to a subsequent patch in order to keep the changes as small as
possible. This patch simply makes separate calls to GetPositionInIteration for
interpolating and for event queuing.
2014-05-28 16:51:48 +09:00
Matt Woodrow
f6d3bf9e86 Bug 1013767 - Restrict BasicCompositor snapshots to the bounds of the invalid region. r=nical 2014-05-28 13:21:32 +12:00
Sotaro Ikeda
3563e7df31 Bug 1006957 - WebRTC crash fix r=nical 2014-05-26 10:09:25 -07:00