Commit Graph

15049 Commits

Author SHA1 Message Date
Botond Ballo
c9caf7aa13 Bug 1206915 - Move dumping of compositor textures under its own environment variable. r=mattwoodrow
The rationale is that it's broken at least on some platforms (e.g.
TextureHost::GetAsSurface() is not implemented), and moving it under its own
environment variable allows us to use the client-side parts of paint dumping
without crashing while attempting to do the compositor-side parts.
2015-09-21 18:27:27 -04:00
James Willcox
13052973d2 Bug 1201541 - Add a pref for disabling single tile layers r=mattwoodrow 2015-09-28 09:37:01 -05:00
James Willcox
c59c7793dc Bug 1148131 - Enable DrawTargetTiled on Android r=Bas 2015-09-28 09:37:00 -05:00
James Willcox
d1f8aa4767 Bug 1201541 - Use SingleTiledContentClient for non-scrollable layers on Android r=mattwoodrow 2015-09-28 09:36:58 -05:00
James Willcox
cea145b269 Bug 1182665 - Adjust tile sizes depending on the screen size r=nical 2015-09-28 09:36:57 -05:00
James Willcox
365b1b0164 Bug 1182665 - Add gfxPlatform::GetScreenSize() and use nsIScreen for gfxPlatform::GetScreenDepth() r=nical 2015-09-28 09:36:54 -05:00
Sotaro Ikeda
4f7b54617c Bug 1205725 - Add basic SidebandStream handling to HwcComposer2D r=mwu,nical 2015-09-28 06:55:48 -07:00
Nicolas Silva
305c1bbe71 Bug 1209039 - Temporarily disable thread names in Moz2D to work around a static check failure CLOSED TREE. r=me 2015-09-28 15:27:16 +02:00
Nicolas Silva
750fd2f36e Bug 1083101 - Use win32's CreateEventW instead of CreateEvent to avoid macro name collision 2015-09-28 13:50:01 +02:00
Nicolas Silva
d02ecca152 Bug 1083101 - Make SyncObject's waiting jobs list lock-free. r=jrmuizel 2015-09-28 13:49:59 +02:00
Nicolas Silva
c86aa89ddc Bug 1083101 - rename gfx::Mutex into gfx::CriticalSection and move it to its own file. r=jrmuizel 2015-09-28 13:49:54 +02:00
Nicolas Silva
f32cb15051 Bug 1083101 - Win32 implementation of the JobScheduler. r=jrmuizel 2015-09-28 13:49:52 +02:00
Nicolas Silva
224b8b6751 Bug 1083101 - Make gfx::DrawingCommand methods const. r=jrmuizel 2015-09-28 13:49:50 +02:00
Nicolas Silva
4da09c2c5c Bug 1083101 - Extend DrawCommand storage functionality and fix a bug with dashed stroke patterns. r=jrmuizel 2015-06-10 19:57:08 +02:00
Nicolas Silva
4fe808be72 Bug 1083101 - Implement gfx::DrawingJob. r=jrmuizel 2015-09-28 13:49:45 +02:00
Nicolas Silva
aa68ab6789 Bug 1083101 - Add a task scheduler to Moz2D. r=jrmuizel 2015-09-28 13:49:43 +02:00
Nicolas Silva
5b34998cb6 Bug 1083101 - Add a memory arena to Moz2D. r=jrmuizel 2015-09-28 13:49:33 +02:00
Nicholas Nethercote
8faa16a1b0 Bug 1208283 (part 4) - Change FrameMetrics::mBackgroundColor from gfxRGBA to gfx::Color. r=jwatt.
This removes some ToColor() calls.
2015-09-24 18:17:45 -07:00
Nicholas Nethercote
75834a0998 Bug 1208283 (part 3) - Remove the ToDeviceColor() that takes a gfxRGBA. r=jwatt. 2015-09-24 18:16:51 -07:00
Nicholas Nethercote
15a95be5b4 Bug 1208283 (part 2) - Change ColorLayer::mColor, ColorLayerProperties::mColor, ReadbackLayer::mBackgroundColor from gfxRBGA to gfx::Color. r=jwatt.
This avoids some gfxRGBA-to-Color conversions.
2015-09-24 18:16:45 -07:00
Nicholas Nethercote
323718acf6 Bug 1208283 (part 1) - Change gfxPattern's single-arg constructor to take a gfx::Color& instead of a gfxRGBA&. r=jwatt. 2015-09-24 17:50:46 -07:00
Nicholas Nethercote
bcd2fb7111 Bug 1208345 - Remove gfxContext::GraphicsOperator. r=jwatt.
Also...

- Rename various "operator" identifiers as "op" to match |CompositionOp|.

- Rename |nsBackgroundLayerState::mCompositingOp| as |mCompositionOp| to match
  |CompositionOp|.

- Remove some deprecated functions that are no longer needed.
2015-09-24 22:38:58 -07:00
Wes Kocher
4693a1ca71 Merge m-c to inbound, a=merge 2015-09-25 18:02:38 -07:00
Kearwood (Kip) Gilbert
50dd2e430d Bug 1207326 - Part 1: Correct projection clipping rectangle,r=matt.woodrow
- The clipping rectangle used in a call to Matrix4x4::TransformAndClipRect
  within CompositorOGL::DrawQuad is now using mRenderBound, with an
  offset applied consistent with use later in the function.
2015-09-25 13:43:52 -07:00
Hayden Huang
0516bcf115 Bug 1175447 - mono audio support. r=padenot, r=sotaro
This patch is to enable mono audio option for those who has full hearing loss in one ear.
With this feature, they can get the complete audio with using one ear.
2015-08-06 14:30:22 +08:00
Nicholas Nethercote
55d5c653f3 Bug 1207944 (part 5) - Use SetColor(const Color&) when setting from a constructed gfxRGBA. r=jwatt.
In various places SetColor() gets passed a gfxRBGA that is constructed at the
call site. This patch changes these to construct a gfx::Color directly,
avoiding the subsequent conversion.
2015-09-23 23:42:58 -07:00
Nicholas Nethercote
47eb6fced8 Bug 1207944 (part 3) - Add a gfxContext::SetColor method that takes a gfx::Color&. r=jwatt.
The existing one, which takes a gfxRGBA&, will be removed a few patches hence.
2015-09-23 23:37:24 -07:00
Nicholas Nethercote
efccf08686 Bug 1207944 (part 2) - Pass a gfx::Color& instead of a gfxRGBA& to GetDeviceColor(). r=jwatt.
This requires doing likewise for GetSolidColor(), PushSolidColor()
HasNonOpaqueColor().

This removes a ThebesRGBA() call in GetDeviceColor() and a ThebesColor() call in
GetSolidColor().
2015-09-23 23:36:15 -07:00
Nicholas Nethercote
b438b53666 Bug 1207944 (part 1) - Pass a gfx::Color& instead of a gfxRGBA& to SetDeviceColor(). r=jwatt.
This avoids a gfxRGBA-to-Color conversion in SetDeviceColor() itself.
2015-09-23 23:33:31 -07:00
Nicholas Nethercote
f7e8a9e813 Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.
2015-09-23 11:49:05 -07:00
Nicholas Nethercote
9c04985582 Bug 1207437 (part 3) - Fix and disallow warnings in gfx/thebes/. r=dvander.
This requires putting the structured exception blocks in their own functions,
away from local variables with types that have destructors.
2015-09-24 15:52:05 -07:00
Nicholas Nethercote
aeccf72543 Bug 1207437 (part 2) - Don't re-get D3D11CreateDevice. r=dvander.
It's always obtained during gfxWindowPlatform initialization and put into
sD3D11CreateDeviceFn.
2015-09-24 15:52:04 -07:00
Nicholas Nethercote
ff73d2195a Bug 1207437 (part 1) - Don't recompute Windows feature levels. r=dvander.
This is valid because mFeatureLevels is set when gfxWindowsPlatform is
initialized.
2015-09-24 15:52:02 -07:00
Andrew Comminos
28225933d0 Bug 1193015 - Require MOZ_GLX_USE_SURFACE_SHARING to enable WebGL surface sharing on GLX. r=jgilbert 2015-09-24 15:21:36 -07:00
Mason Chang
9e89498adf Bug 1188075 - Speed up inner box-shadow drawing by using a border-image style approach. r=mstange 2015-09-24 09:50:29 -07:00
Jeff Gilbert
eb79b5b33f Bug 1191042 - Use CreateOffscreen for WebGL instead of CreateHeadless. - r=jrmuizel 2015-09-24 12:21:05 -07:00
Wes Kocher
4715141da8 Backed out changeset 1da385d6c46b (bug 1021845) for b2g r3 and r7 permafail CLOSED TREE 2015-09-24 12:06:03 -07:00
Wes Kocher
6ddd381a7d Backed out bug 1083101 for build bustage CLOSED TREE
changesets backed out:
e39dfd9e05cb, cd54e93993b4, 61db1a51a7c4, c20fd7506bb7, b5e97b0facb7, cdf356cb817e, b058a918f443, d421e79326a2, 34a0be9af3f3, bba6f89ab775, 2fd5cfcea4e5
2015-09-24 11:14:50 -07:00
Nicolas Silva
e4b953afb8 Bug 1083101 - Back 5 patches out due to windows build issues, CLOSED TREE. 2015-09-24 19:47:20 +02:00
Nicolas Silva
53c17214ad Bug 1083101 - build fix on CLOSED TREE 2015-09-24 19:11:26 +02:00
Nicolas Silva
2468f65e6f Bug 1083101 - build fix on CLOSED TREE 2015-09-24 18:08:10 +02:00
Nicolas Silva
d5d8b4e3fd Bug 1083101 - Make SyncObject's list of waiting jobs lock-free. r=jrmuizel 2015-09-24 17:35:47 +02:00
Nicolas Silva
74021d279a Bug 1083101 - rename gfx::Mutex into gfx::CriticalSection and move it to its own file. r=jrmuizel 2015-09-24 17:35:37 +02:00
Nicolas Silva
eece822466 Bug 1083101 - Win32 implementation of the JobScheduler. r=jrmuizel 2015-09-24 17:35:30 +02:00
Nicolas Silva
3858146eff Bug 1083101 - Make gfx::DrawingCommand methods const. r=jrmuizel 2015-09-24 17:35:27 +02:00
Matt Woodrow
9638866b6b Bug 1204106 - Use correct alpha blend modes for OVER in CompositorOGL. r=jrmuizel 2015-09-24 18:33:59 -04:00
Kartikaya Gupta
77a6c914e3 Bug 1207270 - Update tests to ensure that TaskThrottlers are created as appropriate. r=botond 2015-09-25 13:54:11 -04:00
Kartikaya Gupta
48b20512ce Bug 1207270 - Ensure that the TaskThrottler objects are created on the main thread. r=botond 2015-09-25 13:54:11 -04:00
Nicholas Nethercote
f27f30a136 Bug 1207944 (part 9) - Remove SetColor(const gfxRGBA&). r=jwatt. 2015-09-24 00:48:15 -07:00
Nicholas Nethercote
b6ab9d1dc5 Bug 1207944 (part 7) - Use gfx::Color instead of gfxRGBA in BlurCache. r=jwatt.
This avoids several gfxRBGA-to-Color conversions.
2015-09-24 00:43:32 -07:00