gecko-dev/gfx/layers
Dzmitry Malyshau 681ee8a0d0 Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw
The gist of the problem I introduced with the framebuffer coordinate system is that we provided the window rect (effectively) twice:
  1. when computing the document rectangle (and Y-inverting it)
  2. when rendering

If between these points the window got resized (during scene building), we end up with our document aligned to bottom left corner.
The user expects content to still be aligned to the top left, so that's what is visible as a bug.

The change here switched scene building to only care about device coordinate space, restraining the framebuffer coordinates to be mostly
an implementation detail of the renderer/device (the way it was originally meant to be, when introduced). This way the current window size
is only considered once during rendering.

Differential Revision: https://phabricator.services.mozilla.com/D28731

--HG--
extra : moz-landing-system : lando
2019-04-25 13:02:47 +00:00
..
apz Bug 1545342 - part 3: Move remaining public enum of nsIPresShell to mozilla namespace in mozilla/PresShellForwards.h and make them enum class r=smaug 2019-04-25 05:04:23 +00:00
basic Bug 1545892 - Reduce includes in gfx2DGlue.h, nsLayoutUtils.h, nsPresContext.h. r=dholbert 2019-04-22 19:58:52 +00:00
client Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-04-12 13:14:25 +00:00
composite Bug 1543621 - Move Y flip handling to AsyncImagePipelineManager::ApplyAsyncImageForPipeline() r=nical 2019-04-23 12:29:24 +00:00
d3d11 Bug 1540581 - P17. Remove DXGITextureData object. r=nical 2019-04-11 12:39:08 +00:00
ipc Bug 1546298 - Set CompositorManagerParent::sInstance in GPU process r=nical 2019-04-23 12:21:56 +00:00
layerviewer Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
mlgpu Bug 1538736 - Make extra sure Compositables don't refer back to layers after reassignment. r=sotaro 2019-04-19 18:26:04 +00:00
opengl Bug 1544703 - Enable WebRenderTextureHostWrapper usage for SurfaceTextureHost r=nical 2019-04-23 12:30:20 +00:00
protobuf
wr Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
AnimationHelper.cpp Bug 1540581 - P7. Use Variant instead of Union/Enum. r=kats 2019-04-11 12:37:06 +00:00
AnimationHelper.h Bug 1540581 - P7. Use Variant instead of Union/Enum. r=kats 2019-04-11 12:37:06 +00:00
AnimationInfo.cpp Bug 1534395 - Rename TabChild to BrowserChild. r=nika 2019-04-09 17:39:01 -05:00
AnimationInfo.h Bug 1425837 - Part 6: Add individual transform properties into compositor animation list. r=hiro 2019-03-18 18:05:00 +00:00
AsyncCanvasRenderer.cpp Bug 1542344 - fix API mismatches in ImageEncoder; r=mccr8 2019-04-08 01:51:17 +00:00
AsyncCanvasRenderer.h Bug 1542344 - fix API mismatches in ImageEncoder; r=mccr8 2019-04-08 01:51:17 +00:00
AtomicRefCountedWithFinalize.h
AxisPhysicsModel.cpp
AxisPhysicsModel.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
AxisPhysicsMSDModel.cpp
AxisPhysicsMSDModel.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
BSPTree.cpp
BSPTree.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
BufferTexture.cpp Bug 1493898 - P6. Move YUVColorSpace definition in the gfx namespace. r=mattwoodrow. 2019-04-11 12:41:33 +00:00
BufferTexture.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
CanvasRenderer.cpp Bug 1506665 - Add more GLContext failure handling r=jgilbert 2019-03-01 22:37:37 +00:00
CanvasRenderer.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-03-13 10:19:06 +01:00
CompositionRecorder.cpp Bug 1536174 - Part 1: Add API for recording composition results with content. r=mstange 2019-03-12 16:06:48 +01:00
CompositionRecorder.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
Compositor.cpp Bug 1544572 - Support composition recording for LayerManagerComposite r=mstange 2019-04-17 21:31:37 +00:00
Compositor.h Bug 1544572 - Support composition recording for LayerManagerComposite r=mstange 2019-04-17 21:31:37 +00:00
CompositorTypes.h
CopyableCanvasRenderer.cpp Bug 1506665 - Add more GLContext failure handling r=jgilbert 2019-03-01 22:37:37 +00:00
CopyableCanvasRenderer.h Bug 1530471 - remove layers SkiaGL glue r=jrmuizel 2019-02-28 15:00:06 +00:00
D3D9SurfaceImage.cpp Bug 1540581 - P11. Handle colorspace correctly with D3D11 images. r=mattwoodrow,nical 2019-04-11 12:38:49 +00:00
D3D9SurfaceImage.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
D3D11ShareHandleImage.cpp Bug 1540581 - P18. Move destination texture type choice to the D3D11 texture allocator. r=mattwoodrow 2019-04-11 12:39:12 +00:00
D3D11ShareHandleImage.h Bug 1540581 - P18. Move destination texture type choice to the D3D11 texture allocator. r=mattwoodrow 2019-04-11 12:39:12 +00:00
D3D11YCbCrImage.cpp Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
D3D11YCbCrImage.h Bug 1540581 - P16. Mark allocation helper class as RAII. r=nical 2019-04-11 12:39:04 +00:00
DirectedGraph.h
DirectionUtils.h
Effects.cpp
Effects.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
FrameMetrics.cpp Bug 1544198 - Use the proper frame to get scroll-snap-type value on the root element. r=botond 2019-04-23 01:16:02 +00:00
FrameMetrics.h Bug 1546038 - Include scroll-margin areas into snap area. r=botond 2019-04-23 03:58:57 +00:00
GLImages.cpp Bug 1538969 - Report an opaque surface format for AndroidSurfaceTextureData when it's being used for an opaque video. r=jya 2019-04-10 08:08:22 +00:00
GLImages.h Bug 1538969 - Report an opaque surface format for AndroidSurfaceTextureData when it's being used for an opaque video. r=jya 2019-04-10 08:08:22 +00:00
GPUVideoImage.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
ImageContainer.cpp Bug 1545892 - Reduce includes in gfx2DGlue.h, nsLayoutUtils.h, nsPresContext.h. r=dholbert 2019-04-22 19:58:52 +00:00
ImageContainer.h Bug 1544478 - Remove unused method Image::GetBuffer(). r=mattwoodrow 2019-04-16 17:04:41 +00:00
ImageDataSerializer.cpp Bug 1493898 - P6. Move YUVColorSpace definition in the gfx namespace. r=mattwoodrow. 2019-04-11 12:41:33 +00:00
ImageDataSerializer.h Bug 1493898 - P6. Move YUVColorSpace definition in the gfx namespace. r=mattwoodrow. 2019-04-11 12:41:33 +00:00
ImageLayers.cpp
ImageLayers.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
ImageTypes.h Bug 1493898 - P6. Move YUVColorSpace definition in the gfx namespace. r=mattwoodrow. 2019-04-11 12:41:33 +00:00
IMFYCbCrImage.cpp Bug 1523969 part 8 - Move method definition inline comments to new line in 'gfx/'. r=kats 2019-02-25 16:07:19 -06:00
IMFYCbCrImage.h
IPDLActor.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
LayerAttributes.h Bug 1521644 - Add a layer property that indicates async zoom container layers. r=mattwoodrow 2019-02-01 18:29:11 +00:00
LayerMetricsWrapper.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
Layers.cpp Bug 1535159 - Apply snapping to mask Layer transforms like we do for other Layer types. r=lsalzman 2019-04-10 05:13:26 +00:00
Layers.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
LayerScope.cpp Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
LayerScope.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
LayersHelpers.cpp
LayersHelpers.h
LayersLogging.cpp Bug 1441308 - Core renderroot splitting changes r=kats,sotaro 2019-03-22 18:28:42 +00:00
LayersLogging.h Bug 1441308 - Core renderroot splitting changes r=kats,sotaro 2019-03-22 18:28:42 +00:00
LayerSorter.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
LayerSorter.h
LayersTypes.cpp
LayersTypes.h Bug 1545892 - Reduce includes in gfx2DGlue.h, nsLayoutUtils.h, nsPresContext.h. r=dholbert 2019-04-22 19:58:52 +00:00
LayerTreeInvalidation.cpp Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
LayerTreeInvalidation.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
LayerUserData.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
MacIOSurfaceHelpers.cpp
MacIOSurfaceHelpers.h
MacIOSurfaceImage.cpp
MacIOSurfaceImage.h
MemoryPressureObserver.cpp
MemoryPressureObserver.h
moz.build Bug 1531962 - Add a unit test harness for MobileViewportManager. r=kats 2019-04-04 22:10:27 +00:00
PaintThread.cpp Bug 1523969 part 8 - Move method definition inline comments to new line in 'gfx/'. r=kats 2019-02-25 16:07:19 -06:00
PaintThread.h
PersistentBufferProvider.cpp Backed out changeset da9a99c4896c (bug 1531975) for causing PersistentBufferProvider build bustages CLOSED TREE 2019-03-07 18:44:24 +02:00
PersistentBufferProvider.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
ProfilerScreenshots.cpp Bug 1546500: Avoid dispatching synchronous thread shutdown runnables. r=froydnj 2019-04-23 13:16:15 -07:00
ProfilerScreenshots.h
ReadbackLayer.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
ReadbackProcessor.cpp
ReadbackProcessor.h
RenderTrace.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
RenderTrace.h
RepaintRequest.h Bug 1536157 - Make sure we repaint after accepting a visual scroll update. r=kats 2019-03-22 05:20:31 +00:00
RotatedBuffer.cpp Bug 1528881 - Part 6: gfx/layers: Make some global functions static. r=mattwoodrow 2019-02-17 14:25:01 -08:00
RotatedBuffer.h
ScrollableLayerGuid.h Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan 2019-04-05 21:41:42 +00:00
ShareableCanvasRenderer.cpp Bug 1441308 - Core renderroot splitting changes r=kats,sotaro 2019-03-22 18:28:42 +00:00
ShareableCanvasRenderer.h Bug 1441308 - Core renderroot splitting changes r=kats,sotaro 2019-03-22 18:28:42 +00:00
SourceSurfaceSharedData.cpp Bug 1534655: Fix some unified build errors inside layers. r=kats 2019-03-12 16:08:18 +01:00
SourceSurfaceSharedData.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
SourceSurfaceVolatileData.cpp
SourceSurfaceVolatileData.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
SyncObject.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
SyncObject.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
TextureDIB.cpp
TextureDIB.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
TextureSourceProvider.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
TextureSourceProvider.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
TextureSync.cpp Bug 1528881 - Part 6: gfx/layers: Make some global functions static. r=mattwoodrow 2019-02-17 14:25:01 -08:00
TextureSync.h
TextureWrapperImage.cpp
TextureWrapperImage.h
TiledLayerBuffer.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
TransactionIdAllocator.h Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel 2019-04-11 12:36:51 +00:00
TreeTraversal.h Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan 2019-04-05 21:41:42 +00:00
UpdateImageHelper.h Bug 1441308 - Core renderroot splitting changes r=kats,sotaro 2019-03-22 18:28:42 +00:00
ZoomConstraints.h