Commit Graph

9768 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
2b75afa842 merge b2g-inbound to mozilla-central 2014-03-05 13:24:51 +01:00
L. David Baron
3a3230d07c Bug 828173 patch 3: Add a concept of pending animations to Layer, like pending transform. r=mattwoodrow 2014-03-04 20:13:21 -08:00
L. David Baron
33a1acf4a8 Bug 828173 patch 2: Make Layer::AddAnimation have the caller fill in the data instead of taking parameters. r=mattwoodrow
(This is a bigger simplification later in the patch queue, when I add a
variant of AddAnimation called AddAnimationForNextTransaction.)
2014-03-04 20:13:21 -08:00
Brian Birtles
32a6b5d8fd Bug 972199 part 1 - Make SampleAnimations filter out animations that are yet to start; r=nrc
When restoring the refresh driver after testing we can arrive at a situation
where a layer has an animation that has yet to start. However, calling
ElementAnimations::GetPositionInIteration with a negative value from the
compositor thread is an error.

This patch detects animations on the compositor thread that are yet-to-start and
skips them when sampling. It also moves the activeAnimations = true line up as
otherwise we would need special logic to wake up the compositor after the delay
has finished.
2014-03-05 10:19:15 +09:00
Ehsan Akhgari
bf09c6f469 Bug 976896 - Port STL_FLAGS to moz.build; r=mshal 2014-03-04 19:39:06 -05:00
Milan Sreckovic
000e6f1c01 Bug 978274: Initialize gfxPrefs earlier, rename some methods, delete MigratePrefs from gfxPlatform. r=bgirard. 2014-03-04 12:26:33 -05:00
Ehsan Akhgari
b49ab8c371 Bug 978594 - Part 3: Port some of the per-source flags to moz.build; r=glandium
--HG--
extra : rebase_source : fe4cd059eddda221af420e1517250772816d7ee8
2014-03-02 15:41:32 -05:00
Dan Glastonbury
ad45f60627 Bug 975824 - Disable S3TC compressed texture support on VMware Gallium 0.4 with
llvmpipe. r=jgilbert
2014-02-28 16:57:03 +10:00
Phil Ringnalda
b0cebde23e Back out bbd7b1da5d36:b0d1c4456b73 (bug 974575) and 6e8140ae4961 (bug 969814) for ASan bustage 2014-03-03 22:40:07 -08:00
Jonathan Kew
2341b68fd3 bug 974575 - support color glyphs in cairo_image_surface's _composite_glyphs function. r=jrmuizel 2014-03-04 05:37:40 +00:00
Jonathan Kew
46d21b2ed4 bug 974575 - backport Behdad's patches for color bitmap glyph support from current cairo trunk. r=jrmuizel
* * *
[ft] Fix resizing of bitmap fonts
From b94a519aad3d5b50aa6de47ee16ee6a099de9791 Mon Sep 17 00:00:00 2001
Say, you were asking cairo for a font at 200px.  For bitmap-only fonts,
cairo was finding the closes strike size and using it.  If the strike
was at 20px, well, that's what you were getting.  We now scale that 20px
strike by a factor of 10 to get the correct size rendering.

Note that by itself this patch doesn't change much on the Linux desktop.
The reason is that the size you are interested in (eg. 200px) is lost by
fontconfig.  When you request a font at 200px, fontconfig returns a font
pattern that says 20px, and so the next layers thing you want a font at
20px.  To address that, one also needs a piece of fontconfig config that
puts the 200 back into the pixelsize.  Something like this:

<match target="font">
  <test name="scalable" mode="eq">
    <bool>false</bool>
  </test>
  <edit name="pixelsize" mode="assign">
    <times>
      <name>size</name>
      <name>dpi</name>
      <double>0.0138888888888</double> <!--1/72.-->
    </times>
  </edit>
</match>

I'm going to try to upstream this config so it will be enabled by
default.  The config can be a bit smarter.  For example, if
metricshinting is enabled and the size difference is small, we may as
well not scale.

The nice thing about this is that the configuration of whether and when
to scale bitmaps will be done in fontconfig, not cairo / Qt / ... code.
---
* * *
[FT] Prefer downscaling bitmap glyphs to upscaling

From a8f1b456db744e33a10b2301df03528787e5b1ca Mon Sep 17 00:00:00 2001
Say, you have bitmap strikes for sizes 50ppem and 100ppem.
To render at 60ppem, it's much better to downscale the 100ppem
bitmap than upscale 50ppem one.  Prefer downscaling.
---
* * *
[ft] I meant fabs(), not abs()

From 13bd8d09b44e50649f6fc4d58d036bc32c1d5c5b Mon Sep 17 00:00:00 2001
---
* * *
[ft] Fix memory bug in copying bitmaps

From a0f556f37fb7016aa304b7cf0e811c0d38f0b969 Mon Sep 17 00:00:00 2001
---
* * *
[ft] Fix wrong assumptions

From e738079302a968b7b1fb9101cd4d92a8887bedce Mon Sep 17 00:00:00 2001
If subpixel rendering is enabled, but FT returns a 8bit gray bitmap
(perhaps because the font has 8bit embedded bitmaps) we were hitting
the assertions because the assumptions made were wrong.  Fix up.
---
* * *
Towards support loading color glyphs from FreeType

From 2cc353c3dbe01b4d8f65d6de800f2b1d6004a1c2 Mon Sep 17 00:00:00 2001
See comments.
---
* * *
Support 2bit and 4bit embedded bitmaps

From 9444ef09ccde2735258cc1bd2f1912119a32dd88 Mon Sep 17 00:00:00 2001
---
* * *
[ft] Fix math

From 7d26341072b13a78d4b3fe58779057ac020be487 Mon Sep 17 00:00:00 2001
---
* * *
[ft] Add missing include

From 0554d76402321b25cc952180e4d19436a9038d1a Mon Sep 17 00:00:00 2001
---
* * *
[ft] Fix alignment

From 34a747e7bdeba1cfe17318f80fbe6720d47bc023 Mon Sep 17 00:00:00 2001
---
* * *
[ft] Ensure alignment of bitmaps received from FreeType

From 46d9db96d460fea72f0420102e8a90c6a7231f79 Mon Sep 17 00:00:00 2001
---
2014-03-04 05:37:40 +00:00
Ehsan Akhgari
1b528727d5 Bug 978594 - Part 1: Remove the old code to support MSVC 2005 and 2008 from gfx/cairo/libpixman/src/Makefile.in; r=glandium 2014-03-03 22:47:56 -05:00
Jeff Gilbert
3b5df918d9 Bug 978414 - GLContextCGL::IsDoubleBuffered should be const at definition. - r=bustage on a CLOSED TREE 2014-03-03 19:13:34 -08:00
Jeff Gilbert
288e6d233c Bug 978414 - Mark GLContext virtuals const and MOZ_OVERRIDE where appropriate. - r=bjacob 2014-03-03 18:47:43 -08:00
Ehsan Akhgari
24d5bea7f9 Fix the merge conflict of bug 958596 and bug 978776 2014-03-03 18:24:04 -05:00
Ryan VanderMeulen
2a78057cf2 Merge m-c to inbound. 2014-03-03 17:23:35 -05:00
Ryan VanderMeulen
ea7db637cd Merge inbound to m-c. 2014-03-03 17:00:34 -05:00
Milan Sreckovic
edbcc2ade0 Bug 971943: 5. Add float support to gfxPrefs. apz.max_event_acceleration, apz.fling_friction, apz.fling_stopped_threshold, apz.max_velocity_queue_size, apz.max_velocity_pixels_per_ms preferences moved to gfxPrefs. r=kgupta. 2014-03-03 11:53:21 -05:00
Ryan VanderMeulen
7cbcc3884c Backed out changeset 9024f38e3809 (bug 843666) for bustage. 2014-03-03 11:21:10 -05:00
Jeff Gilbert
8a9841d194 Bug 843666 - Implement color-buffer-(half-)float for WebGL. r=kamidphish 2014-03-03 10:36:52 -05:00
Milan Sreckovic
c1642686f2 Bug 971943: 6. gfx.android.rgb16.force (startup only), gfx.gralloc.fence-with-readpixels (changing during session) moved to gfxPrefs. r=sikeda. 2014-03-03 17:11:06 -05:00
Ehsan Akhgari
e4246b715c Bug 978626 - Stop exporting the skia symbols from xul.dll; r=jrmuizel 2014-03-03 16:39:31 -05:00
Ehsan Akhgari
892b1ab289 Bug 978776 - Stop exporting moz2d symbols from xul.dll; r=jrmuizel 2014-03-03 14:38:33 -05:00
Ed Morley
eb5f4e4e6d Merge mozilla-central and inbound 2014-03-03 14:50:56 +00:00
Ed Morley
a96a5e92b0 Merge latest green b2g-inbound changeset and mozilla-central 2014-03-03 14:45:43 +00:00
Markus Stange
012e376de7 Bug 975773 - Filter primitives in error states can have inputs. r=roc 2014-03-03 14:31:27 +01:00
L. David Baron
6309185008 Bug 978603: Make sure implicit copy constructors and assignment operators aren't invoked for gfxGlyphExtents (which would at least mess up leak statistics if not actually leak). r=jfkthame
Originally written while investigating bug 435138.
2014-03-03 00:54:39 -08:00
L. David Baron
c0da0d8d69 Bug 978608: Shut down pango's fontmap cleanly and shut down fontconfig, #if CLEANUP_MEMORY. r=karlt
This bumps the minimum required pango version to 1.22, released 29 Sep 2008.
2014-03-03 00:54:38 -08:00
Thomas Zimmermann
b23590f9a0 Bug 978086: Fix initialization order in LayerRenderState, r=nical
C++ requires constructors to initialize fields in the order of the
fields' definitions.
2014-03-03 09:15:00 +01:00
Jonathan Kew
2af5986c8c bug 978313 - initialize matchType appropriately for run-initial control chars that default to the primary font. r=jdaggett 2014-03-03 08:02:05 +00:00
Matt Woodrow
f81fe641a7 Bug 977891 - Move the ForceComposite message to PLayerTransaction so that we can identify the right compositor with e10s. r=nical 2014-03-03 13:59:58 +13:00
Ryan VanderMeulen
a94a1ab0bc Merge inbound to m-c. 2014-02-28 16:03:19 -05:00
Ryan VanderMeulen
9cdadc836a Merge m-c to b2g-inbound. 2014-02-28 10:16:37 -05:00
Carsten "Tomcat" Book
a927d781fe merge b2g-inbound to mozilla-central 2014-02-28 14:42:11 +01:00
Wes Kocher
e4299dd8a6 Merge m-c to b2g-inbound 2014-02-27 17:47:32 -08:00
Wes Kocher
9da41647fe Merge inbound to m-c 2014-02-27 16:52:51 -08:00
Ryan VanderMeulen
b1611fccd5 Merge m-c to b2g-inbound. 2014-02-27 17:34:25 -05:00
Ryan VanderMeulen
48d69f19f8 Merge inbound to m-c. 2014-02-27 16:55:18 -05:00
Sotaro Ikeda
3ba8189c4e Bug 977596 - Fix build failure on flatfish r=jmuizelaar 2014-02-27 13:26:22 -08:00
Sushil Chauhan
7d55b28a7d Bug 976717 - Pass the Framebuffer rectangle to be cleared to LayerComposite. r=ncameron 2014-02-27 11:07:34 -08:00
stefanh@inbox.com
6dacf6ac06 Bug 970079 - Native theming for MacOS X help buttons, widget part. r=mstange, roc. 2014-02-27 18:12:16 +01:00
Horia Iosif Olaru
b44521b18a Bug 952051 - Change the GetOperator call in FlushGroup to take into account the mix-blend-mode operator for the group. r=roc
Create a new GetEffectiveOperator function that also takes into acount the mix-blend-mode operator for basic layers. Replace logic that chooses between the effective mix blend mode and the operator returned by GetOperator, with calls to this function.
2014-02-27 11:56:48 -05:00
Benjamin Bouvier
470398b6d7 Bug 939843: Required changes in the rest of the tree; r=froydnj
--HG--
extra : rebase_source : 5757eb2b73755c8da08112b91b025a8fa860d7e8
2014-02-27 16:23:16 +01:00
Ehsan Akhgari
b0a9a9cd90 Bug 977279 - Add a missing initguid.h include to DrawTargetD2D.cpp 2014-02-28 10:42:23 -05:00
L. David Baron
a02d087ed4 Bug 978495: Initialize mozilla::layers::TextureClientX11::mLocked. r=nical 2014-03-02 10:29:06 -08:00
Jonathan Kew
98643bcab5 bug 978129 - don't assert when decoding empty 'name' table strings. r=jdaggett 2014-03-02 14:52:12 +00:00
Kyle Huey
9f9541e388 No bug: dos2unix GLTextureImage.cpp. r=me
DONTBUILD
2014-02-28 17:32:07 -08:00
Milan Sreckovic
044020c7cf Bug 977833 - Initialize gfxPrefs so that the tests have access to preferences evaluated that way. r=bgirard 2014-02-28 12:45:27 -05:00
Geoff Brown
d8f043c6f8 Bug 978277 - Disable gfx/tests/crashtests/815489.html on Android 2.3 2014-02-28 14:58:39 -07:00
Carsten "Tomcat" Book
236427f5bf Merge mozilla-central to b2g-inbound 2014-02-27 15:59:39 +01:00