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

Issue 2270533002: cc: Remove the software compositing bool from PrepareTextureMailbox (Closed)

Created:
4 years, 4 months ago by danakj
Modified:
4 years, 4 months ago
CC:
chromium-reviews, blink-reviews-platform-graphics_chromium.org, dshwang, sievers+watch_chromium.org, Stephen Chennney, rwlbuis, krit, drott+blinkwatch_chromium.org, jam, jbauman+watch_chromium.org, Rik, darin-cc_chromium.org, blink-reviews, kalyank, ajuma+watch_chromium.org, mlamouri+watch-content_chromium.org, jbroman, pdr+graphicswatchlist_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, ajuma+watch-canvas_chromium.org, Ian Vollick, f(malita), cc-bugs_chromium.org, enne (OOO)
Base URL:
https://chromium.googlesource.com/chromium/src.git@softwarerendering
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Remove the software compositing bool from PrepareTextureMailbox A quick followup after https://codereview.chromium.org/2267993002/ that deletes the now-unused parameter. Since clients determine if they should give cc a GPU or software mailbox based on the GL context, we no longer need this bool parameter in PrepareTextureMailbox. Also we don't need the RendererCapabilities field anymore. In changing one Canvas2DLayerBridge test to lose the GL context then call PrepareTextureMailbox, I uncovered that this would cause DCHECKs in the method to fail since isAccelerated() returns false on the first call when the context is lost (but does not return false if PrepareTextureMailbox happens with a non-lost context at least once beforehand). So I left a call to prepareSurfaceForPaintingIfNeeded() to work around the issue with a TODO. It seems like isAccelerated() should just go away or something but I'm not sure. R=junov@chromium.org, kbr@chromium.org, piman@chromium.org TBR=pfeldman BUG=606056 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/4d0dd80db68c7aa1a43d6463d828db77ae4b0229 Cr-Commit-Position: refs/heads/master@{#413854}

Patch Set 1 : remove-prepare-mailbox-param #

Patch Set 2 : remove-prepare-mailbox-param: test_runner #

Total comments: 2

Patch Set 3 : remove-prepare-mailbox-param: bad-merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -117 lines) Patch
M cc/layers/texture_layer.cc View 1 chunk +1 line, -4 lines 0 comments Download
M cc/layers/texture_layer_client.h View 1 chunk +1 line, -2 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 4 chunks +4 lines, -8 lines 0 comments Download
M cc/output/delegating_renderer.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/output/renderer_capabilities.h View 2 chunks +1 line, -3 lines 0 comments Download
M cc/output/renderer_capabilities.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M cc/output/renderer_capabilities_impl.h View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/output/renderer_capabilities_impl.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M cc/output/software_renderer.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M components/test_runner/test_plugin.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M components/test_runner/test_plugin.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/compositor/reflector_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 2 3 chunks +2 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp View 6 chunks +16 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp View 18 chunks +25 lines, -33 lines 0 comments Download
M ui/compositor/layer.h View 1 chunk +1 line, -2 lines 0 comments Download
M ui/compositor/layer.cc View 1 chunk +1 line, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (18 generated)
danakj
piman: please review* kbr: platform/graphics/gpu OWNERS junov: platform/graphics OWNERS
4 years, 4 months ago (2016-08-22 23:49:31 UTC) #4
Ken Russell (switch to Gerrit)
LGTM. Thanks for cleaning this up.
4 years, 4 months ago (2016-08-23 00:20:28 UTC) #9
piman
lgtm https://codereview.chromium.org/2270533002/diff/20001/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp File third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp (right): https://codereview.chromium.org/2270533002/diff/20001/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp#newcode787 third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp:787: return false; Nit: this code is dupe of ...
4 years, 4 months ago (2016-08-23 00:52:40 UTC) #11
danakj
https://codereview.chromium.org/2270533002/diff/20001/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp File third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp (right): https://codereview.chromium.org/2270533002/diff/20001/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp#newcode787 third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp:787: return false; On 2016/08/23 00:52:40, piman wrote: > Nit: ...
4 years, 4 months ago (2016-08-23 00:54:44 UTC) #12
danakj
junov: just in case it's lost, this one needs your eye as well, thank you!
4 years, 4 months ago (2016-08-23 01:02:55 UTC) #14
Justin Novosad
On 2016/08/23 01:02:55, danakj wrote: > junov: just in case it's lost, this one needs ...
4 years, 4 months ago (2016-08-23 20:56:13 UTC) #18
danakj
+pfeldman for components/test_runner/ (TBR)
4 years, 4 months ago (2016-08-23 22:03:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2270533002/40001
4 years, 4 months ago (2016-08-23 22:04:30 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-23 22:10:23 UTC) #26
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 22:13:37 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4d0dd80db68c7aa1a43d6463d828db77ae4b0229
Cr-Commit-Position: refs/heads/master@{#413854}

Powered by Google App Engine
This is Rietveld 408576698