[chromium] Don't split scrollbars into multiple tiles
Created attachment 93537 [details] Patch
I will probably also need to rebaseline a small number of tests as a result of this change, but I thought I would upload the code first.
Comment on attachment 93537 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=93537&action=review > Source/WebCore/ChangeLog:5 > + [chromium] Don't split scrollbars into multiple tiles this doesn't precisely describe what the patch does - this patch changes the behavior for layers that are <512px in one dimension and >512 in another. Can you make the title be something more generic and describe the implications for scrollbar layers in particular in the extended description part of the ChangeLog? > Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp:173 > + // (e.g. scrollbars) that are Nx1 tiles to minimize wasted texture space. this doesn't actually change the amount of space used by textures (in terms of the # of pixels), just the # of textures right? > Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp:176 > + const bool autoTiled = (layerSize.width() > maxUntiledSize && layerSize.height() > maxUntiledSize) > + || (layerSize.width() > maxUntiledSize && layerSize.height() > defaultTileSize) > + || (layerSize.height() > maxUntiledSize && layerSize.width() > defaultTileSize); can you use some descriptively named temporary bools to try to make this more readable?
(In reply to comment #3) > (From update of attachment 93537 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=93537&action=review > > > Source/WebCore/ChangeLog:5 > > + [chromium] Don't split scrollbars into multiple tiles > > this doesn't precisely describe what the patch does - this patch changes the behavior for layers that are <512px in one dimension and >512 in another. Can you make the title be something more generic and describe the implications for scrollbar layers in particular in the extended description part of the ChangeLog? Sure. You're right that this needs better explanation than I gave it. > > Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp:173 > > + // (e.g. scrollbars) that are Nx1 tiles to minimize wasted texture space. > > this doesn't actually change the amount of space used by textures (in terms of the # of pixels), just the # of textures right? No, it changes both. The tiler (for simplicity) uses a fixed tile size. So, using 256x256 tiles for a 512x15 scrollbar will waste 512x241 texels. The tile size is the one knob the tiler exposes to tweak both the number of textures and the amount of wasted texture space. > > Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp:176 > > + const bool autoTiled = (layerSize.width() > maxUntiledSize && layerSize.height() > maxUntiledSize) > > + || (layerSize.width() > maxUntiledSize && layerSize.height() > defaultTileSize) > > + || (layerSize.height() > maxUntiledSize && layerSize.width() > defaultTileSize); > > can you use some descriptively named temporary bools to try to make this more readable? Sure.
Created attachment 94098 [details] Patch
Comment on attachment 94098 [details] Patch R=me. Guessing that you'll rebaseline compositing/geometry/fixed-position.html + vertical-scroll-composited.html + fixed-position-ancestor-clip.html after landing?
Committed r87822: <http://trac.webkit.org/changeset/87822>
You also redded these: compositing/geometry/horizontal-scroll-composited.html,platform/chromium/compositing/layout-width-change.html looks like filtering diffs on the scrollbar layer: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=compositing%2Fgeometry%2Fhorizontal-scroll-composited.html%2Cplatform%2Fchromium%2Fcompositing%2Flayout-width-change.html&showLargeExpectations=true&showExpectations=true&group=%40ToT%20GPU%20Mesa%20-%20chromium.org so probably just a rebaseline
Committed r87922: <http://trac.webkit.org/changeset/87922>
Committed r87928: <http://trac.webkit.org/changeset/87928>
(In reply to comment #8) > You also redded these: compositing/geometry/horizontal-scroll-composited.html,platform/chromium/compositing/layout-width-change.html Thanks. Silly tests being marked as broken on Linux so that I don't notice them when running tests locally. :(