Commit Graph

296 Commits

Author SHA1 Message Date
Jeff Muizelaar
9d8eac9d0b Bug 1044241. Discard tile back buffers that haven't been recently used. r=nical
Tracks tiles that have a back buffer with a nsExpirationTracker and discards
them after a while. This should help us claim back tile memory for tiles
that have stopped changing.
2014-07-31 23:25:37 -04:00
Wes Kocher
e230d2b1cf Backed out 11 changesets (bug 952977) for reftest-no-accel failures
Backed out changeset ea2367c19da3 (bug 952977)
Backed out changeset c401c8748eb3 (bug 952977)
Backed out changeset a93e9ff1043b (bug 952977)
Backed out changeset 765b7f67163e (bug 952977)
Backed out changeset 3d8cf4f5777f (bug 952977)
Backed out changeset 8993710a3ab3 (bug 952977)
Backed out changeset 1298c39b745a (bug 952977)
Backed out changeset be0b899fbe5e (bug 952977)
Backed out changeset f69bea1f1feb (bug 952977)
Backed out changeset 1a745777f07e (bug 952977)
Backed out changeset 5ad1d18dfe17 (bug 952977)
2014-07-29 18:58:46 -07:00
David Zbarsky
f1c024ef08 Bug 952977: More gfx::Matrix cleanups r=nical 2014-07-29 19:18:51 -04:00
David Zbarsky
7d603978fe Bug 952977: More gfx::Matrix cleanup in TiledContentClient r=nical 2014-07-29 19:18:50 -04:00
David Zbarsky
4e72ae5005 Bug 952977: More gfx::Matrix cleanup in AsyncCompositionManager r=nical 2014-07-29 19:18:49 -04:00
Benoit Girard
dd8c559920 Bug 1036654 - Report the tile fragmentation overhead. r=njn,kats,cwiiis 2014-07-24 13:34:43 -04:00
Sotaro Ikeda
e8fd34c868 Bug 1042946 - Discard back buffer on error in ClientTiledLayerBuffer::ValidateTile() r=nical 2014-07-24 06:40:17 -07:00
Kartikaya Gupta
e480e44f68 Bug 1040906 - Replace the out-param on matrix conversion helpers with a return value. r=Bas 2014-07-22 09:12:14 -04:00
Jeff Muizelaar
543f2cc53b Bug 1023473. Pad out tile contents by one pixel. r=BenWa
This fixes reading unitialized data during texture filtering.
It's complicated because we can have regions of initialized data
and padding out a region is much harder than a rectangle.

We currently only take this path for tiled things because of
the artifacts that show up during the sampling that helps
in overscroll. It's also not a great long term solution because
it only works for software backends.
2014-07-18 14:25:34 -04:00
Sotaro Ikeda
e9f22928b0 Bug 1039883 - release Tiled layer's gralloc when an application is background r=nical 2014-07-19 05:33:12 -07:00
Wes Kocher
a38cfddcd3 Backed out changeset 9b764e12796d (bug 1039883) for b2g m7 failures 2014-07-18 14:21:44 -07:00
Sotaro Ikeda
010ff9062f Bug 1039883 - release Tiled layer's gralloc when an application is background r=nical 2014-07-18 12:40:35 -07:00
Carsten "Tomcat" Book
dbc1e7e9d8 Backed out changeset 79d65a1bbb01 (bug 1039883) for assertion failures on a CLOSED TREE 2014-07-18 16:09:15 +02:00
Sotaro Ikeda
493aa8441b Bug 1039883 - release Tiled layer's gralloc when an application is background r=nical 2014-07-18 06:21:24 -07:00
Wes Kocher
818b6ecf28 Backed out changeset d5607eeaa106 (bug 1036654) for Windows build bustage on a CLOSED TREE 2014-07-16 13:16:40 -07:00
Benoit Girard
6a677ac722 Bug 1036654 - Report the tile fragmentation overhead. r=njn,kats,cwiiis 2014-07-16 15:58:03 -04:00
Botond Ballo
bdc43e3024 Bug 1039593 - Clean up the TILING_LOG macros. r=kats 2014-07-16 12:42:35 -04:00
Kartikaya Gupta
8287e84642 Bug 1035801 - Switch the tiling logging code from NSPR logging to printf_stderr. r=Cwiiis 2014-07-08 12:38:49 -04:00
Kartikaya Gupta
57aaa1ac3b Bug 1034258 - Change mCompositionBounds to be a ParentLayerRect instead of a ParentLayerIntRect. r=Cwiiis 2014-07-04 08:12:41 -04:00
Kartikaya Gupta
ec430ec9b9 Bug 1027851 - Add some more logging for when we abort paints. r=Cwiiis 2014-07-03 18:26:03 -04:00
Kartikaya Gupta
bf737e2f0f Bug 1024126 - Fix rounding errors and add a danger zone to the B2G AboutToCheckerboard heuristic function. r=Cwiiis 2014-06-23 20:54:32 -04:00
Kartikaya Gupta
a41424d8d3 Back out bug 1021248 for causing bug 1028271. r=backout 2014-06-23 14:38:02 -04:00
Kartikaya Gupta
1c6ca9a0e9 Bug 1021085 - Miscellaneous cleanup. r=Cwiiis 2014-06-23 08:42:53 -04:00
Kartikaya Gupta
d533186fe2 Bug 1021085 - Use the entire compositor-side composition bounds as the coherent update rect on B2G. r=Cwiiis r=BenWa 2014-06-23 08:42:53 -04:00
Kartikaya Gupta
e4121fd891 Bug 1021085 - Fix up the Fennec code path as well. r=Cwiiis 2014-06-23 08:42:53 -04:00
Kartikaya Gupta
96dcb424ca Bug 1021085 - Inflate the painted rect a bit to deal with rounding error. r=Cwiiis 2014-06-23 08:42:19 -04:00
Kartikaya Gupta
220edc1143 Bug 1021085 - Fix up the transform used for the compositor side composition bounds. r=Cwiiis 2014-06-23 08:42:01 -04:00
Kartikaya Gupta
b3703bb13a Bug 1021085 - Refactor code to ensure we use the same scrolling ancestor layer everywhere. r=Cwiiis 2014-06-23 08:41:09 -04:00
Sotaro Ikeda
38099c8f38 Bug 1027088 - Ensure fence delivery for TiledContentClient on gonk r=nical 2014-06-19 19:41:36 -07:00
Kartikaya Gupta
557575f896 Bug 1021248 - Update the low-res tiles even when not in risk of checkerboarding. r=Cwiiis 2014-06-19 09:27:32 -04:00
Kartikaya Gupta
06a137cc3a Bug 1026756 - Detect when a scroll offset update is going to remove checkerboarding, and don't leave things in a low-precision state. r=Cwiiis 2014-06-19 09:27:31 -04:00
Sotaro Ikeda
1e3fa8c17c Bug 1026432 - Add GetCompositorChild() to ClientLayerManager r=nical 2014-06-17 19:42:34 -07:00
Kartikaya Gupta
a9d6a12a95 Bug 1025562 - Remove improper use of viewport in tiling calculations. r=Cwiiis 2014-06-17 12:44:12 -04:00
Kartikaya Gupta
73ef2da644 Bug 1025562 - Add logging to TiledContentClient. r=Cwiiis 2014-06-17 12:43:12 -04:00
Kartikaya Gupta
47ca9438a1 Bug 1023882 - Part 6 - Move all SetRepeatTransaction calls into ClientTiledThebesLayer so it's easier to follow the flow. r=Cwiiis 2014-06-11 12:42:45 -04:00
Wes Kocher
a831a1dd68 Backed out 8 changesets (bug 1023882) for b2g mochitest-4 orange on a CLOSED TREE
Backed out changeset 501167f9e525 (bug 1023882)
Backed out changeset 811d536995cf (bug 1023882)
Backed out changeset c38a0cb1e00c (bug 1023882)
Backed out changeset 4ba2f2a98114 (bug 1023882)
Backed out changeset 42e44e1eb363 (bug 1023882)
Backed out changeset a92435f75f89 (bug 1023882)
Backed out changeset 039cfd09fa32 (bug 1023882)
Backed out changeset 05e8c4ee536d (bug 1023882)
2014-06-11 16:39:01 -07:00
Wes Kocher
ee33c9f7ef Backed out changeset bc9031f59e1c (bug 1021248) for Werror bustage 2014-06-11 14:46:59 -07:00
Kartikaya Gupta
7b10212a12 Bug 1021248 - Update the low-res tiles even when not in risk of checkerboarding. r=Cwiiis 2014-06-11 17:22:00 -04:00
Nicolas Silva
dc075c6966 Bug 1023350 - Rename TextureClient::GetAsDrawTarget into TextureClient::BorrowDrawTarget and fix TextureClientX11. r=bjacob 2014-06-11 14:57:58 -04:00
Kartikaya Gupta
14f0ee8cde Bug 1023882 - Part 6 - Move all SetRepeatTransaction calls into ClientTiledThebesLayer so it's easier to follow the flow. r=Cwiiis 2014-06-11 12:42:45 -04:00
Chris Lord
46041cdb7a Bug 1011569 - Remove PreferMemoryOverShmem in favour of IsSameProcess. r=nical 2014-06-11 14:52:19 +01:00
Kartikaya Gupta
7ec4e4cf22 Bug 1018387 - Update various variables and comments to reflect the fact that the values are in layer pixels and not layout device pixels. r=Cwiiis 2014-06-09 14:02:39 -04:00
Victor Porof
298ca2ed1b Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj 2014-05-23 17:12:29 -04:00
Kartikaya Gupta
5b4ce702f7 Bug 1016558 - Rename some variables to be more meaningful, and update some comments. r=botond r=Cwiiis
Renames:
  displayPortParent -> displayPortAncestor
  scrollParent -> scrollAncestor
  parent -> ancestor
  displayPortParentParent -> displayPortAncestorGrandParent
  layoutDeviceToScrollParentLayer -> layoutDeviceToDisplayPort
  mTransformParentLayerToLayoutDevice -> mTransformDisplayPortToLayoutDevice
  aTransformParentLayerToLayoutDevice -> aTransformDisplayPortToLayoutDevice
2014-05-29 12:47:41 -04:00
Kartikaya Gupta
c1acf6dc65 Bug 1001438 - Change layers.low-precision-resolution to be a float pref instead of a divide-by-1000 int pref. r=Cwiiis 2014-05-21 12:06:02 -04:00
Carsten "Tomcat" Book
670f72d234 Backed out changeset a6f85ff386c1 (bug 1011569) for m5 test failures on OS X 2014-05-19 13:46:02 +02:00
Chris Lord
8a939b2610 Bug 1011569 - Remove PreferMemoryOverShmem in favour of IsSameProcess. r=nical 2014-05-19 10:45:12 +01:00
Kartikaya Gupta
aff8046747 Bug 1006579 - Fix the AboutToCheckerboard implementation to actually work. r=Cwiiis 2014-05-06 14:29:47 -04:00
Matt Woodrow
157581cc27 Bug 952721 - Don't crash if our surface allocation fails in TiledContentClient. r=Bas 2014-05-02 14:28:52 +12:00
Benoit Jacob
6f2d2f66cd Bug 987311 - 5/6 - Convert the rest of CompositorTypes.h to typed enums, auto regex changes - r=nical
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)DIAGNOSTIC_\(NONE\|TILE_BORDERS\|LAYER_BORDERS\|BIGIMAGE_BORDERS\|FLASH_BORDERS\)\($\|[^A-Za-z0-9_]\)/\1DiagnosticTypes::\2\3/g'
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/DiagnosticTypes\:\:NONE/DiagosticTypes::NO_DIAGNOSTIC/g'
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)DIAGNOSTIC_\(IMAGE\|CONTENT\|CANVAS\|COLOR\|CONTAINER\|TILE\|BIGIMAGE\|COMPONENT_ALPHA\|REGION_RECT\)\($\|[^A-Za-z0-9_]\)/\1DiagnosticFlags::\2\3/g'
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)EFFECT_\(MASK\|MAX_SECONDARY\|RGB\|YCBCR\|COMPONENT_ALPHA\|SOLID_COLOR\|RENDER_TARGET\|MAX\)\($\|[^A-Za-z0-9_]\)/\1EffectTypes::\2\3/g'
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)TEXTURE_\(CONTENT\|SHMEM\|YCBCR\|SHARED_GL\|SHARED_GL_EXTERNAL\|STREAM_GL\|FALLBACK\)\($\|[^A-Za-z0-9_]\)/\1DeprecatedTextureClientType::\2\3/g'
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(BUFFER_UNKNOWN\|BUFFER_IMAGE_SINGLE\|BUFFER_IMAGE_BUFFERED\|BUFFER_BRIDGE\|BUFFER_CONTENT\|BUFFER_CONTENT_DIRECT\|BUFFER_CONTENT_INC\|BUFFER_TILED\|BUFFER_SIMPLE_TILED\|COMPOSITABLE_IMAGE\|COMPOSITABLE_CONTENT_SINGLE\|COMPOSITABLE_CONTENT_DOUBLE\|BUFFER_COUNT\)\($\|[^A-Za-z0-9_]\)/\1CompositableType::\2\3/g'
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/CompositableType\:\:COMPOSITABLE_/CompositableType::/g'
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)TEXTURE_HOST_\(DEFAULT\|TILED\|COPY_PREVIOUS\)\($\|[^A-Za-z0-9_]\)/\1DeprecatedTextureHostFlags::\2\3/g'
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)Texture\(Front\|Back\|OnWhiteFront\|OnWhiteBack\)\($\|[^A-Za-z0-9_]\)/\1TextureIdentifier::\2\3/g'
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(OPEN_NONE\|OPEN_READ\|OPEN_WRITE\|OPEN_READ_WRITE\|OPEN_READ_ONLY\|OPEN_WRITE_ONLY\)\($\|[^A-Za-z0-9_]\)/\1OpenMode::\2\3/g'
find gfx/layers -type f | grep -v CompositorTypes.h | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(MaskNone\|Mask2d\|Mask3d\|NumMaskTypes\)\($\|[^A-Za-z0-9_]\)/\1MaskType::\2\3/g'
find gfx -type f | xargs sed -i 's/Diagostic/Diagnostic/g'
2014-04-25 22:34:06 -04:00