Commit Graph

28 Commits

Author SHA1 Message Date
Lee Salzman
887cc63486 Bug 1321129 - make nsShmImage stride compatible with XShm. r=karlt
MozReview-Commit-ID: GuiVTPKvAZM
2017-02-21 10:00:52 -05:00
Karl Tomlinson
d8fbb6c880 bug 1316165 ensure xcb_get_input_focus_reply is called to avoid leaking the reply r=lsalzman
MozReview-Commit-ID: JPi0TeKVCB5
2016-11-09 08:56:27 +13:00
Lee Salzman
7ca7867ad5 Bug 1314291 - use unchecked xcb PutImage requests in nsShmImage. r=karlt
MozReview-Commit-ID: 1rxvpTh5EAl
2016-11-03 20:57:08 -04:00
Ryan Hunt
d11d355700 Bug 1289251 - Replace GetDefaultContentBackend in nShmImage to use gfxVar. r=dvander
MozReview-Commit-ID: LYsjgi5FchN
2016-08-15 17:44:33 -07:00
Sebastian Hengst
cb423f63a2 Backed out changeset 2467398cd958 (bug 1289251) for build bustage in WindowSurfaceX11.cpp. r=backout 2016-09-02 10:26:14 +02:00
Ryan Hunt
2d06dbe1dd Bug 1289251 - Replace GetDefaultContentBackend in nShmImage to use gfxVar. r=dvander
MozReview-Commit-ID: LYsjgi5FchN
2016-08-15 17:44:33 -07:00
Ryan Hunt
889bd8ab44 Bug 1294586 - Remove dependency on gfxPlatform from CreateDrawTargetFromData. r=dvander
MozReview-Commit-ID: A355fBJKWP6
2016-08-11 14:54:08 -07:00
Andrew Comminos
292b66f349 Bug 1287666 - Avoid a round trip to the X server in nsShmImage::CreateDrawTarget. r=lsalzman
MozReview-Commit-ID: LpvsntOCMab
2016-07-21 13:41:09 -04:00
Andrew Comminos
a66e6db3f2 Bug 1287463 - Use a separate X display for non-XRender basic composition paths. r=lsalzman
MozReview-Commit-ID: HQn0nTirgBL
2016-07-18 11:49:51 -04:00
Andrew Comminos
1e73a4d7da Bug 1286649 - Port Xlib code in nsShmImage to use XCB. r=lsalzman
MozReview-Commit-ID: DUIv1RQBWW4
2016-07-13 16:28:28 -04:00
Lee Salzman
97f4354650 Bug 1254151 - use B8G8R8X8 for 24 bit depth visuals in nsShmImage with Cairo. r=jrmuizel 2016-03-08 11:18:13 -05:00
Lee Salzman
6c9e223df9 Bug 1251984 - allow gfx.xrender.enabled pref to work for compositing even if content backend is not Cairo. r=jrmuizel 2016-03-01 14:33:53 -05:00
Lee Salzman
e9b3b49e4c Bug 1247935 - Part 2: use shared pixmaps with XShm for nsShmImage. r=jrmuizel 2016-02-27 23:16:57 -05:00
Lee Salzman
f78e0b5b1b Bug 1247935 - Part 1: double-buffer nsShmImage. r=jrmuizel 2016-02-27 23:16:57 -05:00
Lee Salzman
45ad069391 Bug 1249813 - part 1 - revise nsShmImage to allow draw targets anywhere inside its bounds. r=jrmuizel 2016-02-25 14:38:05 -05:00
Lee Salzman
a2c24d8100 Bug 1239152 - skip memset since XShm is already initialized to zero. r=mchang 2016-02-19 16:14:02 -05:00
Lee Salzman
c121698db4 Bug 1245241 - part 4 - move SharedMemorySysV details into nsShmImage. r=nical 2016-02-18 10:56:15 -05:00
Mason Chang
62708349a3 Bug 1239152 Memset RGBX surfaces to opaque white. r=nical 2016-02-17 07:34:37 -08:00
Nicholas Nethercote
8b08d3a33e Bug 1239864 (part 10) - Use the new rect iterators in view/ and widget/. r=roc. 2016-01-18 17:20:59 -08:00
Nicholas Nethercote
06ef418546 Bug 1239864 (part 1) - Add new, nicer rect-iterators for nsRegion and nsIntRegion. r=roc.
This requires renaming the existing nsIntRegion::RectIterator as
nsIntRegion::OldRectIterator to make way for the new nsIntRegion::RectIterator.
This doesn't require many knock-on changes because most existing uses of
that type use the nsIntRegionRectIterator typedef.
2016-01-14 18:36:11 -08:00
Nicholas Nethercote
21fd395339 Bug 1239530 (part 2) - Use LayoutDevice coordinates in {Start,End}RemoteDrawingInRegion() and related functions. r=kats. 2015-12-02 22:29:54 -08:00
Nicholas Nethercote
7f19b68d7f Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas. 2015-10-22 23:01:31 -07:00
Nathan Froyd
4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nicholas Nethercote
0929981996 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
Lee Salzman
b12346a876 Bug 1205045 - remove GTK calls from compositor thread. r=jmuizelaar 2015-09-15 16:46:39 -04:00
Robert O'Callahan
bc92f4d43f Bug 1167786. Restrict bounds of drawn region to the nsShmImage bounds to avoid X errors. r=karlt 2015-07-14 00:03:44 +12:00
Lee Salzman
db27f83933 Bug 1127752 - fixes for using Skia and OMTC with GTK3. r=jrmuizel 2015-05-13 11:54:17 +09:00
Mason Chang
1e35ae2866 Bug 1085696. Part 2 Move widget/shared to /widget. r=roc 2014-10-23 10:16:47 -07:00