Commit Graph

229 Commits

Author SHA1 Message Date
Matt Woodrow
dc7c7a8cc1 Bug 649417 - Check if BasicShadowableImageLayer has a current image before attempting to use it. r=cjones 2011-05-13 12:38:44 +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
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
Timothy B. Terriberry
2bdc74c61a Bug 634557 - ScaleYCbCrToRGB565: Reference C version, r=doublec 2011-04-14 17:32:15 -07:00
Zack Weinberg
1628ea1551 Bug 266236 part 9: Move nsBoundingMetrics to its own header and prune inclusions of nsRenderingContext.h.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : 92660748436f03475e011184e2828f1db0ad63e0
2011-04-07 18:04:40 -07:00
Jan Küchler
c510bc3046 Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
extra : rebase_source : 34884bfcafd885feaf73300bc7246cd192062a48
2011-04-07 18:04:40 -07:00
Tim Terribe
962584e61d Bug 641014 - Fix broken NEO Y'CbCr to RGB conversion - r=doublec
--HG--
extra : rebase_source : fddd6ccddd083484c8b46a53747fb2058a46463e
2011-04-09 06:59:22 +12:00
Chris Double
61d4db165f Bug 639415 - Disable prescaling of videos if they have an offset due to chromium scaling code not supporting offsets - r=kinetik
--HG--
extra : rebase_source : 0b72a504f731a81a498876a28dfae0d7c4aebded
2011-03-14 17:31:48 +13: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
181c9b04ba Bug 635373. ThebesLayerOGL needs to make sure we only sample valid pixels too. r=mattwoodrow 2011-04-01 10:33:46 +13:00
Robert O'Callahan
023d0fa5da Bug 641770. Ensure that the cliprect for a layer is interpreted in the coordinate system of its container in MarkLeafLayersCoveredByOpaque. r=bas 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
Chris Pearce
f507197104 Bug 580531 - Record first paint time and number of images painted in ImageContainer. r=roc 2011-03-24 11:28:57 +13:00
Chris Pearce
fd6cce5849 Bug 580531 - Push ImageContainer subclass' locks up into a superclass monitor. r=roc 2011-03-24 11:28:57 +13:00
Timothy B. Terriberry
b816cb6603 Bug 641019 - "Crash on video with odd widths and 16-bit displays" [r=tterribe a=stuart] 2011-03-15 15:01:00 -07:00
Timothy B. Terriberry
d533a5513c Bug 640588 - "Bad rendering of webm and ogv with 16-bits displays on Linux" [r=jones.chris.g a-2.0=doug.turner]
--HG--
extra : rebase_source : 8407e60c8e2c24252c4ce36daddd793ebf4cbd9d
2011-03-11 16:07:00 -08:00
Chris Jones
8617d00c98 Bug 640444: Self-copies end up changing all buffer content, so we need to read back the entire buffer after swapping. r=Bas a=b 2011-03-11 23:22:39 -06:00
Chris Jones
bf637c820f Followup to bug 635373: Shadow-layer buffers might be resampled in the chrome process. r=roc a=b 2011-03-09 11:28:26 -06:00
Chris Jones
267431c555 Bug 635035, part 1: Separate the extended draw region and computed draw region so that shadow-layer readback gets the same quadrant as what was drawn. r=mattwoodrow 2011-03-09 11:27:37 -06:00
Makoto Kato
6af9bf0044 Bug 637961 - Crash in [@ yv12_to_rgb565_neon]. r=jmuizelaar a=blocking-fennec 2011-03-08 09:59:44 +09:00
Robert O'Callahan
f513c853d0 Bug 632423. Enable subpixel AA when we draw into the opaque subrect of a surface. r=tnikkel a=beltzner 2011-03-01 14:32:23 -06:00
Robert O'Callahan
808d55a6a9 Bug 635373. Disable ThebesLayerBuffer rotation for non-identity resolutions, and add API to disable rotation explicitly. r=cjones a=beltzner 2011-03-01 14:30:16 -06:00
Chris Jones
dd441ebe3d Bug 636093: Remove assertion that's no longer asserting what it was intended to. r=roc a=a 2011-02-24 15:59:26 -06:00
Robert O'Callahan
1619ca83d2 Bug 626602. Part 2: BasicLayers implementation of ReadbackLayer. r=cjones 2011-02-16 16:43:30 -06:00
Robert O'Callahan
1a14aa0939 Bug 626602. Part 1: Create ReadbackLayer API to enable collection of background pixels in a layer tree. r=bas,sr=cjones 2011-02-16 16:43:30 -06:00
Alex Pakhotin
fbb302f334 Bug 629100 - Fullscreen video stretches top and bottom rows of pixels to edge of screen [r=roc a=blocking-fennec] 2011-02-11 18:31:09 -08:00
Robert O'Callahan
9ec8b66781 Bug 633040 - [regression] Text rendering looks scaled; r=cjones a=blocking-final/fennec 2011-02-10 20:01:54 -05:00
Robert O'Callahan
bafecf5c32 Bug 625672. Part 1.5: Make layer managers silently do nothing when ending a transaction with no root layer. r=bas,a=blocker 2011-02-10 21:58:11 +13:00
Marco Bonardo
562557746d Backout bug 626602, follow-ups and conflicting bug 631388 due to Win Tp4 permaorange causing a=CLOSED TREE 2011-02-09 15:48:12 +01:00
Robert O'Callahan
ce95a43471 Bug 626602. Part 2: BasicLayers implementation of ReadbackLayer. r=cjones 2011-02-08 18:44:13 -06:00
Robert O'Callahan
eb9d0942df Bug 626602. Part 1: Create ReadbackLayer API to enable collection of background pixels in a layer tree. r=bas,sr=cjones 2011-02-08 18:44:13 -06:00
Matt Woodrow
229086f86e Bug 586683 - Part 1 - Add resolution handling to BasicLayers. r=roc a=blocking2.0 2011-02-09 09:35:54 +13:00
Alon Zakai
ebf74d5e14 Bug 610727 - Mark canvas layers inactive when relevant. r=roc a=blocking-fennec 2011-02-04 10:11:24 -08:00
Chris Jones
de83cf8f38 Fix for the fix for the fix of bug 627273. r=roc a=b 2011-01-26 16:12:06 -06:00
Chris Jones
0128f3f756 Followup to bug 627273: Fix bad fix. r=Bas a=b 2011-01-26 13:25:48 -06:00
Chris Jones
ee2d946b9f Bug 627273, part 4: Basic impl of ImageLayer tiling for basic layers. r=roc,vlad 2011-01-26 00:26:37 -06:00
Chris Jones
d56af48d67 Bug 627273, part 3: Add gfxContext::FillWithOpacity. sr=vlad 2011-01-26 00:26:37 -06:00
Vladimir Vukicevic
d7ebc933dc b=606218; webgl Y axis upside down; followup to fix opacity; r=cjones 2011-01-25 14:18:41 -08:00
Bas Schouten
1fa726d5c6 Bug 627399: Do not forget mTarget if a transaction is incomplete. r=cjoned a=blocking-beta10 2011-01-21 06:46:38 +01:00
Vladimir Vukicevic
ec43cf056f b=606218; [webgl] content appears upside down when rendered via shadow layers; r=cjones, a=b 2011-01-19 00:55:31 -08:00
Robert O'Callahan
63cc1f7d1a Bug 621601. Part 1: Change empty transaction API to EndEmptyTransaction. r=bas,tnikkel,a=joe 2011-01-19 21:27:54 +13:00
Robert O'Callahan
7eb95710b4 Bug 594253. Update mValidRegion by OR-ing with the visible region after repainting, instead of OR-ing with the redrawn region, since this leads to simpler region structures. r=cjones,a=blocking 2011-01-16 23:38:45 +13:00
Robert O'Callahan
173ad45857 Bug 615794. Part 2: Remove some usage of gfxUtils::ClipToRegionSnapped since snapping the visible region may not be correct. r=jrmuizel a=blocking 2011-01-04 23:35:57 +13:00
Chris Jones
afb34a00d3 Bug 617863: Remove a pseudo-assertion that doesn't hold for plugin ImageLayers. r=roc a=a 2011-01-04 10:40:54 -06:00
Robert O'Callahan
64931e1915 Bug 593604. Part 8.5: Add SupportsComponentAlphaChildren API. r=bas,a=blocking 2011-01-03 14:48:09 +13:00
Robert O'Callahan
ef18a76a76 Bug 363861. Part 4: Track rectangles of opaque content in RGBA surfaces and use them to make PushGroupAndCopyBackground work in more situations. r=jrmuizel,sr=vlad,a=blocking 2011-01-03 14:48:08 +13:00
Robert O'Callahan
8a25d93acd Bug 363861. Part 3: Reenable Cleartype on surfaces where we know we'll only paint text over opaque pixels. r=jrmuizel,sr=vlad,a=blocking 2011-01-03 14:48:08 +13:00
Robert O'Callahan
bb4e717119 Bug 363861. Part 1: Introduce gfxContext::PushGroupAndCopyBackground and use it to create opaque temporary surfaces for opacity groups which will be composited onto opaque surfaces. r=jrmuizel,sr=vlad,a=blocking 2011-01-03 14:48:08 +13:00
Oleg Romashin
88c2013756 Bug 619490 - Don't use double-buffered shadowed layers with OGL compositing r=cjones a=b-f 2010-12-31 09:40:31 +02:00
Bas Schouten
fe47c52e05 Bug 620665 - Part 7: Do not use mManager pointer for basic layers. r=roc a=blocking-beta9 2010-12-29 01:07:18 +00:00
Bas Schouten
4bb2625477 Bug 620665 - Part 1: Expose backend type on ImageContainers. r=roc a=blocking-beta9 2010-12-29 01:07:00 +00:00
Oleg Romashin
e8ef8e8cb9 Bug 615870 - Remote HTML5 video rendering pipeline should be shorter. part1. r=jones.chris.g a=b-f
* * *
Bug 615870. Part 3. mRoot check r=roc a=b-f
2010-12-27 08:12:17 +02:00
Robert O'Callahan
c6700e764d Bug 612840. Part 4: Invert the meaning of CONTENT_NO_TEXT_OVER_TRANSPARENT and rename it. r=vlad 2010-12-20 14:26:14 +13:00
Robert O'Callahan
76d7bbcd27 Bug 612840. Part 2: Remove unnecessary opacity check. r=cjones 2010-12-20 14:26:14 +13:00
Robert O'Callahan
d8ccf4a713 Bug 612840. Part 1: Remove CONTENT_NO_TEXT flag since it's not really used. Also remove ShouldRetainTransparentSurface and related code; we'll assume that when text is over opaque pixels in an RGBA surface we can always paint it with subpixel AA --- and make it so in later patches. r=vlad 2010-12-20 14:26:13 +13:00
Oleg Romashin
f1941ee1f5 Bug 616469 - Video sync is slow because of slow yuv2rgb conversion. use 16bpp neon r=roc a=blocking-fennec 2010-12-10 21:32:52 +02:00
Oleg Romashin
3f6521bff5 Bug 616469 - Video sync is slow because of slow yuv2rgb conversion. Offscreen API r=roc a=b-f 2010-12-15 10:17:27 -08:00
Michael Wu
adc8f28efe Backed out changeset 34bd12eb4a9c for causing bug 618916, a=stuart 2010-12-13 16:14:07 -08:00
Oleg Romashin
32de6ed302 Bug 615870 - Remote HTML5 video rendering pipeline should be shorter r=roc a=b-f 2010-12-10 21:32:52 +02:00
Chris Jones
8a774f63b4 Bug 612573: Make sure shadowable layers aren't destroyed in the middle of transactions. r=karlt a=2.0 2010-11-24 21:33:37 -06:00
Tatiana Meshkova
d9e0f71218 bug 606730 - Remote thebesLayer BG color rendering always, even if it's not visible, Part 2: MarkLeafLayersCoveredByOpaque() for BasicLayers r=roc a=roc 2010-11-16 18:33:56 -05:00
Tatiana Meshkova
cdf92598c9 bug 606730 - Remote thebesLayer BG color rendering always, even if it's not visible, Part 1: Add mLastChild to all ContainerLayer r=roc a=roc 2010-11-16 18:33:56 -05:00
Benjamin Stover
0521600299 Bug 611799 Prefill newly created buffers with old content r=cjones a=blocking-fennec 2010-11-12 14:21:05 -08:00
Chris Double
96cbe7d2f7 Bug 583138 - Update to latest Chromium YCbCr to RGB Conversion code - r=roc a=blocking2.0 2010-11-11 12:54:27 +13:00
Chris Double
0965268b8a Bug 577843 - Scale videos at YCbCr conversion time - r=roc a=blocking2.0
--HG--
extra : rebase_source : ae011843fdd812dbeab7e5de0bf3b6029cccb3e5
2010-10-26 16:11:13 +13:00
Robert O'Callahan
24f17c94ae Bug 608636. Clip to transformed bounds of BasicContainerLayers when compositing their opacity groups back to the target surface. r=vlad,a=blocking 2010-11-12 14:43:42 +13:00
Robert O'Callahan
d224a4edaf Bug 579885. Part 2: Never use SOURCE to composite ThebesLayers into the target, just use OVER and assume cairo backends will optimize. r=vlad,a=blocking 2010-11-12 14:43:42 +13:00
Robert O'Callahan
6befdb5626 Bug 579985. Part 3.2: Remove gfxASurface::AreSimilarSurfacesSensitiveToContentType because it's effectively always true now. r=jrmuizel,a=blocking 2010-11-12 14:43:40 +13:00
Chris Jones
339106b788 Bug 562424: Switch IPDL interfaces to infallible TArray. r=bent a=blocking 2010-11-08 20:49:00 -06:00
Robert O'Callahan
26f24119f8 Bug 602200. Share code to compute effective transforms and opacity, and snap effective transforms. r=bas,sr=vlad,a=blocker 2010-11-08 22:06:15 +13:00
Alon Zakai
acb20a5fc5 Bug 609678 - Fix memory leak in SetBackingBuffer. r=cjones a=blocking-fennec 2010-11-05 09:37:40 -07:00
Chris Jones
71323d9d0b Bug 603885, part 8: Add logging for buffer creation and readback operations. r=roc 2010-11-05 02:17:07 -05:00
Chris Jones
5548cd55c7 Bug 603885, part 7: Remove front-buffer pre-fill code that is now subsumed by swap-and-readback (which also gets the pre-fill off the critical path for repainting). r=roc 2010-11-05 02:17:07 -05:00
Chris Jones
958dbecd19 Bug 603885, part 6: Implement swap-and-readback. r=roc 2010-11-05 02:17:07 -05:00
Chris Jones
3070bf00d3 Bug 603885, part 2: Set up the framework for swap-and-readback. r=roc sr=vlad 2010-11-05 02:17:07 -05:00
Chris Jones
7ac34efa3a Bug 603885, part 1: Move separate a method decl/def and reindent a long block. r=roc 2010-11-05 02:17:07 -05:00
Robert O'Callahan
f77d26e905 Bug 593839. Part 2: Remove DESTINED_FOR_SCREEN flag now that it's no longer used. r=vlad a=blocking-betaN 2010-10-25 16:39:27 +02:00
Chris Jones
309019725a Fix --disable-libxul bustage from bug 602431 and bug 602428. a=bustage 2010-10-13 18:36:44 -05:00
Chris Jones
3314234fb5 Bug 602431, part 6: Honor shadow-layer attributes in the basic layers backend and take off the container-transform training wheels. r=roc 2010-10-13 17:55:45 -05:00
Chris Jones
9d4c7a5e0c Bug 602431, part 3: Add a ShadowContainerLayer base class and BasicShadowContainerLayer implementation. sr=roc 2010-10-13 17:55:45 -05:00
Chris Jones
57c58b918e Bug 602431, part 2: Add a ShadowColorLayer base class and BasicShadowColorLayer implementation. sr=roc 2010-10-13 17:55:45 -05:00
Chris Jones
65e40b3c52 Bug 604058: Shadowable layers might not have shadows. r=joe a=blocking-betaN 2010-10-13 14:22:17 -05:00
Benjamin Stover
026af3301e Bug 600908 Always retain shadowable layers r=cjones a=2.0b2+ 2010-10-11 11:36:20 -07:00
Chris Jones
374601de26 Bug 599359, part 2: When we allocate a new front/back buffer pair, pre-fill the new front buffer with what we painted into the back buffer to stabilize the first Swap(). r=vlad a=blocking-fennec 2010-09-28 17:05:30 -05:00
Chris Jones
6bee72a35f Bug 599359, part 1: Fix a minor bug with previous Swap() implementation that was irrelevant in practice. r=vlad 2010-09-28 17:05:30 -05:00
Chris Jones
d4a32df6d8 Bug 591555: Shadow layer resources are scoped to their PLayerParent, of which there may be many for one layer manager, so move resource management down into Shadow*Layer. r=joe sr=roc 2010-09-24 17:41:31 -05:00
Oleg Romashin
30a25e1f73 Bug 598531 - Fennec Remote Layer rendering is slow on N900 (pixman hitting slow path). r=roc a=blocking-fennec 2010-09-23 20:09:00 -07:00
Chris Jones
e9e6c123e5 Bug 598265: Initialize BasicImageLayer::mSize. r=roc a=blocking-fennec 2010-09-21 01:57:25 -05:00
Chris Jones
d5d1794564 Bug 593175, part 1: Request backing buffers with gfxContentType rather than gfxImageFormat. r=karl a=blocking-fennec 2010-09-16 16:24:17 -05:00
Robert O'Callahan
edffdd77c1 Bug 584494. Avoid clipping in BasicThebesLayer when not necessary. r=cjones a2.0=blocking2.0:betaN 2010-09-17 12:29:52 -07:00