Commit Graph

14066 Commits

Author SHA1 Message Date
Benoit Jacob
555568c44c Bug 950203 - Let GfxInfo on Android create its own GL context to get GL strings, instead of waiting on the compositor's - r=jrmuizel 2013-12-18 15:49:13 -05:00
Vladimir Vukicevic
56b333d0d2 b=949644; set mLibrary in WGL contexts before calling Init; r=bjacob 2013-12-18 13:09:11 -05:00
Vladimir Vukicevic
88d100acfb b=929506; call wglMakeCurrent before Init to get lookup working; r=bjacob 2013-12-18 13:09:11 -05:00
Vladimir Vukicevic
bff1f38394 b=929511; fix WGL context sharing; r=bjacob 2013-12-18 13:09:10 -05:00
Vladimir Vukicevic
4b2820854b b=929508; implement gfxWindowsPlatform::GetScreenDepth; r=jrmuizel 2013-12-18 13:09:10 -05:00
Milan Sreckovic
96c7578b86 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
Markus Stange
4e614d73eb Bug 951302 - Fix BasicCompositor handling of mask layers. r=mattwoodrow 2013-12-18 12:19:47 +01:00
Phil Ringnalda
64afb91b4b Back out 024623d015e9:fa1dd7e7aa22 (bug 895358) for Windows build bustage
CLOSED TREE
2013-12-17 23:36:05 -08:00
Randall Barker
5f29e6fa80 Bug 895358 - Part 2, Enable progressive tile rendering in B2G; r=BenWa,kats,Cwiiis 2013-12-17 13:41:00 -08:00
Wes Kocher
29915a0f83 merge inbound to m-c 2013-12-17 21:00:02 -08:00
Ryan VanderMeulen
94f7567ce5 Merge m-c to b2g-inbound. 2013-12-17 16:22:49 -05:00
Ryan VanderMeulen
f0ceb6aaa5 Merge b2g-inbound to m-c. 2013-12-17 16:17:49 -05:00
Kartikaya Gupta
0108acd121 Bug 951256 - Dump the APZC guid in rendertrace output. r=Cwiiis 2013-12-17 15:20:21 -05:00
Kartikaya Gupta
89d848b074 Bug 951256 - Add a GetGuid function with return value to APZC. r=Cwiiis 2013-12-17 15:20:20 -05:00
Kartikaya Gupta
0ea9aefa0c Bug 950487 - Remove unnecessary UpdateCompositionBounds function on APZC. r=Cwiiis 2013-12-17 14:25:57 -05:00
Ryan VanderMeulen
f7385ac1e9 Merge m-c to inbound. 2013-12-17 16:20:31 -05:00
Markus Stange
904a99263d Bug 951186 - Propagate the current compositor in ContentHostBase::UseTextureHost. r=nical 2013-12-17 17:11:14 +01:00
Chris Lord
eb39e0acf3 Bug 950696 - Cache the 'enable tiles' layers pref. r=bgirard
Rename layers.force-tiles to layers.enable-tiles and cache it with the other
layers prefs in gfxPlatform.
2013-12-17 14:02:16 +00:00
Carsten "Tomcat" Book
cd068df067 Merge mozilla-central to mozilla-inbound 2013-12-17 13:16:00 +01:00
Jacek Caban
da391931de Bug 945292 - Makefile.in part. r=glandium 2013-12-17 12:06:08 +01:00
Wes Kocher
011bd18019 Merge m-c to b2g-inbound 2013-12-16 21:36:02 -08:00
Wes Kocher
56c7fcbb4e Merge inbound to m-c 2013-12-16 21:33:31 -08:00
Ryan VanderMeulen
eb7ced421f Backed out changeset 96b0ddfc63f7 (bug 893304) for causing bug 950589. 2013-12-16 22:49:02 -05:00
Alessandro Decina
ff3a24dd02 Bug 928806 - Allow SharedPlanarYCbCrImage images to optionally have padding
Overload YCbCrImageDataSerializer.InitializeBufferInfo to take explicit plane
offsets. Make SharedPlanarYCbCrImage::SetDataNoCopy set the offsets based on the
Y, Cb and Cr plane pointers passed by the caller. r=nical
2013-12-16 17:33:47 -05:00
Chris Lord
55dc07e248 Bug 943846 - Don't constrain generated display-ports to composition bounds. r=kats 2013-12-16 17:33:30 -05:00
Ryan VanderMeulen
1037218183 Merge inbound to m-c. 2013-12-16 16:58:27 -05:00
Kartikaya Gupta
0b8bb93d3e Bug 949132 - Use the FrameMetrics flag on the layers update to update APZC scroll offset instead of tracking it in widget code. r=Cwiiis 2013-12-16 12:04:46 -05:00
Kartikaya Gupta
4ad1847fb9 Bug 949132 - Add a flag to FrameMetrics indicating a non-APZ scroll (original patch by mstange). r=tn 2013-12-16 12:04:45 -05:00
Matt Woodrow
0b806c9170 Bug 913503 - Update windowed plugin positions before we schedule a composite with OMTC. r=roc 2013-12-16 18:38:42 +13:00
Nicholas Cameron
93e90b7ec1 Bug 950504. Remove MatrixForThebesMatrix. r=mattwoodrow
--HG--
extra : rebase_source : 77103221abbb55d23f9d399d4973ef0b8f269079
2013-12-16 11:17:58 +13:00
Phil Ringnalda
1dfe73b536 Back out e9ca04f323d0 (bug 928806) on suspicion of causing ASan and Linux debug gtest crashes
CLOSED TREE
2013-12-15 13:58:28 -08:00
Alessandro Decina
69c8b117ce Bug 928806 - Allow SharedPlanarYCbCrImage images to optionally have padding. r=nical
Overload YCbCrImageDataSerializer.InitializeBufferInfo to take explicit plane
offsets. Make SharedPlanarYCbCrImage::SetDataNoCopy set the offsets based on the
Y, Cb and Cr plane pointers passed by the caller.
2013-12-15 14:06:14 -05:00
Phil Ringnalda
b53eaccd4d Merge f-t to m-c 2013-12-14 18:21:57 -08:00
Jim Mathies
9fda9d68ee Bug 941774 - Centralize various dpi related queries on Windows. r=bbondy 2013-12-14 14:40:55 -06:00
Ryan VanderMeulen
218cec4598 Merge inbound to m-c. 2013-12-13 16:15:52 -05:00
Vivien Nicolas
0fd36d97ed Bug 949404 - Applications are half repainted once the keyboard is closed. r=Cwiiis 2013-12-13 18:23:47 +01:00
Morris Tseng
287ef9237a Bug 893304 - Convert CanvasClient to new TextureClient/Host. r=nical, r=snorp, r=jgilbert 2013-12-13 12:45:13 -05:00
Tor Arvid Lund
a5d20cf034 Bug 929513 - Fix compile errors on Windows/Android r=nical
Forgot an include in the ImageLayerD3D9.cpp file (though I am unable to
reproduce the issue on my own windows installation).

Also seems in my previous attempt to fix the build, I introduced a
breakage for Android. Hopefully this will fix things.
2013-12-13 18:32:10 +01:00
Tor Arvid Lund
feefccfd0c Bug 929513 - Replace gfxIntSize in layers/AutoOpenSurface.h r=nical
This rippled into other replacements in layers and in gfx/gl.
2013-12-13 18:32:06 +01:00
Tor Arvid Lund
3d5f99f7f3 Bug 929513 - Replace some instances of gfxIntSize with gfx::IntSize r=nical 2013-12-13 18:32:02 +01:00
Tor Arvid Lund
e437dfc935 Bug 929513 - Add YCbCrUtils class and change gfxIntSize in BasicCompositor r=nical
The purpose of this patch is to replace usages of gfxIntSize with
gfx::IntSize in BasicCompositor.

The new class YCbCrUtils has two methods ported from gfxUtils in thebes.
BasicCompositor now uses these methods instead of the ones in gfxUtils.
Also changed gfxIntSize to gfx::IntSize and gfxImageFormat to
gfx::SurfaceFormat.
2013-12-13 18:31:57 +01:00
Tor Arvid Lund
eaa77f044b Bug 929513 - Change gfxSize references to gfx::Size r=nical 2013-12-13 18:31:53 +01:00
Tor Arvid Lund
71bbbd7eb2 Bug 929513 - Remove unused #include statements r=nical 2013-12-13 18:31:35 +01:00
Wes Kocher
898b147d75 Merge inbound to m-c 2013-12-12 19:12:51 -08:00
Kevin Simons
2192973715 Bug 944646 - Implement Skia path in ScaledFontBase::CopyGlyphsToBuilder. r=mattwoodrow
Handle PathBuilderSkia with a separate path specifically for
BACKEND_SKIA DrawTarget instances.
2013-12-12 17:37:00 -05:00
Kevin Simons
f09656d765 Bug 944646 - Check the DrawTarget type before downcasting PathBuilders. r=mattwoodrow
Previously the ScaledFontBase::CopyGlyphsToBuilder methods in the
various ScaledFont subclasses static_cast-ed the passed in PathBuilder
objects without checking which sort of DrawSurface they were created by.
2013-12-12 17:37:00 -05:00
Kartikaya Gupta
6c7c9a5200 Bug 949310. r=BenWa 2013-12-12 13:34:50 -05:00
Carsten "Tomcat" Book
3cb7c2ae44 Merge mozilla-central to b2g-inbound 2013-12-12 16:17:29 +01:00
Jonathan Watt
452b6c3fcf Bug 944704, part 4 - Fix PathBuilderCG::Arc to sweep in the correct direction. r=Bas 2013-12-14 11:09:36 +00:00
Bas Schouten
1da060fb89 Bug 946540: Deal with inflection points that all lie outside of (0, 1). r=jrmuizel 2013-12-13 15:22:37 +01:00
Jonathan Watt
f47e1b2989 Bug 944704, part 1 - Extend Moz2D's ArcToBezier helper so that it can draw ellipse arcs in addition to circle arcs. r=Bas 2013-12-13 12:14:36 +00:00
Jeff Muizelaar
caf4092836 Bug 951216. Avoid unnecessary Snapshot() copies by clearing the pattern. r=Bas
gfxSurfaceDrawable::Draw() sets a gfxPattern(Snapshot()) to the gfxContext's
pattern. If the gfxSurfaceDrawable is created by
CreateSamplingRestrictedDrawable it will be destroyed before the Snapshot().
This causes the Snapshot to be copied unnecessarily.

If we set the pattern to something else we'll destroy the snapshot before the
gfxSurfaceDrawable and save a copy.

--HG--
extra : rebase_source : 03864e8a0fe021940747cf691df30ec51e4d8b2d
2013-12-17 13:33:34 -05:00
Kartikaya Gupta
c810bc39ba Bug 951320 - Use the composition bounds in CSS pixels when expanding the scrollable rect. r=k17e 2013-12-18 09:13:52 -05:00
Mike Hommey
62d390485a Bug 945042 - Move NO_PROFILE_GUIDED_OPTIMIZE to moz.build. r=gps,r=njn 2013-12-09 13:39:26 +09:00
Ryan VanderMeulen
8c7c4ef7ab Merge m-c to inbound on a CLOSED TREE. 2013-12-11 22:39:20 -05:00
Dale Harvey
543aa991a9 Bug 942929 - Use longtapup event to handle firing clicks when longtap not handled. r=kats 2013-12-12 00:39:06 +00:00
Ryan VanderMeulen
a00e00a3cc Merge m-c to b-i. 2013-12-11 13:37:13 -05:00
Dale Harvey
f90a83a007 Bug 946661 - Dont send tapconfirmed event when tapup was handled. r=kats 2013-12-11 17:19:42 +00:00
Kartikaya Gupta
e95fed93c5 Bug 946661 - Add APZC tests for short and medium length taps. r=daleharvey 2013-12-11 17:19:33 +00:00
Kartikaya Gupta
39ddd2f726 Bug 947931 - Remove unnecessary locking now to avoid potential for deadlock. r=botond,BenWa 2013-12-11 12:15:10 -05:00
Edwin Flores
0920b6c4c8 Bug 934412 - Pass surface image format into CreateTextureImage r=nical 2013-12-11 15:14:16 +01:00
Cameron McCormack
a9096d4a6d Bug 773296 - Part 16a: Followup to move to using nsCSSValueSharedList in OMTA code. r=roc 2013-12-12 13:09:44 +11:00
Cameron McCormack
ae655160b2 Bug 773296 - Part 16: Add a ref-counted list nsCSSValue unit and use it for tranform lists; hold a strong reference to one on nsStyleDisplay. r=dbaron
This adds a new eCSSUnit_SharedList type for nsCSSValue, which is a
reference counted object that contains an nsCSSValueList.  We need this
so that nsStyleDisplay::mSpecifiedTransform can hold a strong reference
to a specified transform list value.  When 'transform' is specified
using a variable reference, the resulting nsCSSValue does not stick
around in the Declaration object, so we wouldn't be guaranteed that
it lives long enough for nsStyleDisplay to keep referencing it.
2013-12-12 13:09:44 +11:00
Jacek Caban
34f795c6b7 Bug 945230 - Fixed char16_t/wchar_t mismatch in gfx/thebes/. r=bas.schouten 2013-12-11 10:46:41 +01:00
Nicholas Cameron
78340760ec Bug 948555. Fix a bogus assert in CompositorParent. r=mattwoodrow 2013-12-11 16:51:00 +13:00
Ryan VanderMeulen
7a6613cc88 Merge m-c to inbound. 2013-12-10 15:48:16 -05:00
Ryan VanderMeulen
2b53da578d Merge b2g-inbound to m-c. 2013-12-10 15:38:44 -05:00
John Daggett
a8991e22e0 Bug 947812 - log font name loading times. r=bas 2013-12-11 09:58:27 +09:00
John Daggett
1ee70857fb Bug 947812 - use DirectWrite API for fullname/psname lookup. r=bas 2013-12-11 09:58:19 +09:00
Nicholas Cameron
789fd7e109 Bug 946958 part 5. Misc tidy ups. r=mattwoodrow 2013-12-09 14:41:00 +13:00
Nicholas Cameron
9bfee51338 Bug 946958 part 4. Tidy up interaction with widgets. r=kats 2013-12-09 14:40:59 +13:00
Nicholas Cameron
123cc96e7a Bug 946958 part 3. Remove thebes callbacks. r=mattwoodrow 2013-12-09 14:40:59 +13:00
Nicholas Cameron
c9131de1bb Bug 946958 part 2. Remove methods which just forward to compositor. r=mattwoodrow 2013-12-09 14:40:59 +13:00
Nicholas Cameron
67f3ec8830 Bug 946958 part 1. Remove GetWidgetSize. r=mattwoodrow 2013-12-09 14:40:59 +13:00
Nicholas Cameron
5cac3eba12 Bug 865033 part 2. Add mCompositor to CompositorParent. r=mattwoodrow 2013-12-09 14:40:58 +13:00
Nicholas Cameron
7db768a889 Bug 865033 part 1. Remove GetLayerManager from CompositorParent. r=mattwoodrow 2013-12-09 14:40:58 +13:00
Nicholas Cameron
0f60f8b600 Bug 945632. Assert we've released memory which the host should have released. r=nical 2013-12-04 22:03:29 -05:00
Jeff Muizelaar
95ebe9a221 Bug 947379. Remove MOZ_PANGO. r=jfkthame
We haven't been able to build with this since
2008. Time for it to go.

--HG--
extra : rebase_source : 0e25f91e2a4308d3873ca2c240347b25d70d69c5
2013-12-09 10:03:28 -05:00
Ehsan Akhgari
e004ec8ac0 Bug 947736 - Build modules/libpref/ in unified mode; r=bsmedberg 2013-12-10 18:10:01 -05:00
John Daggett
c95694883f merge 2013-12-12 10:50:57 +09:00
John Daggett
0cd4d4edb3 Bug 947812 - bracket log calls with #ifdef PR_LOGGING. r=heycam 2013-12-12 09:28:40 +09:00
Matt Woodrow
69b425e751 Bug 946475 - Avoid using AutoSaveRestoreClippedOut for ClearRect when the cumulative clip can be represented as a single axis aligned rectangle. r=Bas 2013-12-12 10:11:37 +13:00
Matt Woodrow
d7f207c94a Bug 946475 - Clip to the clear area in DrawTargetD2D::ClearRect so that we don't accidentally restore pixels that weren't drawn. r=Bas 2013-12-12 10:11:07 +13:00
Matt Woodrow
816e9ebd04 Bug 948221 - Part 6: Make UnpremultiplyImageSurface work on surfaces that don't have matching strides. r=roc 2013-12-12 10:05:26 +13:00
Matt Woodrow
c40c4b1a78 Bug 948221 - Part 5: Make GetSourceSurfaceForSurface use the screen reference draw target if one isn't specified. r=Bas 2013-12-12 10:05:26 +13:00
Dan Glastonbury
12a898ec8b Bug 942506 - Remove Bind method from AutoBindTexture - r=bjacob
Refactored the places where AutoBindTexture::Bind was used. Replaced with a
simplier class that just saves the texture id bound to a texture unit. The
texture is bound directly instead of via the helper.

I didn't eliminate all occurences of AutoBindTexture because I a few places it
was cleaner than using AutoSaveTexture + TextureSourceOGL->BindTexture.

I extracted the cut'n'paste code that bound the mask texture to program into
BindMaskTextureForProgram. I dislike cut'n'paste code in multiple spots.
2013-12-10 16:50:52 +10:00
Dan Glastonbury
01884a573b Bug 942506 - Remove ApplyFilterToBoundTexture from GLContext - r=bjacob
Move it to CompositorOGL.
2013-12-09 14:07:18 +10:00
Dan Glastonbury
eb13a35408 Bug 942502 - Move EGLImage/GraphicBuffer-specific helpers out of GLContext - r=bjacob
Extracted methods CreateEGLImageForNativeBuffer and DestroyEGLImage from
GLContext and moved to EGLImageHelpers.[h|cpp]. Renamed to
EGLImageCreateFromNativeBuffer and EGLImageDestroy.
2013-12-10 15:47:19 +10:00
Dan Glastonbury
506b3d56e6 Bug 942502 - Remove dead GLContext code - r=bjacob 2013-12-06 14:19:15 +10:00
Benoit Jacob
9f063375a9 Bug 897452 - Part 15 - Introduce a AtomicRefCountedWithFinalize class to factor our custom-refcounting needs - r=nical 2013-12-11 20:45:11 -05:00
Benoit Jacob
662b111d2c Bug 897452 - Part 14 - Implement CompositableChild::ActorDestroy clearing the back-reference to it - r=nical 2013-12-11 20:45:09 -05:00
Benoit Jacob
01bec9054e Bug 897452 - Part 13 - Host-side cleanup: remove OnActorDestroy and DestroyTextureHost* - r=nrc 2013-12-11 20:45:07 -05:00
Benoit Jacob
bffd04bbcc Bug 897452 - Part 12 - remove CompositableClient::OnActorDestroy - r=nrc 2013-12-11 20:45:05 -05:00
Benoit Jacob
ddd558c190 Bug 897452 - Part 11 - remove TextureClient::OnActorDestroy - r=nrc 2013-12-11 20:45:03 -05:00
Benoit Jacob
94263041e6 Bug 897452 - Part 10 - adapt post landing of bug 893301 - r=nical,nrc 2013-12-11 20:45:01 -05:00
Benoit Jacob
67fcd5e48f Bug 897452 - Part 9 - Check for null buffer in BufferTextureHost::Upload - r=nical 2013-12-11 20:44:59 -05:00
Benoit Jacob
0d718a571c Bug 897452 - Part 8 - fix TextureParent::ActorDestroy - r=nical 2013-12-11 20:44:57 -05:00
Benoit Jacob
c590710a23 Bug 897452 - Part 7 - Implement TextureChild::ActorDestroy to notify its TextureClient - r=nical 2013-12-11 20:44:55 -05:00
Benoit Jacob
9e7e683c5a Bug 897452 - Part 6 - assert that the forwarder we're initializing our TextureChild with is non null - r=nical 2013-12-11 20:44:53 -05:00
Nicolas Silva
067ae770a6 Bug 897452 - Part 5 - Fix a TextureClient gtest crash - r=BenWa 2013-12-11 20:44:51 -05:00