Commit Graph

823 Commits

Author SHA1 Message Date
Jeff Muizelaar
876ec2d266 Bug 1064479. Redo how screen rotation is implemented on B2G/Layers. r=nical,mwoodrow
Currently we use a world transform on the LayerManager. This gets passed to the
screen render target which adjusts the gl transform to accomplish the rotation.
This causes a lot of the system to have to know about the transform.

Instead we can just bake the transform into the root layer's shadow transform.
Everything now mostly just works.

--HG--
extra : rebase_source : e0e170d191eef5887a2e6b17f71ac79037033006
2014-09-10 15:59:00 -04:00
Jonathan Watt
9bc0f0cdf3 Bug 1064084, part 4 - Convert all consumers of gfxContext::IdentityMatrix() to use gfxContext::SetMatrix(). r=Bas 2014-09-11 07:57:39 +01:00
Jonathan Watt
fa8c7ec8a5 Bug 1064084, part 1 - Convert all consumers of gfxContext::Translate() to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:57:38 +01:00
Jonathan Watt
b3072839ca Bug 1065031, part 2 - Changes to Moz2D consuming code to update callers of Moz2D Matrix's Translate, Scale and Rotate methods to use these methods' new names. r=Bas 2014-09-10 18:29:35 +01:00
Jonathan Watt
581078dcb7 Bug 1065127 - Avoid Matrix().Translate()/Scale()/Rotate() multiplication in lots of places. r=Bas 2014-09-10 14:26:12 +01:00
Carsten "Tomcat" Book
d9c5bea4e5 Backed out changeset e6b766d8a815 (bug 1065127) for bustage 2014-09-10 14:30:36 +02:00
Jonathan Watt
cc5bf95ddf Bug 1065127 - Avoid Matrix().Translate()/Scale()/Rotate() multiplication in lots of places. r=Bas
--HG--
extra : rebase_source : ef075258c31973c4943b9b3a9229685a9bb83917
2014-09-10 11:45:42 +01:00
Ehsan Akhgari
2e7a1f5631 Bug 1061250 - Fix more bad implicit constructors in graphics; r=roc 2014-09-02 09:47:43 -04:00
Milan Sreckovic
735f45f426 Bug 1033310: Handle CreateDataSourceSurface* returning nullptr. f=nsilva, r=bschouten 2014-08-27 11:57:43 -04:00
Trevor Saunders
86b7aff8fc bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
Ehsan Akhgari
3bffba3b99 Bug 1050609 - Fix more bad implicit constructors in gfx/layers; r=roc 2014-08-20 00:55:14 -04:00
Botond Ballo
9817bf729f Bug 1039992 - Fix a unified build issue. r=kats
--HG--
extra : rebase_source : 4e1e09c9bcb35f70c3ee7ff833646e5f437f5a86
2014-08-18 16:13:12 -04:00
Nicolas Silva
6e9b2cde6d Bug 1042052 - Add TextureClient::CreateSimilar and have component alpha buffer be of the same type. r=sotaro 2014-07-25 11:24:46 +02:00
Matt Woodrow
16d25cb54f Bug 1037226 - Don't crash when surface allocation fails in BasicCompositor. r=Bas
--HG--
extra : rebase_source : d6e655c642256ddeddb471726f40f37b98d3ac0f
2014-07-24 15:48:28 +12:00
Frederic Plourde
aff8275376 b=1015218 Buffer image content layers on server-side xlib surfaces with OMTC basic r=karlt
With image offscreen surfaces enabled for content layers on GTK3, our Basic
compositor needs a way to deal with image layers buffering and compositing in
a performant way.  This patch subclasses BasicCompositor into a new
X11BasicCompositor and makes use of a new TextureSource
(X11DataTextureSourceBasic) in order to buffer TextureHost's data into
gfxXlibSurface on compositor side so that we can use XRender when available to
composite layer contents directly to the Window.

When this buffering will occur, switch to ContentClientSingleBuffered.

--HG--
extra : rebase_source : adad6b1c05dcf516a1ea84c6a529df5f141c198f
2014-07-23 11:02:25 +12:00
Octoploid
ea3a63713b bug 1036401 - adjust includes to fix up some issues with complete types instead of forward declarations being required r=bz r=bjacob 2014-07-22 11:29:33 -04:00
Kartikaya Gupta
9dc6a33e69 Bug 1040906 - Replace the out-param on matrix conversion helpers with a return value. r=Bas 2014-07-22 09:12:14 -04:00
David Zbarsky
42ce38a532 Bug 952977: Switch some remaining gfxMatrix uses in layers to gfx::Matrix r=nical 2014-07-21 21:37:57 -04:00
Matt Woodrow
c3fef41fc3 Bug 1039145 - Part 2: Fully remove component alpha/background copying support from BasicCompositor. r=roc 2014-07-18 18:48:23 +12:00
Matt Woodrow
3a3d8a6318 Bug 1039145 - Part 1: Clean up AreComponentAlphaLayersEnabled. r=roc 2014-07-18 18:48:23 +12:00
Carsten "Tomcat" Book
59202fa4d3 Backed out changeset b049e0ae4d1d (bug 1039145) 2014-07-18 10:45:24 +02:00
Carsten "Tomcat" Book
16b520443f Backed out changeset 49c713f92304 (bug 1039145) 2014-07-18 10:45:20 +02:00
Matt Woodrow
6d782be30e Bug 1039145 - Part 2: Fully remove component alpha/background copying support from BasicCompositor. r=roc 2014-07-18 18:48:23 +12:00
Matt Woodrow
9d23fbeec7 Bug 1039145 - Part 1: Clean up AreComponentAlphaLayersEnabled. r=roc 2014-07-18 18:48:23 +12:00
Walter Litwinczyk
1945ba246d Bug 1024223 - Fix leak of |dest| and |src| in BasicLayerManager.cpp PixmanTransform(). r=mattwoodrow 2014-07-09 13:48:59 -07:00
Benoit Girard
e7aea75462 Bug 1037691 - Fix instances where refcounted classes expose a public destructor. r=ehsan,bent,mayhemer,jrmuizel 2014-07-15 11:37:45 -04:00
Matt Woodrow
6d89446227 Bug 1034247 - Avoid propogating scale factors down to ThebesLayers if it would result in them being larger than the max texture size. r=roc 2014-07-09 14:01:54 +12:00
Matt Woodrow
ff0aa47706 Bug 1032431 - Handle device offsets correctly when 3d transforming in BasicCompositor. r=Bas 2014-07-14 14:15:28 +12:00
Benoit Girard
439262aad7 Bug 1027380 - Paint flashing from an inactive layer manager saturates the transparent layers. r=mattwoodrow
--HG--
extra : rebase_source : 7444cf86fc14bd811d836d4c788958bf3790f572
2014-06-19 14:22:17 -04:00
Ed Morley
6269abc315 Merge mozilla-central and inbound 2014-07-10 16:29:53 +01:00
Kartikaya Gupta
2001531145 Bug 1036518 - Back out cset cc20208a6eb4 (bug 1034247) for causing blurry painting and janky scrolling on B2G/Fennec on some devices. r=me a=backout 2014-07-10 10:08:44 -04:00
Matt Woodrow
d3a7611535 Bug 1034247 - Avoid propogating scale factors down to ThebesLayers if it would result in them being larger than the max texture size. r=roc 2014-07-09 14:01:54 +12:00
Jonathan Watt
41878fbf80 Bug 933019, part 9 - Remove code for handling Thebes backed gfxContext from various files under gfx/layers/. r=Bas 2014-07-10 10:58:08 +01:00
Jonathan Watt
bb34a53966 Bug 1034528, part 1 - Get rid of gfxCachedTempSurface and the Thebes backed gfxContext that it creates. r=Bas 2014-07-07 09:05:15 +01:00
Benoit Girard
91578ecf84 Bug 1027362 - Remove the old basic frame counter. r=jrmuizel 2014-07-02 16:38:40 -04:00
Matt Woodrow
e8c5cf4d6c Bug 1028237 - Account for device offset for thebes layer masks. r=roc 2014-06-30 16:26:09 +12:00
Cgg
3642ea4e9d Bug 783043 - Restore original image factory after paint operations. r=nical
---
 gfx/layers/ImageContainer.h          |    5 +++++
 gfx/layers/basic/BasicImageLayer.cpp |    7 +++++++
 2 files changed, 12 insertions(+)
2014-06-21 14:32:30 +02:00
Nicolas Silva
8e43d830f3 Bug 783043 - Backed out changeset 29bc4fa125d9 (commit message). r=me 2014-06-21 19:51:07 +02:00
Cgg
d2892f8176 From d5e66ff9f47b4bbd59808c75ede6e30ad35a5cd4 Mon Sep 17 00:00:00 2001
Bug 783043 - Restore original image factory after paint operations. r=nical
---
 gfx/layers/ImageContainer.h          |    5 +++++
 gfx/layers/basic/BasicImageLayer.cpp |    7 +++++++
 2 files changed, 12 insertions(+)
2014-06-21 14:32:30 +02:00
Jeff Gilbert
bde621b73d Bug 1000640 - Use new StreamTextureClient/Host with OMTC. - r=mattwoodrow 2014-06-18 17:04:06 -07:00
Jeff Gilbert
3d1f5ae620 Bug 1000640 - Death to whitespace. - r=mattwoodrow 2014-06-18 17:04:05 -07:00
Nicolas Silva
293ecd5541 Bug 1014355 - Fix ownership issue in X11TextureClient. r=cwiiis 2014-06-18 19:11:12 +02:00
Nicolas Silva
114ff5488a Bug 1023350 - Rename TextureClient::GetAsDrawTarget into TextureClient::BorrowDrawTarget and fix TextureClientX11. r=bjacob 2014-06-11 14:57:58 -04:00
Ed Morley
fafda556fb Backed out changeset 11bb536cdede (bug 1000640) 2014-06-11 17:07:17 +01:00
Ed Morley
9f7b529e36 Backed out changeset c4681bf6680c (bug 1000640) 2014-06-11 17:07:10 +01:00
Jeff Gilbert
b08b8a5c86 Bug 1000640 - Use new StreamTextureClient/Host with OMTC. - r=mattwoodrow 2014-06-04 15:20:26 -07:00
Jeff Gilbert
d800b22456 Bug 1000640 - Death to whitespace. - r=mattwoodrow 2014-06-04 15:20:25 -07:00
Chris Lord
185e732d7d Bug 1011572 - Only do platform-sync on layer transactions when !IsSameProcess. r=nical
There's no need to do platform syncing when the compositor is in the same
process as the content thread, as they'll share a connection to the display
server.
2014-06-11 14:52:20 +01:00
Wes Kocher
4faef70ed0 Backed out changeset 9d1dd5a9be4f (bug 1000640) 2014-06-04 18:27:41 -07:00
Wes Kocher
4fe99a4e72 Backed out changeset 3a764e34c366 (bug 1000640) 2014-06-04 18:27:22 -07:00