Commit Graph

550 Commits

Author SHA1 Message Date
Matt Brubeck
e95835d8ba Back out 4114c654f5d0 (bug 745177) because of Mac build errors 2012-04-24 20:18:50 -07:00
Chris Lord
8000a2a211 Bug 745177 - Retain and re-use uploaded GL tiles. r=ajuma
Rather than discarding uploaded tiles once they fall outside of the valid
region, shuffle them off into a separate tile-store with all the metadata they
need to render them, and render them in the areas that our current valid
region doesn't cover in TiledThebesLayerOGL::RenderLayer.
2012-04-24 22:48:33 -04:00
Benoit Girard
0a221c25a9 Bug 739679 - Part 6: Fix unlocking gfxReusableSurface. r=pcwalton 2012-04-23 20:08:18 -04:00
Benoit Girard
6c1b206cd4 Bug 739679 - Part 4: TiledLayerBufferOGL. r=mwoodrow,roc 2012-04-16 19:04:24 -04:00
Ali Juma
ed64e52133 Bug 733596 - Tell the compositor about the new surface size on surface change. r=bgirard a=blocking-fennec 2012-04-20 11:46:30 -04:00
George Wright
3deefb5e3c Bug 744543 - LayerManagerOGL doesn't build on Linux/clang. r=bjacob 2012-04-11 15:50:45 -04:00
Ali Juma
65e2dc5b45 Bug 741319 - Delete textures using the same context used to create them, on the thread that owns that context. r=joe 2012-04-10 16:20:02 -04:00
Benoit Jacob
d9adfa7a3f Bug 686735 - 2/2 - Implement no-gfx-driver-workarounds mode - r=joe
Part 2: In no-workarounds mode, also don't work around NPOT FBO bug
2012-04-10 11:49:32 -04:00
Benoit Jacob
3ec34c8a72 Bug 741730 - Remove USE_GLES2 - r=romaxa 2012-04-10 11:49:21 -04:00
Oleg Romashin
c633f71c80 Bug 739095 - Offscreen context without offscreen texture does not need YFlip. r=jgilbert 2012-03-26 12:56:10 -04:00
Jeff Gilbert
c962e216ff Bug 735378 - Cache temporary composite surfaces - r=bgirard 2012-03-25 12:50:26 -07:00
Matt Brubeck
2bbc3d0175 Back out 636349fa2e09 because of robocop failures 2012-03-22 19:07:42 -07:00
Jeff Gilbert
9d1519111f Bug 735378 - Cache temporary composite surfaces - r=bgirard 2012-03-22 15:04:25 -07:00
Chris Jones
71e9ddbde6 Bug 738158, part 2: Set the wrap mode for cairo images. r=ajuma 2012-03-22 01:02:59 -07:00
Chris Jones
9ac0f342f8 Bug 738158, part 1: Remove unnecessary settings from InitTexture(). UploadSurfaceToTexture() and SetFilter/ApplyFilter() do these now. r=ajuma 2012-03-22 01:02:29 -07:00
Chris Jones
ac508d4470 Bug 737071: Remove LayerManagerOGL::glForResources() because it's not needed and causes performance degradtion sometimes. r=Bas 2012-03-21 22:48:41 -07:00
Chris Lord
62043cf721 Bug 736850 - Cancel progressive upload task on buffer destruction. r=bgirard
Make sure to cancel the progressive upload task when destroying the
front-buffer. This also changes the Destroy method to call DestroyFrontbuffer
instead of just assigning nsnull to mBuffer.
2012-03-19 14:38:34 +00:00
Andreas Gal
6d9d726c6a Remove unused and broken tiling code (bug 736716, r=cjones). 2012-03-17 15:22:22 -07:00
Andreas Gal
f8ebf3db54 Backout bug 736716. 2012-03-17 15:20:01 -07:00
Andreas Gal
5a21426f72 Follow-up fix for bug 736716 (fix bad style fix). 2012-03-17 15:07:22 -07:00
Andreas Gal
93f73de1fb Remove unused and broken tiling code (bug 736716, r=cjones). 2012-03-17 15:02:02 -07:00
Benoit Girard
17f6932716 Bug 736743 - Fix LayerManagerOGL Description. r=ajuma 2012-03-17 12:44:45 -04:00
Chris Lord
268c0e7138 Bug 732917 - Upload textures progressively. r=bgirard
When using double-buffering in ShadowThebesLayerOGL, upload texture data
progressively.
2012-03-17 12:07:02 +00:00
Chris Lord
5671285300 Bug 732917 - Upload to texture on demand. r=bgirard,mattwoodrow
Add functions to do progressive texture upload and only upload to texture on
draw-demand. This is a building block towards asynchronous texture upload.
2012-03-17 12:07:02 +00:00
Chris Lord
814c8c8c68 Bug 732917 - Enable double-buffering on Android. r=ajuma
Add support for double-buffering to ThebesLayerOGL, and enable it on Android.
Double-buffering should allow us to more easily implement progressive texture
upload.
2012-03-17 12:07:02 +00:00
Phil Ringnalda
c80d1bb60a Back out 243cd4db5edd and 4175fc853e16 (bug 712716) for OS X 10.6 and 10.7 assertions 2012-03-15 23:21:54 -07:00
Benoit Girard
69465f1b22 Bug 712716 - Add conditional shaders and a Copy2DExternalProgramType for gralloc. r=jrmuizelaar 2012-03-14 15:10:36 -04:00
Benoit Girard
42c404e37f Bug 712716 - Fix AndroidGraphicBuffer resource management. r=snorp,jmuizelaar 2012-03-12 16:28:02 -04:00
Benoit Girard
dc6ea71b7e Merge mc->Maple 2012-03-13 11:05:28 -04:00
Ehsan Akhgari
43f6c7a351 Backout changeset b52bae0250f7 because of test failures 2012-03-12 18:51:17 -04:00
Benoit Girard
8ecdfd895f Bug 712716 - Fix AndroidGraphicBuffer resource management. r=snorp,jmuizelaar 2012-03-12 16:28:02 -04:00
Bas Schouten
dbb9c56a6c Bug 732988 - Part 1: Add ScaleToSize API to ImageLayers. r=roc 2012-03-13 01:41:29 +00:00
Jeff Gilbert
f2bbb8f93e Bug 729702 - Use ReadPixelsIntoImageSurface in CopyToTarget instead of duplicating functionality - r=BenWa 2012-03-12 18:42:02 -07:00
Benoit Girard
0e825779e0 Bug 733184 - Remove more logging from widget. r=pcwalton 2012-03-05 19:58:18 -05:00
Benoit Girard
677ccfe9c3 Bug 733113 - Maple: Remove debug logging. r=ajuma 2012-03-05 16:10:43 -05:00
Benoit Girard
d900d4eab3 Bug 717958 - Always read FPS pref on the main thread with OMTC. r=ajuma 2012-03-05 14:02:22 -05:00
Benoit Girard
997a81e71b Merge latest green changeset from mozilla-central to maple
--HG--
rename : dom/base/nsDOMMemoryReporter.cpp => dom/base/nsWindowMemoryReporter.cpp
rename : dom/base/nsDOMMemoryReporter.h => dom/base/nsWindowMemoryReporter.h
2012-03-05 13:41:15 -05:00
Benoit Girard
73a287f0ea Restore merge changeset 39a3044823b0, regression fixed upstream in mc 2012-03-05 13:09:05 -05:00
Benoit Girard
a4a3883264 Backed out changeset 39a3044823b0 because of bad interaction with maple. 2012-03-02 18:32:46 -05:00
Benoit Girard
7e6f558d70 Merge mc->Maple, resolved conflicts 2012-03-02 14:27:05 -05:00
Joe Drew
419f5ec1a4 Bug 728625 - Add support for vertically flipping textured quads generated with RectTriangles and DecomposeIntoNoRepeatTriangles. r=bjacob,gw280
--HG--
extra : rebase_source : f42bd3c951651339d2ecb1286a6ac5c9e65ddd7d
2012-02-29 14:15:12 -08:00
Kartikaya Gupta
1847cf91b3 Merge m-c again to pick up 75deec1f1a7b 2012-02-28 14:37:26 -05:00
Daniel Holbert
98a7f77a1c Backout 4b46f6eff8f4 (Bug 732988) for linux Cipc orange 2012-03-11 16:43:12 -07:00
Bas Schouten
7630416702 Bug 732988 - Part 1: Add ScaleToSize API to ImageLayers. r=roc 2012-03-11 22:33:22 +00:00
George Wright
fa376f2332 Bug 721489 - Older Adreno 200 drivers intermittently crash when uploading RGB565 textures with glTexImage2D - r=jrmuizel 2012-02-18 21:23:06 -05:00
Kartikaya Gupta
54ec96eba6 Put back some things left out of dougt's merge 2012-02-17 01:36:49 -05:00
Doug Turner
3f133bfdd1 Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Benoit Girard
7980ddb052 Bug 732552 - Remove void return in ColorLayerOGL. r=ajuma 2012-03-02 15:36:30 -05:00
Matt Woodrow
b01db32e07 Bug 725209 - Mark TextureImage as valid when self copying, and correctly mark the region needing to be redrawn. r=joe 2012-02-15 16:03:05 -05:00
Matt Woodrow
131b3ab55f Bug 725209 - Mark TextureImage as valid when self copying, and correctly mark the region needing to be redrawn. r=joe 2012-02-15 22:28:21 +13:00
Benoit Girard
465c0d7898 Make OMTC changes not effect desktop 2012-02-13 17:17:12 -05:00
Benoit Girard
e7dd21c01b Bug 721489 - Backout changeset 0cb6641ab21a for a more desirable fix.
--HG--
extra : rebase_source : b8100a07f626c3cc51e019911a3b023b482d23b9
2012-02-10 15:12:35 -05:00
Ali Juma
1938bda689 Merge heads. 2012-02-10 10:31:31 -05:00
Patrick Walton
8e9cf5b1f7 Add a DrawWindowUnderlay() to match DrawWindowOverlay() 2012-02-09 19:47:50 -08:00
Benoit Girard
6bcb6bfee6 Bug 721489 - Allocate a PoT Shmem for the Adreno. This replaces segfaults by visual artifacts
--HG--
extra : rebase_source : 400e392843cf2d15b941e7e94b736106e6b447e2
2012-02-09 17:52:03 -05:00
Benoit Girard
2fd24c9367 Merge viewport with tip 2012-02-08 20:42:17 -05:00
Benoit Girard
f470edbef2 Merge m-c into maple 2012-02-08 16:43:22 -05:00
Patrick Walton
684cfdccea Remove the blinkenlights in the background 2012-02-07 23:24:58 -08:00
Benoit Jacob
c5a42c7937 Bug 711656 - report force-enabled features in crash reports - r=jrmuizel
Force-enabled features will be reported with a '!' instead of the usual '?' in AppNotes in crash reports.
2012-02-27 16:33:19 -05:00
Ali Juma
220516c4e6 Add ifdefs to fix desktop build.
--HG--
extra : rebase_source : fe51e388ff7dbd95e968cf60af800917801ab911
2012-02-03 21:48:05 -05:00
Bas Schouten
b798e874b1 Bug 651192 - Part 5: Support remote access to ImageContainers. r=roc 2012-02-16 04:26:19 +01:00
Matt Woodrow
72f481f48f Bug 700240 - Print display lists to a file. r=roc,bjacob 2012-03-01 21:26:09 +13:00
Patrick Walton
3e30acd53d Partial removal of tiling, stub callouts 2012-02-02 19:28:22 -08:00
Benoit Girard
71fe29a342 Add debug code, unapply me later 2012-02-02 16:34:23 -05:00
Benoit Girard
a0d8718e27 Fix GetLayerManager logic 2012-02-02 14:16:59 -05:00
Joe Drew
5bfbf586cb Back out 9699edcbcedd (bug 721467) for causing bug 722167. 2012-01-29 19:41:48 -05:00
George Wright
4ea08cd7d0 Bug 721467 - Add an optional codepath (currently enabled only for Adreno 200 GPUs) to only use glTexImage2D for texture uploads as glTexSubImage2D can be slow and/or buggy r=joe,BenWa
--HG--
extra : rebase_source : 0f2903fe23edf3b191ae5dcfa7df6d9066d1d952
2012-01-24 19:44:48 -05:00
Rafael Ávila de Espíndola
0240dfc9e6 Bug 723738 - Remove invalid forward declaration of an objective c interface. r=BenWa. 2012-02-03 01:22:34 +01:00
Chris Jones
c8932ced3b Bug 715232: Don't attempt to CopyTexImage from an RGB framebuffer to an RGBA texture. r=joedrew 2012-01-25 18:05:34 -08:00
Bas Schouten
7244d2b180 Bug 715785: Make ImageContainers independent of LayerManagers. r=roc 2012-02-01 03:18:30 +01:00
Benoit Girard
b36c809b6c Bug 635544 - rename nsIWidget::DrawOver to DrawWindowOverlay. r=roc 2012-01-21 21:01:17 -05:00
Jeff Muizelaar
19d31dec25 Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Benoit Girard
c4e3f022c6 Bug 717958 - Always read FPS pref on the main thread with OMTC. r=ajuma 2012-03-05 14:02:22 -05:00
Matt Brubeck
3aa150e837 Back out 88733ce1bef3 (bug 718440) because of Windows build failure 2012-01-17 15:15:47 -08:00
Jeff Muizelaar
e18b95dabf Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Matt Woodrow
17e3647e65 Bug 715720 - Support DrawTargets in CanvasLayerOGL. r=jrmuizel 2012-01-17 10:55:43 +13:00
Oleg Romashin
7fe49eb13d Bug 715822 - OGL CleanupResources should cleanup Texture resources too. r=mattwoodrow 2012-01-16 00:41:55 -05:00
Chris Jones
dd6350fa5d Bug 716332: Delete temporary fbo. r=joedrew 2012-01-12 16:27:34 -08:00
Krzysztof Kotlenga
86dd043f63 Bug 678940 - remove caching of uniform values. r=joe 2012-01-09 10:57:21 +01:00
Jeff Muizelaar
32255c18e2 Bug 696398. Add an api to analyse frame rate. r=ajuma
This adds a startFrameTimeRecording() and stopFrameTimeRecording()
to DOMWindowUtils. stopFrameTimeRecording() returns an array of frame times in milliseconds.
2012-01-05 17:40:35 -05:00
Jeff Gilbert
746e397ca9 Bug 711649 - Resolve OGL canvas layer in UpdateSurface - r=mattwoodrow 2011-12-19 11:21:56 -08:00
Matt Woodrow
0ff1407cd7 Bug 707563 - Restore the w component in the LayerManager shaders after applying the offset. r=Bas 2011-12-19 10:11:30 +13:00
Jeff Gilbert
e91e311cc8 Bug 705024 - Guarantee GLContexts are resolved properly - r=bjacob 2011-12-16 14:24:46 -08:00
Ali Juma
8efa6b018a Bug 705641 - Add even more output to framebuffer incompleteness abort message. r=jrmuizel 2011-12-16 14:02:03 -05:00
Ali Juma
91a7987250 Bug 705641 - Add more output to framebuffer incompleteness abort message. r=jrmuizel 2011-12-15 13:06:18 -05:00
Robert O'Callahan
02ec6567df Bug 708109. Remove THEBES_INLINE_DECL_THREADSAFE_REFCOUNTING in favour of NS_ version. r=joe 2011-12-15 23:26:42 +13:00
Matt Woodrow
94d6100570 Bug 707563 - Convert vertex vector back into normal coordinate space before applying offset. r=Bas 2011-12-09 16:21:45 +13:00
Ali Juma
ddae3eecb1 Bug 705641 - Add reason for framebuffer incompleteness to abort message. r=jrmuizel 2011-12-02 09:43:58 -05:00
Jeff Gilbert
27a8081556 Bug 706297 - Remove unnecessary glFinish preceeding glReadPixels from LayerManagerOGL - r=bjacob 2011-11-30 17:25:20 -08:00
Oleg Romashin
764e833c1a Bug 618765 - unbind VBO required in order to share GL context with toolkit. r=matt.woodrow 2011-11-20 08:49:48 -05:00
Oleg Romashin
4ed618f111 Bug 618765 - unbind VBO required in order to share GL context with toolkit. r=jrmuizel 2011-11-18 14:01:35 +01:00
Matt Woodrow
ba3ebc26fb Bug 688342 - Make nsCanvasRenderingContext2D support Azure backends other than Direct2D. r=Bas 2011-11-03 08:55:03 +13:00
Ali Juma
b8a8bd086c Bug 696768 - Abort when framebuffer completeness check fails. r=jrmuizel 2011-11-02 09:40:14 -04:00
Matt Woodrow
da408a739b Bug 698212 - Let UploadSurfaceToTexture create the texture for CairoImageOGL. r=BenWa 2011-10-31 14:03:00 +13:00
Benoit Girard
15ac338ecd Bug 698137 - Set texture unit before binding FPS texture. r=ajuma
--HG--
extra : rebase_source : 5ea49b85e0ba0d2b5eabc4477a0e692d0a531faf
2011-10-31 15:04:09 -04:00
Benoit Jacob
8a7cb1453a Bug 697845 - only call glFinish in RenderLayer, not in UpdateSurface - r=mattwoodrow
This could make WebGL a bit faster.
2011-10-29 19:15:52 -04:00
Benoit Girard
c3254938fb Bug 680082 - Add GetMaxTextureImageSize to correct size support for TiledTextureImage. r=matt.woodrow
--HG--
extra : rebase_source : e121a8718fa68e602794957bae278d7351d7d585
2011-10-26 14:36:18 -07:00
Benoit Girard
76c3511501 Bug 680082 - [backout] Add GetMaxTextureImageSize to correct size support for TiledTextureImage. 2011-10-27 10:17:40 -04:00
Benoit Girard
e2c3feec1b Bug 680082 - Add GetMaxTextureImageSize to correct size support for TiledTextureImage. r=matt.woodrow 2011-10-26 14:36:18 -07:00
Oleg Romashin ext:(%2C%20Matt%20Woodrow%20%3Cmwoodrow%40mozilla.com%3E)
888c49fd78 Bug 695406 - Reset IPC double buffers if the ContentType has changed. r=cjones 2011-10-21 14:29:09 +13:00
Marco Bonardo
3b5b6dc0f5 Backout 73dc291f8974 (Bug 695406) to investigate Android Crashtests permaorange 2011-10-21 12:07:32 +02:00
Oleg Romashin ext:(%2C%20Matt%20Woodrow%20%3Cmwoodrow%40mozilla.com%3E)
8689f6028a Bug 695406 - Reset IPC double buffers if the ContentType has changed. r=cjones 2011-10-21 14:29:09 +13:00
Jeff Gilbert
86edb0e7e4 Bug 615976 - Fixes layer compositing with AA on Mac - r=bjacob 2011-10-19 15:09:57 -04:00
Benoit Jacob
20d36842ee Back out Jeff's patches because they lack a Bug number and/or a r= field. Sorry, should have checked that. Re-landing. 2011-10-19 15:31:33 -04:00
Jeff Gilbert
17f1b76695 Fixes layer compositing with AA on Mac 2011-10-19 15:09:57 -04:00
Ehsan Akhgari
92064e6d3f Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Benoit Girard
a3ac1dfb24 Bug 691354 - Restore CanvasLayerOGL::RenderLayer apply filter. r=bustage 2011-10-16 22:31:15 -04:00
Benoit Girard
a8dc3a5bac Bug 691354 - Use NEAREST filter when OGL layers have no 3d transform/scaling. r=jmuizelaar 2011-10-14 13:16:19 -07:00
Jeff Walden
b5e57820bf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Oleg Romashin
ddc349e787 Bug 694140 - With GL layers, panning/zooming causes corruption and wrong colours on Fennec. r=ajuma 2011-10-15 21:07:10 +01:00
Jeff Walden
d0532c3e95 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden
0f30b277bf Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Benoit Girard
a5cbfecf3e Bug 626694 - Remove unused TextureImage::IsRGB(). r=mattwoodrow 2011-10-11 21:11:03 -04:00
Matt Brubeck
605f836e6c Back out f7bf7ac18a79 (bug 684826), 3a910924c50c (bug 687367), and 524a6bb8744b (bug 693086) because of Android bustage on a CLOSED TREE 2011-10-10 09:47:27 -07:00
Ehsan Akhgari
33b859a0b7 Merge mozilla-central into mozilla-inbound 2011-10-10 11:30:21 -04:00
Brad Lassey
6f3a6d8c7b merge 2011-10-10 11:01:34 -04:00
Brad Lassey
1dbd9c50c8 Backed out changeset 703df62e855b due to crashes reported in bug 693086 2011-10-10 11:00:16 -04:00
Oleg Romashin
0ee3091dc8 Bug 690469 - ShadowThebesLayer Init/Swap API rework. r=cjones
--HG--
extra : rebase_source : 92daf535bc48e1fa2a80d3ef1a6ed20855135eb4
2011-10-02 17:19:32 -04:00
timeless@mozdev.org
cff8381083 Bug 620171 - [@ ImageContainerOGL::GetCurrentAsSurface] if GetFormat() can return anything other than PLANAR_YCBCR or CAIRO_SURFACE
r=bgirard
2011-10-10 15:27:05 +01:00
Benoit Girard
639e3cffcd Bug 692548 - Properly print OGL Shader compile errors on Android. r=jmuizelaar 2011-10-06 12:12:51 -07:00
Matt Woodrow
d281b3df0b Bug 689416 - Stop using intermediate layers to render 3d transforms. r=roc 2011-10-07 10:29:07 +13:00
Matt Woodrow
0d0c9a720e Bug 684759 - Part 4 - Add layer sorting support to the LayerManagers. r=roc 2011-10-07 10:24:32 +13:00
Ali Juma
d5b538c932 Bug 690566 - Associate filters with texture images. r=jrmuizel 2011-10-05 14:20:33 -04:00
Michael Wu
d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Oleg Romashin
131092869e Bug 689045 - Canvas Shadow swap/Init API rework r=cjones
--HG--
extra : rebase_source : 7b2acb0ffededb54815d7222d79999d32506bee5
2011-09-27 15:19:28 -07:00
Oleg Romashin
12f1dcd5d4 Bug 687372 - ImageLayerOGL should not destroy surface given as argument. r=cjones
--HG--
extra : rebase_source : 00d0c49f320c0969570917a321b8a95a3357a943
2011-09-27 15:19:26 -07:00
Ali Juma
9af282920f Bug 681033 - Prevent ShadowLayers::RecvUpdate from triggering an immediate repaint. r=cjones 2011-09-26 09:20:42 -04:00
Florian Hänel
ff2bea3fed Bug 687458 - TimeStamp in FPSState uninitialized, leads to crash; r=romaxa 2011-09-22 00:16:12 -04:00
Benoit Girard
f1a5d4dee8 Bug 685694 - Don't use glDrawBuffer in GLES2. r=matt.woodrow 2011-09-08 14:21:36 -07:00
Benoit Girard
19ed51c454 Bug 683745 - Fix OGL FPS Counter on Android; r=jrmuizel 2011-08-31 15:58:19 -07:00
Benjamin Stover
5977e20a52 Bug 634759 Allow buffer rotation for mobile r=roc 2011-08-29 10:56:50 -07:00
Chris Lord
2aa06762af Bug 611315 - Fix handling of rotated ShadowBufferOGL
Although we currently have buffer rotation disabled for shadow buffers when
using the GL layer manager, if you re-enable it, it will be broken. This is
because we don't take into account the rotation when handling updates.

This fixes that handling by offsetting the updated region by the rotation,
and if that new region crosses texture boundaries, splitting it into
multiple uploads.
2011-08-24 15:10:03 +01:00
Chris Lord
42d612afd7 Fix drawing of GL Thebes layers with rotation when using tiled textures
Drawing of rotated buffers relies on texture-wrapping, but in the case of
tiled textures, this would cause each individual tile to wrap instead of
wrapping the compound texture.

Add a special case for tiled textures that manually does the wrapping.
2011-08-24 15:09:59 +01:00
Benoit Girard
a6b3246fd0 Backout changeset 07d34812bdee, b879d413ce2d, 0c59eeb18700 due to android opengl regression on chrome pages; r=backout 2011-08-23 17:12:15 -04:00
Justin Wood
fec71e5e8b Backout Bug 594876, Bug 675474, and Bug 675532, to fix OSX64 Reftest orange, and Linux perf regression. rs+=edmorly
changeset 0a920411e64c, changeset 58147380793b, and changeset 96e052b3e845
2011-08-20 15:07:06 -04:00
Matt Woodrow
1a18fc5567 Bug 675474 - Draw all ThebesLayer content before compositing and synchronize with glXWaitX on GLX. r=bjacob,roc 2011-08-20 14:04:24 +12:00
Chris Lord
db10ec99c6 Bug 611315 - Fix handling of rotated ShadowBufferOGL. r=mattwoodrow
Although we currently have buffer rotation disabled for shadow buffers when
using the GL layer manager, if you re-enable it, it will be broken. This is
because we don't take into account the rotation when handling uploads.

This fixes that handling by offsetting the updated region by the rotation and
adds an assertion if the updated region crosses a rotation boundary (which
should never happen).
2011-08-19 09:36:18 +01:00
Chris Lord
ee19435552 Bug 611315 - Fix drawing of tiled GL Thebes layers with rotation. r=mattwoodrow
Drawing of rotated buffers relies on texture-wrapping, but in the case of
tiled textures, this would cause each individual tile to wrap instead of
wrapping the compound texture.

Add a special case for tiled textures that manually does the wrapping.
2011-08-19 09:36:08 +01:00
Chris Jones
ae2bfc746f Bug 648484, part 2: Add various helpers, refactor ContainerLayer::SetSpecificAttributes. r=roc 2011-08-09 12:38:26 -07:00
Florian Haenel
fedb6459d8 Bug 669602 - Fennec/OGL: Paint Artifacts on chrome pages background after scrolling. r=joe,roc 2011-08-09 11:38:05 -04:00
Matt Woodrow
fac88d4499 Bug 675073 - Release OpenGL textures with the global context if the creating context has been destroyed. r=joe 2011-08-05 13:13:25 +12:00
Matt Woodrow
1332468008 Bug 655017 - Let gfxXlibSurface track GLXPixmaps and use this for CanvasLayerOGL. r=karlt, roc 2011-08-05 13:13:25 +12:00
Matt Woodrow
a58142bb2a Bug 505115 - Part 7 - Layers support for 3d transforms. r=roc 2011-08-03 15:04:20 +12:00
Matthew Gregan
2f39e6408b Bug 672755 - Add memory reporters for decoded video and audio queues. r=cpearce r=joe 2011-07-22 15:17:23 +12:00
Oleg Romashin
02c7078314 Bug 671986 - ImageLayerOGL does not apply offset/transform for layer r=jrmuizel 2011-07-17 12:07:41 +02:00
Chris Jones
0c9abec3e2 Merge backout 2011-07-15 11:36:22 -07:00
Chris Jones
bd33e7e43e Back out bug 648484 2011-07-15 11:35:55 -07:00
Chris Jones
fcb0f65051 Bug 648484, part 2: Add various helpers, refactor ContainerLayer::SetSpecificAttributes. r=roc 2011-07-13 22:43:43 -07:00
Matt Woodrow
d76b381d9f Bug 670106 - Check the surface type before attempting to create a GLXPixmap. r=joe 2011-07-15 08:45:33 +12:00
Benoit Girard
2ab0d12f09 Bug 663259 - Enable Mac Async plugin by default. r=cjones,mattwoodrow
--HG--
extra : rebase_source : 6d397273f10e659a08125b3861e1651a3994aaa0
2011-07-12 10:31:18 -04:00
Robert O'Callahan
d4259656be Bug 649924. Use image surfaces to implement canvases beyond the texture size limit. r=bas 2011-07-08 22:42:21 +12:00
Florian Haenel
a0b30fbce6 Bug 607687 - Fennec should take care about Texture MAX size HW limitation r=jmuizelaar 2011-07-06 11:00:47 -07:00
Matt Woodrow
e64b02f01a Bug 656185 - Part 2 - Upload the entire image for PlanarYCbCrImageOGL to a texture and clip using texture coordinates. r=derf 2011-07-05 14:52:00 +12:00
Matt Woodrow
9879aa7837 Bug 656185 - Part 1 - Move BindAndDrawQuadWithTextureRect into LayerManagerOGL. r=joe 2011-07-05 14:50:38 +12:00
Benoit Girard
2f27b1192a Bug 636707 - Check for null MacIOSurfaceImageOGL. r=mattwoodrow 2011-07-04 09:51:37 -04:00
Benoit Girard
5b3036138c Bug 648480 - Add shadow-layer support to d3d9 backend. r=cjones 2011-07-04 09:15:05 -04:00
Benoit Girard
3a51e1fdfa Backout 627489bb6288. 2011-07-01 18:05:54 -04:00
Benoit Girard
4ec96c8c7f Bug 648480 - Add shadow-layer support to d3d9 backend. r=cjones 2011-07-01 16:57:15 -04:00
Matt Woodrow
f47d6dca8b Back out bug 656185 due to windows compile failures 2011-06-27 15:21:22 +12:00
Matt Woodrow
6e295129f3 Bug 656185 - Part 2 - Handle odd crop offsets correctly with OpenGl. r=derf 2011-06-27 14:32:16 +12:00
Matt Woodrow
fe8fe23d3c Bug 656185 - Part 1 - Move BindAndDrawQuadWithTextureRect into LayerManagerOGL. r=joe 2011-06-27 14:32:06 +12:00
Jeff Muizelaar
4b67acc2d6 Bug 662649. DrawFPS: Make the conversion loop easier to follow. r=joe 2011-06-22 14:53:11 -04:00
Jeff Muizelaar
ad8a1fabad Bug 662649. DrawFPS: Add a comment about why DrawFPS is a little weird. 2011-06-22 14:49:31 -04:00
Jeff Muizelaar
3e64a3274a Bug 662649. DrawFPS: Make sure we use a 32 bit type instead of a 64 bit one. r=joe
This was causing badness on platforms where unsigned long is 64 bits.
2011-06-22 14:46:27 -04:00
Jeff Muizelaar
7cfa60fc62 Bug 662649. DrawFPS: free leaked buffer. r=joe
glTexImage2D will keep a copy of this data around so we don't have to.
2011-06-22 14:43:52 -04:00
Robert O'Callahan
a97f0fea4e Bug 637852. Part 9: Remove resolution support from BasicLayers, ShadowLayers and GL layers. r=mattwoodrow
This is not needed anymore.
2011-06-23 00:11:28 +12:00
Neil Rashbrook
fc981395e8 Bug 660525 Remove useless uses of PromiseFlatString (prev cset lacked the code changes) r=joedrew! 2011-06-13 19:02:35 -07:00
Masayuki Nakano
9b0bdf62e1 Bug 663036 part.3 gfx should use mozilla::Preferences r=roc+joe 2011-06-12 11:30:16 +09:00
Oleg Romashin
977fc29345 Bug 612335 - Render remote canvas directly into shared surface r=jones.chris.g 2011-06-09 21:17:02 -04:00
Oleg Romashin
f447171c32 Bug 659768 - HTML5 video does not render anything on Maemo r=mattwoodrow 2011-05-31 09:48:47 +12:00
Matheus Kerschbaum
6eb93f7dd3 Bug 648911 - Remove support for non-libxul builds. r=ted,joedrew 2011-05-23 18:54:47 +02:00
Robert O'Callahan
ab1023ee7a Bug 654950. Fix scissor rect calculations for descendants of container layers with intermediate surfaces. r=bas 2011-05-23 12:27:03 +12:00
Florian Hänel
9b0ef26bc8 Bug 628566 - Implement basic tiling of ImageLayerOGL. r=joe 2011-05-19 12:53:02 +02:00
Florian Hänel
23532cf3fb Bug 643793 - Convert OpenGL scissor rects to world space in ContainerLayerOGL. r=joe 2011-05-14 12:11:37 +12:00
Matt Woodrow
875f244cda Bug 649417 - Part 2 - Add a YUV option to SharedImage and use it to share YUV data across processes. r=cjones,joe 2011-04-21 16:38:39 +12:00
Matt Woodrow
2748614ad5 Bug 649417 - Part 1 - Create a SharedImage ipdl union and pass this to ShadowImageLayer::Swap . r=cjones 2011-04-21 11:21:56 +12:00
Oleg Romashin
47d1209f8f Bug 612407 - Add FPS counter like fraps r=joe,jrmuizel 2011-05-10 21:45:42 -04:00
Matt Woodrow
53362a4bfd Bug 649685 - Don't flip when drawing the backbuffer to the window with OpenGL. r=joe 2011-05-09 11:44:03 +12:00
Mounir Lamouri
3ba0ae6a9e Backout 2348924d6410 (bug 612407) for build bustage. 2011-05-06 11:42:42 +02:00
Oleg Romashin
07d3750913 Bug 612407 - Add FPS counter like fraps r=joe 2011-05-06 11:04:14 +02:00
Chris Jones
31aa2c4e77 Bug 556214, parts 1 and 1.1: Rename Monitor to ReentrantMonitor and fix existing Monitor users. r=roc
--HG--
rename : xpcom/glue/Monitor.h => xpcom/glue/ReentrantMonitor.h
2011-04-29 14:21:57 -05:00
Oleg Romashin
d2f1f3108d Bug 610155 - Use SurfaceDescriptor for ImageLayer and CanvasLayer r=jones.chris.g 2011-04-20 14:45:57 -07:00
Daniel Holbert
c98ac8a3c6 Back out 0736b014d4a5 (Bug 610155) for breaking canvas reftests on android 2011-04-21 14:52:22 -07:00
Oleg Romashin
ddd27efe3d Bug 610155 - Use SurfaceDescriptor for ImageLayer and CanvasLayer r=jones.chris.g 2011-04-20 14:45:57 -07:00
Robert O'Callahan
a7b4f1246b Bug 641426. Part 5: Avoid operator== where possible to distinguish between 'equal edges' and 'equal areas' for rectangles. r=dbaron,sr=cjones 2011-04-19 15:07:23 +12:00
Robert O'Callahan
629c1b7e18 Bug 641426. Part 2: Remove a bunch of direct gfxRect::pos/size usage. r=joe 2011-04-19 15:07:21 +12:00
Matt Woodrow
66e0bad817 Bug 648741 - Correctly bind pixmaps to textures during the draw call on X11 accelerated layers. r=bjacob 2011-04-19 10:50:54 +12:00
Matt Woodrow
9bd2dad0c1 Bug 640082 - Part 5 - Use texture_from_pixmap in CairoImageOGL. r=joe 2011-04-07 16:58:08 -07:00
Matt Woodrow
75254ce56e Bug 640082 - Part 4 - Create TextureImageGLX which uses texture_from_pixmap. r=joe 2011-04-07 16:58:08 -07:00
Matt Woodrow
28ec02dbae Bug 640082 - Part 3 - Add BindTexture functions to TextureImage. r=joe 2011-04-07 16:58:08 -07:00
Matt Woodrow
30b3523f5d Bug 640082 - Part 2 - Use texture_from_pixmap in CanvasLayerOGL. r=joe 2011-03-09 10:41:10 +13:00
Robert O'Callahan
95ad3e2df3 Bug 647315. Update ThebesLayerOGL with the same fix. r=mattwoodrow 2011-04-06 16:38:01 -07:00
Matheus Kerschbaum
4eb6429f47 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg 2011-04-02 19:14:00 -07:00
Robert O'Callahan
5d011f0505 Bug 622072. Part 2: Add DidTransactionCallback to CanvasLayer. r=bas, sr=joe 2011-03-28 12:59:46 +13:00
Robert O'Callahan
6e81f6e5b2 Bug 622072. Part 1: Remove rect parameter from Updated() and change implementations to defer updates to render time. r=bas
The rectangle parameter is currently not used --- all callers always pass the full canvas bounds. In the long term,
we probably won't want this parameter since all implementations should be doing accelerated drawing direct to buffers
with no intermediate copies, hence there will be no need to optimize the size of those copies. Plus, performance-sensitive
testcases tend to paint most or all of the canvas on every frame anyway.
2011-03-28 12:59:46 +13:00
Robert O'Callahan
3b4e2d8031 Bug 635373. When resampling a ThebesLayer, ensure that D3D9 and OpenGL layers paint the entire layer as one quad to avoid unnecessary aliasing. r=bas 2011-04-01 10:33:46 +13:00
Robert O'Callahan
181c9b04ba Bug 635373. ThebesLayerOGL needs to make sure we only sample valid pixels too. r=mattwoodrow 2011-04-01 10:33:46 +13:00
Ehsan Akhgari
acac18d785 Back out bug 622072 because it caused bug 645987 2011-03-29 14:31:53 -04:00
Robert O'Callahan
12d79b4b13 Bug 622072. Part 2: Add DidTransactionCallback to CanvasLayer. r=bas, sr=joe 2011-03-28 12:59:46 +13:00
Robert O'Callahan
173828d394 Bug 622072. Part 1: Remove rect parameter from Updated() and change implementations to defer updates to render time. r=bas
The rectangle parameter is currently not used --- all callers always pass the full canvas bounds. In the long term,
we probably won't want this parameter since all implementations should be doing accelerated drawing direct to buffers
with no intermediate copies, hence there will be no need to optimize the size of those copies. Plus, performance-sensitive
testcases tend to paint most or all of the canvas on every frame anyway.
2011-03-28 12:59:46 +13:00