Commit Graph

783 Commits

Author SHA1 Message Date
Robert O'Callahan
51fbcbb34a Bug 647560. Remove unused MayHaveOverlappingOrTransparentLayers. r=tnikkel 2011-05-30 15:48:34 +12:00
Robert O'Callahan
2e0298a19f Bug 647560. Cache temporary backbuffer surfaces. r=karlt 2011-05-30 15:48:29 +12:00
Robert O'Callahan
9accec318f Bug 647560. Create ApplyDoubleBuffering to recursively walk layer tree and implement double-buffering by setting mUseIntermediateSurface on ContainerLayers where necessary. r=tnikkel
The idea here is to do double-buffering just by setting mUseIntermediateSurface on ContainerLayers when needed. When
we need to double-buffer compositing of a layer tree, ApplyDoubleBuffering examines the root container layer. If the
child layers don't overlap and together cover the window, we don't need to double-buffer in that container, instead
we can double-buffer each child layer separately --- so we recursively call ApplyDoubleBuffering on the child layers.
When a container has children that overlap or that don't cover the container's visible rect (the latter case
probably can't happen in practice), we force it to have an intermediate surface.

This change fixes this bug because in normal browser windows the Web content layer double-buffers
2011-05-30 15:48:23 +12:00
Robert O'Callahan
b951f3597d Bug 647560. Add support for compositing BasicLayers with OPERATOR_SOURCE. r=tnikkel
We'll need this for the improved backbuffer code in the next patch. When a layer tree's
leaf layers don't overlap and cover the window, the next patch will avoid double-buffering
by blitting those layers directly to the window. If the window has transparent parts
(e.g. with Aero Glass), we need to draw the layers for those transparent parts using
OPERATOR_SOURCE so that the alpha values in the window are reset.
2011-05-30 15:48:13 +12:00
Robert O'Callahan
c69b69915a Bug 647560. Clean up MarkLeafLayersHidden and make it set the hidden state on container layers. r=tnikkel
Instead of doing tricks with the cliprect to prevent layer content from adding to aOpaqueRegion, pass an explicit flag to control that.
Mark a ContainerLayer hidden if all its children are hidden. This will need to be changed if/when we add layer properties
that result in a ContainerLayer drawing content even if it has no children.
2011-05-30 15:48:08 +12:00
Robert O'Callahan
96787d1aa7 Bug 647560. Use passed-in aContext instead of getting it from the layer manager. r=tnikkel 2011-05-30 15:48:01 +12:00
Robert O'Callahan
73527b85f3 Bug 639168. Don't try to reuse a buffer if we don't have one. r=tnikkel 2011-05-30 15:29:07 +12:00
Masayuki Nakano
4a5030c91a Bug 660121 Remove all pref related methods from nsContentUtils r=roc 2011-05-29 08:42:57 +09:00
Neil Rashbrook
3678727236 Fix DOS line endings rs=joedrew!
DONTBUILD
2011-05-26 20:41:33 +01:00
Oleg Romashin
9bc8e8bac5 Bug 659217 - HW accelerated video crashing with OGL layerss enabled. r=matt.woodrow
--HG--
extra : rebase_source : bd3b7998f5b8193a01d927c388ee2375d2a6bacf
2011-05-25 10:09:55 +02:00
Benoit Jacob
9ebd896e48 Bug 657748 - Update ANGLE to r653 - a=joe
This ANGLE update fixes bugs, brings large performance improvements, and adds major new features that web devs are looking forward to: vertex shader texture lookup and float textures.

http://code.google.com/p/angleproject/

This update is also needed because the version we're currently using is the chrome_m10 branch and that's no longer maintained. This update will make it much easier to apply security fixes if needed.
2011-05-24 11:05:56 -04: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
Vivien Nicolas
d7877250d0 backout bug 647560 - Pages on Fennec desktop does not not draw anymore 2011-05-20 17:45:00 +02:00
Florian Hänel
9b0ef26bc8 Bug 628566 - Implement basic tiling of ImageLayerOGL. r=joe 2011-05-19 12:53:02 +02:00
Robert O'Callahan
47ede5b8e2 Bug 647560. Remove unused MayHaveOverlappingOrTransparentLayers. r=tnikkel 2011-05-18 23:24:52 +12:00
Robert O'Callahan
b3d6e4d026 Bug 647560. Cache temporary backbuffer surfaces. r=karlt 2011-05-18 23:24:52 +12:00
Robert O'Callahan
66c2bd79f5 Bug 647560. Create ApplyDoubleBuffering to recursively walk layer tree and implement double-buffering by setting mUseIntermediateSurface on ContainerLayers where necessary. r=tnikkel
The idea here is to do double-buffering just by setting mUseIntermediateSurface on ContainerLayers when needed. When
we need to double-buffer compositing of a layer tree, ApplyDoubleBuffering examines the root container layer. If the
child layers don't overlap and together cover the window, we don't need to double-buffer in that container, instead
we can double-buffer each child layer separately --- so we recursively call ApplyDoubleBuffering on the child layers.
When a container has children that overlap or that don't cover the container's visible rect (the latter case
probably can't happen in practice), we force it to have an intermediate surface.

This change fixes this bug because in normal browser windows the Web content layer double-buffers
2011-05-18 23:24:52 +12:00
Robert O'Callahan
c768bea25e Bug 647560. Add support for compositing BasicLayers with OPERATOR_SOURCE. r=tnikkel
We'll need this for the improved backbuffer code in the next patch. When a layer tree's
leaf layers don't overlap and cover the window, the next patch will avoid double-buffering
by blitting those layers directly to the window. If the window has transparent parts
(e.g. with Aero Glass), we need to draw the layers for those transparent parts using
OPERATOR_SOURCE so that the alpha values in the window are reset.
2011-05-18 23:24:52 +12:00
Robert O'Callahan
f243295b25 Bug 647560. Clean up MarkLeafLayersHidden and make it set the hidden state on container layers. r=tnikkel
Instead of doing tricks with the cliprect to prevent layer content from adding to aOpaqueRegion, pass an explicit flag to control that.
Mark a ContainerLayer hidden if all its children are hidden. This will need to be changed if/when we add layer properties
that result in a ContainerLayer drawing content even if it has no children.
2011-05-18 23:24:52 +12:00
Robert O'Callahan
211b76b78d Bug 629866. Part 2: Make MarkLeafLayersHidden actually hide layers that aren't in the dirty region. Don't consider hidden layers when deciding whether double-buffering is needed. r=cjones 2011-05-18 23:24:52 +12:00
Mounir Lamouri
127ecf5ea3 Backout bug 629866 and bug 647560. 2011-05-17 11:44:17 +02:00
Robert O'Callahan
bfdfab0931 Bug 647560. Remove unused MayHaveOverlappingOrTransparentLayers. r=tnikkel 2011-05-17 11:42:19 +12:00
Robert O'Callahan
5649b24aa6 Bug 647560. Cache temporary backbuffer surfaces. r=karlt 2011-05-17 11:42:11 +12:00
Robert O'Callahan
b021c0ce1b Bug 647560. Create ApplyDoubleBuffering to recursively walk layer tree and implement double-buffering by setting mUseIntermediateSurface on ContainerLayers where necessary. r=tnikkel
The idea here is to do double-buffering just by setting mUseIntermediateSurface on ContainerLayers when needed. When
we need to double-buffer compositing of a layer tree, ApplyDoubleBuffering examines the root container layer. If the
child layers don't overlap and together cover the window, we don't need to double-buffer in that container, instead
we can double-buffer each child layer separately --- so we recursively call ApplyDoubleBuffering on the child layers.
When a container has children that overlap or that don't cover the container's visible rect (the latter case
probably can't happen in practice), we force it to have an intermediate surface.

This change fixes this bug because in normal browser windows the Web content layer double-buffers
2011-05-17 11:42:05 +12:00
Robert O'Callahan
4005a3a447 Bug 647560. Add support for compositing BasicLayers with OPERATOR_SOURCE. r=tnikkel
We'll need this for the improved backbuffer code in the next patch. When a layer tree's
leaf layers don't overlap and cover the window, the next patch will avoid double-buffering
by blitting those layers directly to the window. If the window has transparent parts
(e.g. with Aero Glass), we need to draw the layers for those transparent parts using
OPERATOR_SOURCE so that the alpha values in the window are reset.
2011-05-17 11:41:57 +12:00
Robert O'Callahan
6f33d6ea53 Bug 647560. Clean up MarkLeafLayersHidden and make it set the hidden state on container layers. r=tnikkel
Instead of doing tricks with the cliprect to prevent layer content from adding to aOpaqueRegion, pass an explicit flag to control that.
Mark a ContainerLayer hidden if all its children are hidden. This will need to be changed if/when we add layer properties
that result in a ContainerLayer drawing content even if it has no children.
2011-05-17 11:41:48 +12:00
Robert O'Callahan
e8c9f1c8a5 Bug 629866. Part 2: Make MarkLeafLayersHidden actually hide layers that aren't in the dirty region. Don't consider hidden layers when deciding whether double-buffering is needed. r=cjones 2011-05-17 11:41:39 +12: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
Oleg Romashin
e221d29887 Bug 656167 - Temorarily disable or back out fixed layers. r=jones.chris.g 2011-05-12 09:49:33 -07:00
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
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
Zack Weinberg
0d75035ecd Bug 651017, part 4: deCOM nsIDeviceContext; include-minimization on nsDeviceContext.h itself; merge GetPrintDC() into Windows/OS/2 specific code; merge Shutdown() with ClearCachedSystemFonts(). Most references outside gfx not fixed up.
--HG--
rename : gfx/src/nsThebesDeviceContext.cpp => gfx/src/nsDeviceContext.cpp
rename : gfx/src/nsThebesDeviceContext.h => gfx/src/nsDeviceContext.h
extra : rebase_source : 9fb366d99d18c9335ba297d21f673178dae62a64
2011-04-16 18:22:42 -07:00
Robert O'Callahan
fc7faceefc Bug 641426. Part 6: Rename Empty to SetEmpty. r=cjones 2011-04-19 15:07:23 +12: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
1c5c997eb5 Bug 641426. Part 3: Convert gfxRect::pos/size to x/y/width/height. r=joe,sr=cjones 2011-04-19 15:07:21 +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
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
Benjamin Stover
bd3081c90a Bug 642246 Don't build ThebesLayers for elements with no displayports r=roc 2011-04-11 13:53:01 -07:00
L. David Baron
522a8d323e Back out 1edfae12015b (Bug 642246) due to mobile unittest orange. 2011-04-09 18:21:27 -07:00
Benjamin Stover
3c025ebe4d Bug 642246 Don't build ThebesLayers for elements with no displayports r=roc 2011-04-09 12:38:28 -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
Oleg Romashin
863e12aca2 Bug 607417 - Part1: position:fixed frames mark layers r=roc
--HG--
extra : rebase_source : dbbff8810bafd165a48c34924d98f5c87702ef3f
2011-04-05 23:00:25 -06: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
Robert O'Callahan
5d14389f57 Bug 647315. Back out one line of changeset 844579d34200. r=mattwoodrow 2011-04-06 16:37:56 -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
Robert O'Callahan
746312cb6f Bug 635373. If we need to resample a ThebesLayer texture, make sure we make all the pixels of the texture valid in case they get sampled. r=bas 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
Ben Turner
ecf6425f70 Bug 640901: Clean up managees when manager ctor fails. r=cjones 2011-03-21 11:00:00 -05:00
Benjamin Smedberg
aca1d650f4 Bug 617539 - remove nsIWidget_MOZILLA_2_0_BRANCH, r=jimm 2011-03-25 11:03:35 -04:00
Matt Woodrow
554cdb272d Bug 635383 - Fix black rendering on non-square container layers. r=joe,bz 2011-03-24 21:57:09 -04:00
Matt Woodrow
7da8313783 Bug 635383 - Part 3 - Don't triple buffer reftests. r=joe 2011-03-25 11:06:04 +13:00
Matt Woodrow
084cbe71fb Bug 635383 - Part 2 - Share scissoring code between all accelerated backends. r=joe 2011-02-25 20:44:22 +13:00
Matt Woodrow
48cf99ff28 Bug 635383 - Part 1 - Make GL layers always y-flipped and handle this inside GLContext. r=joe 2011-02-25 20:44:18 +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
Steven Michaud
4dd89ed999 Bug 637367 - Stop DrawPlugin from accessing deleted nsObjectFrame. r=roc a=beltzner 2011-03-18 14:35:14 -05: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
Ehsan Akhgari
0f1e24c309 Bug 639885 - Don't use named Windows kernel objects because they will cause conflicts when running multiple Firefox processes concurrently; r=jrmuizel a=stuart 2011-03-11 21:22:38 -05: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
5c61114efe Bug 635035, part 6: Use gfxASurface::MovePixels() for self-copies of ThebesLayerBuffers. r=roc 2011-03-09 11:27:37 -06:00
Chris Jones
ac95b431ba Bug 635035, part 2: Ensure that the buffer rect only grows in the presence of scaling. r=roc 2011-03-09 11:27:37 -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
Ehsan Akhgari
48cfbff3fe Bug 639885 - Abort the program execution if the status of program is unsafe due to thread safety issues in ReadbackManagerD3D10; r=Bas,jrmuizel,cjones a=beltzner 2011-03-09 09:49:29 -05: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
Benoit Jacob
2866aaced4 Bug 627464 - Annotate crash reports if the forced-enabled prefs are set - r=jrmuizel, a=joe 2011-03-02 15:50:36 -05:00
joe@drew.ca
712889b510 Bug 636870 - Using webgl on optimus hardware causes instant crash [part1] (r=jmuizelaar, a=blocker). 2011-03-01 17:00:33 -08: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
Benjamin Smedberg
59bf3bde04 Bug 635980. Change Nv3DVStreaming assert to warning. r=jmuizelaar, a=jmuizelaar 2011-03-01 13:00:35 +09:00
Matt Woodrow
db867791c5 Bug 637040 - Set the correct active texture unit for plugin layers. r=roc a=blocking2.0 2011-03-01 16:05:20 +13:00
Ms2ger
0ad8b36894 Bug 637184 - Missing newline at end of file in MacIOSurfaceImageOGL.h; r=mattwoodrow a=josh 2011-02-28 13:01:37 -08:00
Ehsan Akhgari
9b3471bc51 Bug 622942 - Set the antialiasing flag on OpenGL layers with component alpha content.
r+a=roc
2011-02-26 13:40:47 +01:00
Matt Woodrow
a15340f7c5 Bug 636609 - Remove DEBUG_GL_ERROR_CHECK. r+a=joe 2011-02-25 20:05:31 +13: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
Matt Woodrow
ff809e8adc Bug 634132 - Reset the current GL context after drawing thebes layers. r=joe a=blocking2.0 2011-02-24 09:31:49 +13:00
Jeff Muizelaar
ef64e8b9ae Bug 626678. Try to handle docking station device resets better. r=bas,a=b
Docking stations seem to cause DEVICELOST errors that never become
DEVICERESET so we don't ever succeed in reseting the device. We now
try to detect these situations and recreate the device.
2011-02-23 09:18:00 -08:00
Matt Woodrow
4236b394ee Bug 635302: fix flipping logic to handle both single-buffered and double-buffered cases correctly. r=joe, a=hardblocker. 2011-02-20 11:19:11 +13:00
Mike Shaver
0111864653 backout of 6bad6cd2dded due to failure of test it added (a=backout-orange) 2011-02-19 11:08:39 -08:00
Matt Woodrow
c77e8384c9 Bug 635302: fix flipping logic to handle both single-buffered and double-buffered cases correctly. r=joe, a=hardblocker.
See also bug 635383 for improving this logic in the longer term.
2011-02-18 18:11:00 -08:00
Bas Schouten
e22a41f05e Bug 635275: Only update portions within scaled texture bounds. r=roc a=blocking-betan 2011-02-19 04:51:10 +01:00
Matt Woodrow
8c00c071fe Bug 634366 - Remove broken CreateForNativePixmapSurface usage from CairoImageOGL. r=joe a=blocking2.0 2011-02-18 12:19:38 +13:00
Matt Woodrow
1ee2b35ed6 Bug 634784 - Fix scaling being applied twice on component alpha surfaces. r=joe a=blocking2.0 2011-02-18 11:47:04 +13:00
Matt Woodrow
df6d09eb2c Bug 634521 - Let mac plugins trigger empty transactions. r=roc a=roc 2011-02-17 16:56:06 +13:00
Bas Schouten
cac02ea69b Bug 634669: Use scaled size for our drawing surface. r=mattwoodrow a=blocking-betan 2011-02-16 23:32:16 +01:00
Bas Schouten
d1a9be248e Fix EOL-style in ThebesLayerD3D9. r=mattwoodrow a=lineendings 2011-02-16 23:32:13 +01:00
Bas Schouten
f732d2dcac Bug 626602, part 6: Implement asynchronous D3D10 readback. r=cjones,jrmuizel 2011-02-04 20:30:00 -06:00
Robert O'Callahan
3034c9b8d3 Bug 626602. Part 5: Implement ReadbackLayers for D3D9. r=bas 2011-02-16 16:43:30 -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
Robert O'Callahan
7e79a59083 Bug 626602. Part 0: Fix header guards. r=bas 2011-02-16 16:43:30 -06:00
Matt Woodrow
194b1dc82a Bug 622585 - Use Clamp instead of Wrap texture sampling in D3D10 layers. r=Bas a=blocking2.0 2011-02-16 16:19:45 +13:00
Matt Woodrow
0318e6f30c Bug 622585 - Disable texture wrapping for intermediate surface in OpenGL. r=jrmuizel a=blocking2.0 2011-02-16 16:19:45 +13:00
Matt Woodrow
9c57c285f5 Bug 622585 - Fix logic deciding when to flip the scissor rect in OpenGL layer. r=jrmuizel a=blocking2.0 2011-02-16 16:19:45 +13:00
Ehsan Akhgari
c6d9c951c9 Bug 632781 - Scroll non-accelerated canvases correctly with the content; r=matt,joe,roc a=blocking-betaN 2011-02-14 18:23:50 -05:00
Ehsan Akhgari
f18e1adc11 Back out changeset f3d13890fbe3 because of Windows reftest orange; a=orange
--HG--
extra : rebase_source : c7e2bdd935612251477b264ba64c65531916d0a3
2011-02-15 13:30:33 -05:00
Ehsan Akhgari
0b0c2afb5f Bug 632781 - Scroll non-accelerated canvases correctly with the content; r=matt,joe,roc a=blocking-betaN 2011-02-14 18:23:50 -05:00
Bas Schouten
ee836680d4 Bug 629866 - Part 10: Do not upload during SetData call on D3D9. r=jrmuizel a=blocking-final 2011-02-15 00:47:33 +01:00
Bas Schouten
77f13811a0 Bug 629866 - Part 9: Improve ImageLayerD3D9 uploading code. r+a=roc 2011-02-15 00:47:30 +01:00
Matt Woodrow
c7b2e69359 Bug 591687: Add new image type for IOSurfaces on Mac OS X. r=roc r=benwa a=blocking2.0betaN+ 2011-02-12 11:02:08 -05: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
Bas Schouten
10cfa9a30f Bug 633511: Detect surface content type in the correct spot. r=jrmuizel a=blocking-betan 2011-02-11 23:46:28 +01: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
Bas Schouten
1c14e4c680 Bug 628173 - Part 2: Update CanvasLayerD3D10 to match D3D9 style. r=jrmuizel a=blocking-final 2011-02-10 21:03:51 +01:00
Bas Schouten
a50d7fec39 Bug 628173 - Part 1: Update CanvasLayerD3D9 to respect surface content type. r=jrmuizel a=blocking-final 2011-02-10 21:03:24 +01: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
Jeff Muizelaar
16fc2e763f Bug 632822. Hookup LayerManager ReportFailure to LogFailure. r=bas,a=ehsan
--HG--
extra : rebase_source : 1ed9c86005f4ce8c5088b4b5fca6976a0e41113d
2011-02-09 14:28:39 -05: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
Bas Schouten
c059a5cf5b Bug 612103 - Followup: Only report a failure when the call actually fails. r=jrmuizel a=blocking-final 2011-02-08 18:44:14 -06:00
Bas Schouten
8766ff250d Bug 626602, part 6: Implement asynchronous D3D10 readback. r=cjones,jrmuizel 2011-02-04 20:30:00 -06:00
Robert O'Callahan
482c9382e3 Bug 626602. Part 5: Implement ReadbackLayers for D3D9. r=bas 2011-02-08 18:44:14 -06: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
Robert O'Callahan
b686367c7d Bug 626602. Part 0: Fix header guards. r=bas 2011-02-08 18:44:12 -06:00
Matt Woodrow
09d98c08b1 Bug 586683 - Part 4 - Add resolution handling to ThebesLayerD3D10. r=Bas a=blocking2.0 2011-02-09 09:40:34 +13:00
Matt Woodrow
1900c321f0 Bug 586683 - Part 3 - Add resolution handling to ThebesLayerD3D9. r=Bas a=blocking2.0 2011-02-09 09:39:09 +13:00
Matt Woodrow
a159a42fa7 Bug 586683 - Part 2b - Add resolution handling to ThebesLayerOGL. r=joe a=blocking2.0 2011-02-09 09:37:47 +13: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
Oleg Romashin
904d0f5b72 Bug 607936 - Make possible to apply transform on topLevel LayerManager scene r=matt,roc a=joe 2011-02-04 14:47:06 -05:00
Ehsan Akhgari
2312c4c0f3 Backout all of the bugs in the 7e12e3e16e6c pushlog because of the orange.
It is not clear which one of these bugs is at fault.
2011-02-04 16:34:02 -05:00
Oleg Romashin
389b8f7d19 Bug 607936 - Make possible to apply transform on topLevel LayerManager scene r=matt,roc a=joe
--HG--
extra : rebase_source : 7983ed59e06d33e5c17878a24434eef409684d25
2011-02-04 14:47:06 -05: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
Robert O'Callahan
50259b5af5 Bug 626962. Implement empty transactions for GL. r=bas,a=blocking 2011-01-25 21:45:17 +13:00
Vladimir Vukicevic
02369aa833 Bug 630019 - updated ANGLE PBuffers patch (makes ANGLE work again) - r=bjacob, a=blocking2.0 2011-01-31 20:58:21 -05:00
Bas Schouten
84543736fd Bug 612846 - Part 5: Make ContainerLayerD3D10 support component alpha. r=jrmuizel a=blocking-betan 2011-01-28 06:34:33 +01:00
Matt Woodrow
f2d8203ffd Bug 612846 - Part 4: Make ThebesLayerD3D10 support component alpha. r=bas a=blocking-betan 2011-01-28 06:34:31 +01:00
Matt Woodrow
22db1e75f9 Bug 612846 - Part 3: Add component alpha shaders to D3D10. r=bas a=blocking-betan 2011-01-28 06:34:29 +01:00
Matt Woodrow
b44d6291e3 Bug 612846 - Part 1: Refactor ThebesLayers to only draw within Validate. r=bas a=blocking-betan 2011-01-28 06:34:25 +01:00
Ehsan Akhgari
e8e495cf5f Backout bug 626962 on suspicion of causing test failures and being completely untested before landing 2011-01-26 17:36:24 -05: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
Chris Jones
c7c39d08c5 Bug 627273, part 1: API for tiling Layers. r=Bas sr=roc 2011-01-26 00:26:37 -06:00
Bas Schouten
1b1056c760 Bug 628658: Ensure the container layer's clip is reset when done drawing a layer. r=roc,joedrew a=blocking-final 2011-01-26 05:54:35 +01: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
Robert O'Callahan
719e4bf2b2 Bug 627393. Set correct alpha value for D3D10 ColorLayers. r=bas,a=blocking 2011-01-25 21:45:49 +13:00
Robert O'Callahan
2f8e1ee208 Bug 626962. Implement empty transactions for GL. r=bas,a=blocking 2011-01-25 21:45:17 +13:00
Oleg Romashin
21f38db312 Bug 627661 - RGBA surface clear was broken in 593733 r=roc,mattwoodrow a=approval2.0 2011-01-24 21:31:35 +02:00
Bas Schouten
17a7cc5fec Bug 625043: Properly save and restore old clip rect. r=jrmuizel a=blocking-final 2011-01-24 19:57:19 +01: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
Ryan VanderMeulen
3d60198461 Bug 586130 - Warning C4099 fixes (ipc). r=cjones a=bsmedberg 2011-01-20 19:49:09 -08:00
Doug Turner
2a68876c25 [mq]: Backout of df6f10906476 2011-01-19 20:47:45 -08:00
Doug Turner
80184682ae [mq]: Backout of 69e4f4ecbdc2 2011-01-19 20:46:08 -08:00
Doug Turner
6ae0d1cace [mq]: Backout of aeb9104f1534 2011-01-19 20:45:20 -08:00
Doug Turner
2ecfdb6185 [mq]: Backout of 89c2c85429fb 2011-01-19 20:44:35 -08:00
Matt Woodrow
d590d84cf4 Bug 627179 - Fix LayerManagerD3D10 debug name. r=Bas a=joe 2011-01-20 15:47:47 +13:00
Matt Woodrow
b84045b61a Bug 612846 - Part 5 - Make ContainerLayerD3D10 support component alpha. r=Bas a=blocking2.0 try: -b do -p win32 -u all -t all 2011-01-20 15:47:39 +13:00
Matt Woodrow
8ce139aa1a Bug 612846 - Part 4 - Make ThebesLayerD3D10 support component alpha. r=Bas a=blocking2.0 2011-01-20 15:47:39 +13:00
Matt Woodrow
8ad676f560 Bug 612846 - Part 3 - Add component alpha shaders to LayerManagerD3D10. r=Bas a=blocking2.0 2011-01-20 15:47:39 +13:00
Matt Woodrow
6e6022d0bd Bug 612846 - Part 1 - Refactor ThebesLayerD3D10 to only draw within Validate(). r=Bas a=blocking2.0 2011-01-20 15:47:38 +13: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
c69232aaac Bug 621601. Part 4: Fix ImageLayers to handle null current image. r=bas,a=me 2011-01-19 21:27:54 +13:00
Robert O'Callahan
3b5063283b Bug 621601. Part 3: Implement EndEmptyTransaction for D3D10. r=bas,a=joe 2011-01-19 21:27:54 +13:00
Robert O'Callahan
d991ebb2ba Bug 621601. Part 2: Implement EndEmptyTransaction for D3D9. r=bas,a=joe 2011-01-19 21:27:54 +13: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
4c8a59948a Bug 625409. ColorLayer implementations need to premultiply by the alpha value of their color. r=bas,a=blocking 2011-01-19 21:27:54 +13:00
Jeff Muizelaar
47330451db Bug 625508. This moves the GfxInfo checks out of LayerManagerOGL and into the callers. r=vlad
--HG--
extra : rebase_source : 6545f8a3982b04147b41907f1d2f2dd4768538e2
2011-01-18 15:11:19 -05:00
Jeff Muizelaar
9b50356c4e Bug 625508. Move context creation out of LayerManagerOGL::Initialize() r=vlad
- Removes support for reinitialization.
- Moves context creation up to the callers.

--HG--
extra : rebase_source : 66716292da75af8513eaa5a7dff1211cafdf8236
2011-01-18 15:11:18 -05:00
Matt Woodrow
10a7c01a81 Bug 593733 - Support component alpha with GL layers. r=roc, r=joe, a=betaN 2011-01-18 08:22:25 +01:00
Matt Woodrow
b3f50f7e52 Bug 593733 - Make TextureImage::BeginUpdate return a surface, not a context. r=joe, a=betaN 2011-01-18 08:21:12 +01:00
Matt Woodrow
ff93946c65 Bug 622165 - Don't try to draw ThebesLayerOGL's that are greater than the max texture size. r=joe a=blocking2.0 2011-01-18 14:32:40 +13:00
Matt Woodrow
84d4c6a671 Bug 621778 - Allow TextureImage to upload regions instead of only rectangles. r=joe a=blocking2.0 2011-01-18 14:32:40 +13:00
Matt Woodrow
2406e613cc Bug 586683 - ImageContainers can have no manager. r=Bas a=bustage 2011-01-18 12:00:43 +13:00
Matt Woodrow
3aa3a68561 Bug 620799 - Fallback to normal surface allocation if creating a PBO fails. r=joe a=blocking2.0 2011-01-18 10:47:18 +13:00
Matt Woodrow
0f65fdc7c4 Bug 586683 - Part 4 - Move images into a separate ImageLayer when they are the only item in a ThebesLayer. r=roc a=blocking2.0 2011-01-18 10:47:18 +13:00
Bas Schouten
f7657faacd Bug 624088: Recreate our device agressively on device losses. r=jrmuizel a=joedrew 2011-01-17 21:28:24 +00: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
Bas Schouten
12030ea7ec Bug 622482 - Part 5: Enable subpixel AA for D2D surfaces that we believe do not need component alpha. r=roc a=blocking-betaN 2011-01-16 03:30:05 +01:00
Mark Banner
0db3b4ac06 Bustage fix for non-IPC and for shared builds following bug 605618. a=bustage fix 2011-01-13 20:01:45 +00:00
Benjamin Stover
6f57e84190 Bug 605618 Part 7: Include viewport and content size in API r=cjones sr=roc 2011-01-13 09:45:14 -08:00
Benjamin Stover
5950a36396 Bug 605618 Part 1: Tag layers with scrollable information r=cjones sr=roc a=blocking-fennec 2011-01-13 09:45:14 -08:00
Oleg Romashin
d6fc95290e Bug 618788 - Not initialized used in CairoImageOGL::SetData r=roc a=approval2.0 2011-01-13 15:20:46 +02:00
Dhiren Bhatia
f766495afc Bug 617220 - Add 3DVision stereoscopic rendering support to D3D10 layers. r=bas.schouten r=vlad a=roc a=vlad 2011-01-12 17:51:27 +13:00