Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Issue 183103007: Implement will-change-based GPU rasterization hint (Closed)

Created:
6 years, 9 months ago by ajuma
Modified:
6 years, 9 months ago
CC:
blink-reviews, mstensho+blink_opera.com, jamesr, krit, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jbroman, blink-layers+watch_chromium.org, abarth-chromium, dglazkov+blink, Rik, jchaffraix+rendering, pdr., danakj, Stephen Chennney, rwlbuis, Vangelis Kokkevis, ernstm
Visibility:
Public.

Description

Implement will-change-based GPU rasterization hint This uses an element's will-change value to determine whether it should have a GPU rasterization hint, and uses a newly-added acceleratedCompositingForGpuRasterizationHintEnabled setting to determine whether to create composited layers for elements that have a GPU rasterization hint. will-change is currently behind a runtime flag. Intent-to-implement: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/M62y2nKZ-gE Spec: http://tabatkins.github.io/specs/css-will-change/ BUG=313532 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169013

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Include will-change:background-color and will-change:background-position #

Patch Set 5 : Rebased #

Patch Set 6 : Move hint from WebLayer to WebContentLayer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -5 lines) Patch
A LayoutTests/compositing/will-change/gpu-rasterization-hint.html View 1 2 3 1 chunk +111 lines, -0 lines 0 comments Download
A LayoutTests/compositing/will-change/gpu-rasterization-hint-expected.txt View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
M Source/core/frame/Settings.in View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBoxModelObject.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderTableRow.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.cpp View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M Source/core/rendering/compositing/CompositingReasonFinder.cpp View 1 chunk +9 lines, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 2 3 4 2 chunks +21 lines, -1 line 0 comments Download
M Source/platform/graphics/GraphicsLayer.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/platform/graphics/GraphicsLayer.cpp View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M public/platform/WebContentLayer.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ajuma
PTAL. This depends on http://crrev.com/181063022.
6 years, 9 months ago (2014-03-07 14:59:59 UTC) #1
Ian Vollick
On 2014/03/07 14:59:59, ajuma wrote: > PTAL. This depends on http://crrev.com/181063022. LayoutTests/ and Source/core/ LGTM ...
6 years, 9 months ago (2014-03-07 15:33:43 UTC) #2
Ian Vollick
https://codereview.chromium.org/183103007/diff/40001/LayoutTests/compositing/will-change/gpu-rasterization-hint.html File LayoutTests/compositing/will-change/gpu-rasterization-hint.html (right): https://codereview.chromium.org/183103007/diff/40001/LayoutTests/compositing/will-change/gpu-rasterization-hint.html#newcode80 LayoutTests/compositing/will-change/gpu-rasterization-hint.html:80: document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document); Nit: it would be nice to ...
6 years, 9 months ago (2014-03-07 15:33:51 UTC) #3
abarth-chromium
https://codereview.chromium.org/183103007/diff/40001/Source/core/rendering/RenderBox.h File Source/core/rendering/RenderBox.h (right): https://codereview.chromium.org/183103007/diff/40001/Source/core/rendering/RenderBox.h#newcode74 Source/core/rendering/RenderBox.h:74: if (isRoot() || isPositioned() || createsGroup() || hasClipPath() || ...
6 years, 9 months ago (2014-03-07 16:04:38 UTC) #4
ajuma
https://codereview.chromium.org/183103007/diff/40001/LayoutTests/compositing/will-change/gpu-rasterization-hint.html File LayoutTests/compositing/will-change/gpu-rasterization-hint.html (right): https://codereview.chromium.org/183103007/diff/40001/LayoutTests/compositing/will-change/gpu-rasterization-hint.html#newcode80 LayoutTests/compositing/will-change/gpu-rasterization-hint.html:80: document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document); On 2014/03/07 15:33:52, Ian Vollick wrote: ...
6 years, 9 months ago (2014-03-07 17:03:41 UTC) #5
ajuma
+jamesr for Source/platform/, Source/web/, and public/ Note that this now depends on chromium CL http://crrev.com/192973002.
6 years, 9 months ago (2014-03-11 15:25:38 UTC) #6
jamesr
lgtm
6 years, 9 months ago (2014-03-11 20:06:11 UTC) #7
ajuma
The CQ bit was checked by ajuma@chromium.org
6 years, 9 months ago (2014-03-12 13:01:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/183103007/110001
6 years, 9 months ago (2014-03-12 13:01:19 UTC) #9
commit-bot: I haz the power
6 years, 9 months ago (2014-03-12 13:28:16 UTC) #10
Message was sent while issue was closed.
Change committed as 169013

Powered by Google App Engine
This is Rietveld 408576698