Commit Graph

900 Commits

Author SHA1 Message Date
James Willcox
12347a348f Bug 928804 - Always use an up-to-date texture transform when compositing SharedTextureSourceOGL r=nical 2013-11-19 08:41:57 -06:00
Benoit Jacob
012417f2af Bug 938970 - 5/5. Switch gfx/layers to UNIFIED_SOURCES - r=ehsan,mattwoodrow 2013-11-17 21:07:08 -05:00
Benoit Jacob
fbd864db98 Bug 938970 - 4/5. Some gralloc-related tweaks required to build with UNIFIED_SOURCES - r=Bas 2013-11-17 21:06:25 -05:00
Benoit Jacob
e8e6415c11 Bug 938970 - 1/5. Move MacIOSurfaceTexture* classes to separate files, minimize the number of cpp files including MacIOSurface.h - r=mattwoodrow 2013-11-17 21:04:38 -05:00
Benoit Girard
6702bd8431 Bug 936511 - Add layers.dump to dump layer tree. r=bas,nrc 2013-11-17 16:47:40 -05:00
Robert O'Callahan
a9af781aaa Bug 938316. Work around fractional texture resampling issues by switching to NEAREST sampling when we're doing a pixel-aligned compositing operation. r=jrmuizel
--HG--
extra : rebase_source : ec49c8c8993af402a24b57efbaea743d39dcd89c
2013-11-13 23:56:11 +13:00
Robert O'Callahan
b31c87b26b Bug 937987. Don't use lowp for texture coordinates. Only use it for colors. r=bjacob
--HG--
extra : rebase_source : 9dd8bcebb8b8ef3666f4deae1b1c49dc89bc4486
2013-11-13 17:45:19 +13:00
Benoit Jacob
49366dcf8c Bug 937204 - 3/3. Kill GfxInfoThread. Instead, get GL strings from the compositor - r=kats,jrmuizel 2013-11-15 11:28:43 -05:00
Jeff Muizelaar
9344e3053c Bug 929471. Make CGLTexImageIOSurface2D take a CGLContextObj instead of a NSOpenGLContext. r=bgirard 2013-11-07 22:53:54 -05:00
Matt Woodrow
af9108eea2 Bug 35380 - Part 5: Remove aOffset from everywhere. r=nrc 2013-11-07 22:53:08 +13:00
Matt Woodrow
c5ad2001e3 Bug 935380 - Part 4: Make the Compositors use the RenderTarget's origin instead of aOffset. r=nrc 2013-11-07 22:53:08 +13:00
Matt Woodrow
8cd4853004 Bug 935380 - Part 3: Make CompositingRenderTarget store it's origin. r=nrc 2013-11-07 22:53:08 +13:00
Matt Woodrow
73c776bcd2 Bug 935380 - Part 2: Pass the actual rect that the RenderTarget represents as the first parameter to CreateRenderTarget. r=nrc 2013-11-07 22:53:07 +13:00
Matt Woodrow
6ed4f9ac18 Bug 935380 - Part 1: Remove INIT_MODE_COPY since it was invalid for callers to use it. r=nrc 2013-11-07 22:53:07 +13:00
Matt Woodrow
61dcbad0a4 Bug 934860 - Move paint region clipping into DrawThebesLayer. r=roc 2013-11-07 08:10:50 +13:00
Ed Morley
aa914d52d6 Backed out changeset f24ee0606ea6 (bug 926128) for reftest failures on OS X & crashes on B2G on a CLOSED TREE 2013-11-01 15:51:32 +00:00
Andreas Gal
4309023622 Bug 926128 - Use a single configurable shader in OpenGL layers backend. r=vlad, r=nical 2013-11-01 09:29:20 -04:00
Matt Woodrow
a2ff3e49e2 Bug 887791 - Add a TextureHost implementation for MacIOSurface. r=nical 2013-11-01 14:54:14 +13:00
Matt Woodrow
d5d855efb3 Bug 887791 - Add a TextureClient implementation for MacIOSurface. r=nical 2013-11-01 14:54:14 +13:00
Ms2ger
7d21e3cacb Bug 923249 - Remove some prtypes use in gfx/; r=roc 2013-10-20 09:25:20 +02:00
Sotaro Ikeda
b019369717 Bug 925381 - Fix mpeg4 video seek failure. r=nical, r=doublec 2013-10-17 11:09:15 -04:00
Andreas Gal
cb4f904e5b Bug 923409 - Draw FPS counter with a single GL call and eliminate last use of Copy2D program (r=BenWa). 2013-10-13 09:10:13 -07:00
Markus Stange
5af52e00b8 Bug 923650 - Restore scissor rects in CompositorOGL more diligently. r=mattwoodrow
--HG--
extra : rebase_source : 5a3cccbd38b18aaa8536382ff744a871646ee786
2013-10-11 10:29:35 -04:00
Nicolas Silva
af76a5c9fe Bug 923917 - Properly set the y-flip flag in SharedTextureClientOGL. r=Bas 2013-10-09 18:20:57 -07:00
Nicholas Cameron
24e0e87f57 Bug 854873. Keep scissor rect enabled. r=kats,nical 2013-10-05 01:03:09 +13:00
Nicolas Silva
0eee47d7c7 Bug 916118 - Simplify the TextureClient deallocation protocol. r=nrc 2013-10-02 13:52:04 -07:00
Nicolas Silva
1df67b87cd Bug 922202 - Make PlanarYCbCrImage::Data forward-declarable and remove some header includes. r=bjacob 2013-10-01 17:57:50 -07:00
Ehsan Akhgari
18ef76b0d7 Bug 921753 - Part 2: Move GraphicsFilters outside of gfxPattern.h so that we won't need to #include that header everywhere GraphicsFilter is needed; r=roc
This patch reduces the number of files that transitively #include
gfx/2d.h from 1582 to 1362.
2013-10-01 17:01:19 -04:00
Nicolas Silva
76ede3ac9e Bug 916116 - Rename CompositableQuirks. r=bjacob 2013-09-30 14:14:38 +02:00
Matt Woodrow
ebc311f303 Bug 921233 - Enabled azure for main-thread drawing on OSX. r=jrmuizel 2013-09-30 12:17:35 +13:00
Ehsan Akhgari
cca7c5a263 Forward declare gfxMatrix as a struct, no bug 2013-09-28 18:20:45 -04:00
Ryan VanderMeulen
a4a2dd7d38 Backed out changeset a77f7d610829 (bug 821474) for leaks.
CLOSED TREE
2013-09-27 16:12:28 -04:00
Nicolas Silva
906d8861c1 Bug 821474 - Add memory reporting for Shmem and Memory texture clients. r=BenWa 2013-09-27 20:17:15 +02:00
Nicholas Cameron
a8a95dc820 Bug 882113. Azurification of compositor classes. r=mattwoodrow 2013-09-27 12:37:19 +12:00
Nicolas Silva
5088531545 Bug 916118 - Backed out changeset bafb8bf3b279 on a CLOSED TREE 2013-09-26 19:06:12 +02:00
Nicolas Silva
00c40365a2 Bug 916118 - Simplify the deallocation flags in TextureClient/Host. r=nrc 2013-09-26 18:00:23 +02:00
Robert O'Callahan
d3c8187161 Bug 914426. Don't try to dump DeprecatedTextureHost contents unless HTML tree dumping is enabled. Also, be lenient about null values and unknown formats. r=nrc
--HG--
extra : rebase_source : bc7aff0dacdea4a7c71bdb659774fd96a25fa529
2013-09-09 17:08:42 -07:00
Benoit Jacob
5a16c8030b Bug 913872 - Take nested enums out of gfxASurface - 3/3 : remove the now-useless inclusions of gfxASurface.h - r=jrmuizel 2013-09-24 16:45:14 -04:00
Benoit Jacob
0f90257361 Bug 913872 - Take nested enums out of gfxASurface - 1/3 : automatic changes - r=jrmuizel
Generated by these regexes:

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(ImageFormat\|SurfaceType\|ContentType\|MemoryLocation\)[0-9A-Za-z_]*\)/gfx\1/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(CONTENT_\|MEMORY_\)[0-9A-Za-z_]*\)/GFX_\1/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(CONTENT_COLOR\|CONTENT_ALPHA\|CONTENT_COLOR_ALPHA\|CONTENT_SENTINEL\|MEMORY_IN_PROCESS_HEAP\|MEMORY_IN_PROCESS_NONHEAP\|MEMORY_OUT_OF_PROCESS\)\($\|[^A-Za-z0-9_]\)/\1GFX_\2\3/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(ImageFormatARGB32\|ImageFormatRGB24\|ImageFormatA8\|ImageFormatA1\|ImageFormatRGB16_565\|ImageFormatUnknown\|SurfaceTypeImage\|SurfaceTypePDF\|SurfaceTypePS\|SurfaceTypeXlib\|SurfaceTypeXcb\|SurfaceTypeGlitz\|SurfaceTypeQuartz\|SurfaceTypeWin32\|SurfaceTypeBeOS\|SurfaceTypeDirectFB\|SurfaceTypeSVG\|SurfaceTypeOS2\|SurfaceTypeWin32Printing\|SurfaceTypeQuartzImage\|SurfaceTypeScript\|SurfaceTypeQPainter\|SurfaceTypeRecording\|SurfaceTypeVG\|SurfaceTypeGL\|SurfaceTypeDRM\|SurfaceTypeTee\|SurfaceTypeXML\|SurfaceTypeSkia\|SurfaceTypeSubsurface\|SurfaceTypeD2D\|SurfaceTypeMax\)\($\|[^A-Za-z0-9_]\)/\1gfx\2\3/g'
2013-09-24 16:45:13 -04:00
Benoit Girard
69db6d5c6f Bug 919712 - Add labels in IPC message wait. r=benjamin 2013-09-24 11:40:01 -04:00
Benoit Jacob
6a40be8e8c Bug 900020 - fix compilation - no review, bustage 2013-09-24 08:21:55 -04:00
Benoit Jacob
9281a899f8 Bug 900020 - Renew the surface when we hit an incomplete default framebuffer in the compositor - r=nrc 2013-09-24 07:54:07 -04:00
Nicolas Silva
d5cca18c31 Bug 918078 - Do not require locking in TextureHost::PrintInfo. r=BenWa 2013-09-23 13:28:40 +02:00
Benoit Jacob
24afddf9d1 Bug 915869 - Let the GrallocBufferActor keep an _array_ of backrefs to TextureHosts referencing it - r=nical 2013-09-17 14:48:08 -04:00
Sotaro Ikeda
6b5b5f8840 Bug 916264 - Delete texture to unbound from texture. r=nical 2013-09-17 11:10:25 -04:00
Ryan VanderMeulen
5d62e49ecf Backed out changeset 41f37e48b6e7 (bug 916264) for landing with the wrong bug # in the commit message.
Landed as bug 909746.
2013-09-17 14:28:29 -04:00
Sotaro Ikeda
dc9f316c9c Bug 909746 - Delete texture to unbound from texture. r=nical 2013-09-17 11:10:25 -04:00
Nicolas Silva
e9c47e2e9e Bug 916116 - Avoid some code duplication in Gralloc textures. r=sotaro 2013-09-17 15:29:19 +02:00
Nicolas Silva
9919c6e41f Bug 916116 - Remove useless #if 1. r=bjacob 2013-09-16 19:04:36 +02:00
Sotaro Ikeda
4bf6f5d219 Bug 912134 - allocate texture per CompositableHost. r=jmuizelaar,bjacob
The fundamental change of approach in this patch is that now the temporary
texture is per-compositable.

Originally, the temporary texture was per-TextureHost. That was too many
temporary textures.  With Nical's work in bug 875211, that switched to having a
temporary texture per compositor only. That's what turned out to be too few.
Now we have one per compositable which is fewer than one per TextureHost,
because e.g. a ContentHost, which is a single Compositable, may have 2
TextureHosts to implement double-buffering.
2013-09-12 22:39:26 -04:00
Ryan VanderMeulen
0c7227eaf3 Merge m-c to b2g-inbound. 2013-09-12 20:41:54 -04:00
Nicolas Silva
f2973f89d7 Bug 913821 - Conservatively ensure that TextureClients/Hosts are removed at the end of a video. r=sotaro 2013-09-12 16:50:35 +02:00
Nicolas Silva
d196d86d68 Bug 901224 - Postpone deallocation of shared data to the end of the next transaction. r=sotaro 2013-09-12 16:50:28 +02:00
Ed Morley
89f8fd063e Merge mozilla-central and b2g-inbound 2013-09-12 12:09:58 +01:00
Sotaro Ikeda
81b1a4b5b1 Bug 871364 - Support GonkNativeWindow on gonk-JB r=jmuizelaar,mwu,doublec,mikeh,glandium 2013-09-12 11:40:26 +02:00
Matt Woodrow
a13d1d68bd Bug 914505 - Make sure that ThebesLayerBuffer::SupportsAzureContent is correct for the first frame. r=nrc 2013-09-12 16:53:46 +12:00
Benoit Jacob
77fe55cbfe Bug 912725 - Do the registration of the TextureHost with the mBuffer exactly when we overwrite *mBuffer, so that in particular we don't do a bogus registration in the single-buffered case - r=nical 2013-09-11 13:39:04 -04:00
Benoit Girard
dd193089ea Bug 914656 - Annotate the compositor thread for profiling. r=jrmuizel 2013-09-10 15:56:49 -04:00
Matt Woodrow
fde62e307a Bug 912173 - Always AddRef and Release the GLContext when sharing a SurfaceStream to avoid mismatches. r=nrc 2013-09-09 14:35:20 +12:00
Nicholas Cameron
cca4ba2d92 Don't include mozilla-config.h in gfx.layers. No bug. r=me 2013-09-09 08:55:48 +12:00
Benoit Jacob
5479e2b22e Bug 913603 - Avoid needlessly including nsRect.h - r=jrmuizel 2013-09-06 22:15:49 -04:00
Benoit Jacob
2a47884307 Bug 912974 - Split two classes out of GLContext.h, and remove many #includes in GLContext.h - r=jrmuizel 2013-09-06 22:13:37 -04:00
Benoit Jacob
ef4844e56a Bug 912042 - Remove the last occurences of #include "GLContext.h" in remaining headers - r=jrmuizel 2013-09-06 22:11:41 -04:00
Ryan VanderMeulen
982559c42b Merge m-c to inbound. 2013-09-11 22:20:33 -04:00
Andreas Gal
eb0bc54bee Follow-up fix for bug 915342 (pushed the original patch without fixing a nit). 2013-09-12 00:07:29 +02:00
Andreas Gal
c3c7cba2c5 Display fill ratio when showing FPS counter (bug 915342, r=bgirard). 2013-09-11 23:57:23 +02:00
Nicolas Silva
a8cd16012b Bug 912040 - Make sure deallocating shared texture data doesn't race with TextureClient access. r=sotaro 2013-09-06 11:04:50 +02:00
Benoit Jacob
94f74c705d Bug 912042 - Avoid including GLContext.h in headers that don't need it - r=jrmuizel 2013-09-04 08:14:52 -04:00
Nicholas Cameron
b6f3b6ba96 Bug 786412. Conslidate container layer methods. r=mattwoodrow 2013-09-02 10:19:18 +12:00
Sotaro Ikeda
2b856354d2 Bug 910928 - Fix build and class function override for new gralloc textures. r=nical 2013-08-30 10:24:05 -04:00
Nicolas Silva
17e512124b Bug 907745 - Gralloc implementaion of the new texture client/host. r=pchang, bjacob 2013-08-09 17:23:46 +02:00
Nicholas Nethercote
56844b8076 Bug 831193 (part 10) - Don't use NS_MEMORY_REPORTER_IMPLEMENT in parts of gfx/. r=bjacob.
--HG--
extra : rebase_source : 433b12748c8562b384a02fbee6d98e3bc991802d
2013-01-17 16:45:11 -08:00
Matt Woodrow
d1463f4b25 Bug 907792 - Use SharedTextureClientOG for SharedTextureImage. r=nical 2013-08-28 08:16:54 +12:00
Ryan VanderMeulen
76ad621e29 Backed out changeset a255d2d2b67f (bug 907792) for OSX mochitest asserts on a CLOSED TREE. 2013-08-27 13:07:33 -04:00
Matt Woodrow
711b716949 Bug 907792 - Use SharedTextureClientOGL when needed. r=nical 2013-08-27 11:50:24 +12:00
Andreas Gal
2006d0a939 Bug 909113 - Make FPS counter code a bit more readable. r=jgilbert 2013-08-27 09:01:45 -04:00
Gabriele Svelto
619cc7ccf1 Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan 2013-08-24 08:12:51 +02:00
Ms2ger
b5df99e7e3 Revert this CLOSED TREE to changeset 4d3e221584a0. 2013-08-24 13:31:48 +02:00
Gabriele Svelto
b6e8140bfc Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan 2013-08-24 08:12:51 +02:00
Andreas Gal
e48e7f4315 Bug 905589 - Use VBO instead of client side rendering. r=bas 2013-08-22 15:04:55 -04:00
Jan Beich
de6b591a26 Bug 907837 - Fix IWYU false positive to unbreak non-SPS build. r=nrc 2013-08-22 19:11:47 +12:00
Nicholas Cameron
b5c77aec19 Bug 903816. Include-what-you-use for gfx/layers. r=roc 2013-08-12 11:17:23 +12:00
Matt Woodrow
4d9a2a8167 Bug 904620 - Always send a transaction when we get a WebGL update to ensure that we get a composite. r=nrc 2013-08-20 11:39:55 +12:00
Nicolas Silva
21b12f43ab Bug 858914 - Various TextureClient/Host cleanups. r=nrc. 2013-08-08 14:53:12 +02:00
Adrian May
a697186d75 Bug 877115 - Moz2Dify GLContext and GLTextureImage. r=nical 2013-08-13 15:44:53 +02:00
Phil Ringnalda
26893fc5ad Back out d393cfeb5dbf:9f82224bb8a3 (bug 903816) for Android reftest failures
CLOSED TREE
2013-08-11 19:21:17 -07:00
Nicholas Cameron
788218a793 Bug 903816. Include-what-you-use for gfx/layers. r=roc 2013-08-12 11:17:23 +12:00
Nicholas Cameron
1bc1f9224a Bug 901722. Fix up component alpha/sub-pixel AA enablement. r=mattwoodrow 2013-08-09 11:30:19 +12:00
Edwin Flores
6318f92344 Bug 892934 - Pass RGB image format into CreateTextureImage r=mattwoodrow 2013-08-08 10:38:21 +12:00
Milan Sreckovic
536093c3dc Bug 900729: Make TextureFlags constant names (UseNearestFilter, NeedsYFlip, AllowRepeat, NewTile, ComponentAlpha) all caps in CompositorTypes.h and prefix them with TEXTURE_ for consistency and uniqueness. r=nsilva. 2013-08-06 13:36:35 -04:00
Nicolas Silva
ee0736e8c9 Bug 900793 - Rename TextureSourceOGL::ReleaseTexture into UnbindTexture. r=nrc 2013-08-05 12:15:21 +02:00
Nicholas Cameron
dd58f82344 Bug 874721, bug 899435. D3D9 compositor and windows OMTC window resizing. r=Bas, mattwoodrow 2013-08-04 19:46:17 +12:00
Matt Woodrow
e49181d0be Bug 900133 - Recreate the TextureClient for an ImageClient if the image size changes. r=nical 2013-08-03 13:29:18 -04:00
Wes Kocher
f304825fbc Backed out 6 changesets (bug 900133, bug 881634, bug 893302) for build bustage
Backed out changeset 49632bc14e27 (bug 900133)
Backed out changeset 036780fccc89 (bug 900133)
Backed out changeset b8db58f5e209 (bug 893302)
Backed out changeset 67c3e4204e44 (bug 893302)
Backed out changeset a857a4246dd9 (bug 900133)
Backed out changeset e0e2e27af6c1 (bug 881634)
2013-08-02 20:35:39 -07:00
Matt Woodrow
d5af0a03b9 Bug 900133 - Recreate the TextureClient for an ImageClient if the image size changes. r=nical 2013-08-02 22:59:26 -04:00
Matt Woodrow
77d440cc12 Bug 900133 - Support MaskLayers that are backed by a NewTextureHost. r=nical
--HG--
extra : rebase_source : 8494dd32a837fc1ca44ed7c838e4def84f3292e1
2013-08-01 21:12:16 -04:00
Matt Woodrow
eb3dede292 Bug 898129 - Only set the texture transform for shaders where it will be used. r=nrc
--HG--
extra : rebase_source : 6f636720a53dac7d0842caf41dffb457cecd379c
2013-08-01 21:12:15 -04:00
Matt Woodrow
c2432550aa Bug 900188 - Correctly treat WebGL as being single buffered when we share it across ipdl. r=nrc
--HG--
extra : rebase_source : 92be3f39d6e07d1e5f5de0a484a0c94eca93a97c
2013-08-01 21:12:15 -04:00
Mike Hommey
8cdcebc8bc Backout changesets 8b67eb363e5c (bug 893824), 2f603fe51b71, d623d68577ec, 12adb590b761, e08e42b8435b (bug 900133) and c8230843d507 (bug 898129) for crashtest bustage on a CLOSED TREE 2013-08-02 15:35:25 +09:00
Ryan VanderMeulen
8fcc29f850 Backed out changeset 9a5f4bbd4fcb (bug 900188) to see if it fixes the OSX crashtest and reftest asserts.
CLOSED TREE
2013-08-02 00:45:09 -04:00