Commit Graph

147 Commits

Author SHA1 Message Date
Jamie Nicol
18f5f7db34 Bug 1311642 - Do partial texture uploads on mobile. r=nical
We were always uploading the entire texture region, but still by using
glTexSubImage2D. In most cases it should be quicker to use
glTexSubImage2D on the updated region only. And where that function has
problems we should avoid it by making CanUploadSubTextures return false
so that glTexImage2D is used instead.

MozReview-Commit-ID: BrobWEPJ82M

--HG--
extra : rebase_source : 986642a1d7bfe2bcb0cc12dc8e41c17ac77abc1d
2016-10-20 18:24:12 +01:00
Nicholas Nethercote
b71747b2ac Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.

--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Jonathan Watt
03036022ec Bug 1277862, part 2 - Rename Moz2D's Filter to SamplingFilter in the rest of gfx/. r=Bas 2016-05-25 17:01:18 +01:00
Nicolas Silva
1d7c8451c8 Bug 1272600 - Part 3 - Move the ReadUnlock logic from compositable to texture. r=sotaro 2016-06-02 11:00:21 +02:00
Nicolas Silva
0a313355f8 Bug 1272600 - Part 2 - Store TextureReadLock into TextureClient/Host. r=sotaro 2016-06-02 11:00:17 +02:00
Nicolas Silva
e81b585b53 Bug 1272600 - Part 1 - Preliminary cleanups for the ReadLock patch queue. r=sotaro 2016-06-02 11:00:12 +02:00
Jeff Muizelaar
7288d777c9 Bug 1272778. Use IntRects for clip rects instead of Rects. r=mstange
Previously, we took an IntRect converted to Rect and then later wanted
ints in the backend. This avoids all of that.
2016-05-13 19:58:43 -04:00
Wes Kocher
69ee17e2fb Backed out changeset b15136f926ca (bug 1272778) for build bustage 2016-05-13 16:05:12 -07:00
Jeff Muizelaar
4ed215c5a2 Bug 1272778. Use IntRects for clip rects instead of Rects. r=mstange
Previously, we took an IntRect converted to Rect and then later wanted
ints in the backend. This avoids all of that.
2016-05-13 18:51:09 -04:00
Botond Ballo
80791b18a4 Bug 1267470 - Move more fields from FrameMetrics to ScrollMetadata. r=kats
MozReview-Commit-ID: zxtt1NNcDe

--HG--
extra : rebase_source : 65cdc94615ccbb51901e8c4ac086987ff2183719
2016-04-27 16:06:34 -04:00
James Willcox
94ec972fe7 Bug 1178376 - Optionally fade in new progressively painted tiles r=nical 2016-04-26 09:49:12 -05:00
Jeff Muizelaar
b376008551 Bug 1265960 - Remove gfxReusable* r=Bas
These aren't used anymore.
2016-04-20 11:39:15 -04:00
Edwin Flores
54fb15d59f Bug 1224199 - Remove some unused code in TiledLayerBufferComposite - r=nical 2016-03-07 11:51:12 +00:00
Nicolas Silva
60f1ac8846 Bug 1250873 - Rename HasInternalBuffer into HasIntermediateBuffer in layers. r=sotaro 2016-02-25 14:15:58 +01:00
Nicholas Nethercote
ab52b9a0ea Bug 1239864 (part 7) - Use the new rect iterators in gfx/. r=nical.
--HG--
extra : rebase_source : 27d77656d578deefff0860184346ff962e32762f
2016-01-18 17:20:58 -08:00
JerryShih
66c7ddec13 Bug 1215050 - Make layerscope support TiledPaintedLayer when using HWC. r=mattwoodrow, r=cjku
--HG--
extra : rebase_source : 3a606457d9c7cd630b6c9ab38941e2619b03943e
2015-10-15 06:03:00 -04:00
Nathan Froyd
01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd
583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Botond Ballo
e9f06a158c Bug 1208661 - Support dumping client-side layer textures without compression. r=BenWa
Compression is used by the profiler, but we need uncompressed textures for the
browser to be able to render them when we include them in the HTML paint dump.

--HG--
extra : rebase_source : 0929ccdc87e9f6643777360571422d904a9e327c
extra : source : ff03d3963ff87cfeac5ebaac1a004d3ebed047e3
2015-09-28 18:51:37 -04:00
Nicholas Nethercote
ff7df9ad79 Bug 1208283 (part 4) - Change FrameMetrics::mBackgroundColor from gfxRGBA to gfx::Color. r=jwatt.
This removes some ToColor() calls.

--HG--
extra : rebase_source : 05ee3e5aaa784e12c15fa42845864eacec45271f
2015-09-24 18:17:45 -07:00
Morris Tseng
ab4cf2941e Bug 1197713 - Add missing gfxPrefs.h include to TiledContentHost.cpp. r=nical 2015-08-24 01:40:00 -04:00
Matt Woodrow
13b68d924b Bug 1180326 - Part 2: Add support for variable tile sizes. r=jrmuizel
--HG--
extra : rebase_source : 3bc281bba2ddaa536df07adaf047be6e21676b00
2015-07-29 12:01:21 -04:00
Nicolas Silva
7575034bb7 Bug 1186208 - Fix crash when tiling is enabled on linux. r=mattwoodrow 2015-07-22 16:06:02 +02:00
Matt Woodrow
ac43f32053 Bug 1179987 - Remove painted region from SurfaceDescriptorTiles since it isn't used any more. r=nical
--HG--
extra : rebase_source : 5a50e5bee9f2402cade693ee4deced6a0b5831a9
2015-07-15 13:36:12 -04:00
Matt Woodrow
929531a354 Bug 1179987 - Make tiled TextureSource recycling based on pointer comparisons rather than trying to do it geometrically. r=nical
--HG--
extra : rebase_source : 47599d8f7e1b80157e3faab35ff8b3a35913e042
2015-07-15 13:34:35 -04:00
Matt Woodrow
733a253b4d Bug 1179987 - Simplify unlocking of tiled texture hosts. r=nical
--HG--
extra : rebase_source : 87506a5a809cf3381f9da7228ac2ccf3a2bb659f
2015-07-15 13:33:11 -04:00
Birunthan Mohanathas
a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Robert O'Callahan
68954a66d8 Bug 1143575. Route ImageCompositeNotifications to ImageContainers. r=nical
For frame statistics to work properly, we have to notify an ImageContainer
when it has been composited. This requires a few changes, which have
been lumped together in this patch:
-- Create PImageContainer and ImageContainerParent/ImageContainerChild.
-- Add mFrameID and mProducerID everywhere we're passing around images.
-- Route composition notifications from the compositor back to
ImageContainerChild.

--HG--
extra : commitid : 7atVkOgdEhG
extra : rebase_source : caaba6a708ed267368df44609fb047abde9c3ca1
2015-07-06 15:02:26 +12:00
Nicolas Silva
e4dff52f73 Bug 1170189 - fix a comment in the tiling code. r=BenWa 2015-07-01 13:51:07 +02:00
Nicolas Silva
6388e4a436 Bug 1170189 - Simplify TiledContentHost's render loop. r=BenWa 2015-06-10 17:59:19 +02:00
Nicolas Silva
49ec8aec24 Bug 1170189 - Use TilesPlacement to handle tile coordinates conversion. r=BenWa 2015-06-10 17:56:34 +02:00
Nicolas Silva
e7216099d2 Bug 1170189 - Fix tiling crash on Linux. r=jrmuizel 2015-06-10 17:56:23 +02:00
Amanda Sambath
376d6d03c3 Bug 1158120 - Replace nsIntSize by mozilla::gfx::IntSize in gfx/layers. r=nical 2015-06-03 13:45:24 +02:00
Nicolas Silva
c83083be72 Bug 1169339 - Fix incorrect tile storage order in TiledContentHost. r=jrmuizel 2015-06-02 12:13:14 +02:00
Kearwood (Kip) Gilbert
e25ede39ea Bug 766345 - Part 1 - Implement DEAA Antialiasing for transformed layers (v5 Patch). r=vladimir, r=djg 2014-12-17 16:28:45 -08:00
Amanda Sambath
e5ab8210f6 Bug 1158120 - Edit include and comments that contained gfxIntSize and nsIntSize. r=nical 2015-05-29 17:01:46 +02:00
CJKu
ea94c63322 Bug 1168015 - Dump source image from graphic buffer directly on B2G. r=kamidphish, r=hshih
--HG--
extra : rebase_source : e511b3caa7c904e0e0bd274f8dcf0e54274f66e8
extra : histedit_source : 81d22bf1ccbbabfe4868f9e889e3ce82b7d86107
2015-05-28 02:30:00 -04:00
Nicolas Silva
82d4c31667 Bug 1150549 - Simplify TiledContentHost. r=jrmuizel 2015-05-22 13:38:13 +02:00
Ryan VanderMeulen
6b55a23433 Backed out changesets 4b6aa5c0a1bf and fdf38a41d92b (bug 1150549) for Mulet crashes.
CLOSED TREE
2015-05-25 14:05:05 -04:00
Nicolas Silva
17c3851bc7 Bug 1150549 - Simplify TiledContentHost. r=jrmuizel 2015-05-22 13:38:13 +02:00
Ryan VanderMeulen
4ba8667b9c Backed out 2 changesets (bug 1150549) for OSX asserts.
Backed out changeset ef2faa9a0845 (bug 1150549)
Backed out changeset b35c88257a9c (bug 1150549)

CLOSED TREE
2015-05-22 10:28:52 -04:00
Nicolas Silva
f15ae7d768 Bug 1150549 - Simplify TiledContentHost. r=jrmuizel 2015-05-22 13:38:13 +02:00
Nicolas Silva
cfff5e52c5 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Ethan Lin
b8ca526d2a Bug 1146214 - Remove unused set fence functions. r=nical 2015-04-10 02:12:00 +02:00
Nicolas Silva
da6cace77d Bug 1147894 - Only use non-null compositors with TextureHost::SetCompositor. r=sotaro 2015-03-27 11:16:18 +01:00
Botond Ballo
cda50e28d3 Bug 1036967 - Use ScaleFactors2D instead of ScaleFactor where appropriate in APZ and surrounding code. r=kats
--HG--
extra : rebase_source : bbdd433260c2e5244602275aa8516723f87d5740
extra : source : a2dbf7ec87c50f35a089470e39d6b4b448992e3d
2015-03-06 13:54:10 -05:00
Markus Stange
6cacad51ee Bug 1132626 - Indicate component alpha on layer borders of tiled layers + tiles. r=bgirard 2015-02-12 16:02:31 -05:00
Carsten "Tomcat" Book
3dec09c7a1 Backed out changeset 6952d9fe4f36 (bug 1129871) for causing R14/R15 Test failures 2015-02-17 14:36:42 +01:00
Nicolas Silva
0e7c4b0468 Bug 1129871 - Favor passing tiles by ref rather than copy part 1. r=BenWa 2015-02-14 12:14:54 +01:00
Ryan VanderMeulen
79bed2d741 Backed out changesets b57d930e0ba6 and 6c8a74ba8122 (bug 1129871) for gtest failures.
CLOSED TREE
2015-02-05 13:12:18 -05:00