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

Issue 2376743002: Implement commit for unaccelerated canvas with GPU compositing (Closed)

Created:
4 years, 2 months ago by xidachen
Modified:
4 years, 2 months ago
CC:
chromium-reviews, f(malita), krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, jam, jbroman, Rik, darin-cc_chromium.org, pdr+graphicswatchlist_chromium.org, blink-reviews, piman+watch_chromium.org, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement commit for unaccelerated canvas with GPU compositing This CL implements OffscreenCanvas2d's commit API in the case where the canvas is not GPU-accelerated, but the compositor is. In this case, we extract a StaticBitmapImage from the imageBuffer, upload the CPU memory that the StaticBitmapImage holds to GPU texture, and prepare a CompositorFrame from the GPU texture. A GPU pixel test is added to test this code path. BUG=563852 TBR=kbr@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel Committed: https://crrev.com/5371a41d019eb15db652d406a7c0f63ea179cbbe Cr-Commit-Position: refs/heads/master@{#422927}

Patch Set 1 #

Patch Set 2 : restructure code, needs clean up #

Patch Set 3 : clean up #

Patch Set 4 : rebase after Blink Reformat, may need a small cleanup #

Patch Set 5 : clean up #

Patch Set 6 : another minor cleanup #

Total comments: 4

Patch Set 7 : address comments #

Total comments: 1

Patch Set 8 : name change #

Patch Set 9 : fix windbg compile error #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -34 lines) Patch
M content/test/gpu/gpu_tests/pixel_expectations.py View 1 2 3 4 1 chunk +2 lines, -0 lines 1 comment Download
M content/test/gpu/gpu_tests/pixel_test_pages.py View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h View 1 2 3 4 5 6 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp View 1 2 3 4 5 6 7 8 5 chunks +121 lines, -33 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
xidachen
PTAL
4 years, 2 months ago (2016-10-04 13:20:32 UTC) #4
Justin Novosad
https://codereview.chromium.org/2376743002/diff/100001/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp File third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp (right): https://codereview.chromium.org/2376743002/diff/100001/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp#newcode90 third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp:90: // Try to optimize the first frame in the ...
4 years, 2 months ago (2016-10-04 14:20:48 UTC) #5
xidachen
https://codereview.chromium.org/2376743002/diff/100001/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp File third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp (right): https://codereview.chromium.org/2376743002/diff/100001/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp#newcode90 third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp:90: // Try to optimize the first frame in the ...
4 years, 2 months ago (2016-10-04 14:43:06 UTC) #6
Justin Novosad
lgtm
4 years, 2 months ago (2016-10-04 15:01:58 UTC) #7
Justin Novosad
https://codereview.chromium.org/2376743002/diff/120001/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp File third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp (right): https://codereview.chromium.org/2376743002/diff/120001/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp#newcode56 third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp:56: void OffscreenCanvasFrameDispatcherImpl::setTransferableResourceCase1( You forgot to rename here
4 years, 2 months ago (2016-10-04 15:02:58 UTC) #8
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/2376743002/160001
4 years, 2 months ago (2016-10-04 18:14:27 UTC) #19
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 2 months ago (2016-10-04 21:04:05 UTC) #21
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/5371a41d019eb15db652d406a7c0f63ea179cbbe Cr-Commit-Position: refs/heads/master@{#422927}
4 years, 2 months ago (2016-10-04 21:04:32 UTC) #23
Ken Russell (switch to Gerrit)
LGTM after the fact. https://codereview.chromium.org/2376743002/diff/160001/content/test/gpu/gpu_tests/pixel_expectations.py File content/test/gpu/gpu_tests/pixel_expectations.py (right): https://codereview.chromium.org/2376743002/diff/160001/content/test/gpu/gpu_tests/pixel_expectations.py#newcode38 content/test/gpu/gpu_tests/pixel_expectations.py:38: self.Fail('Pixel_OffscreenCanvasUnaccelerated2DGPUCompositingWorker', bug=563858) >80 cols
4 years, 2 months ago (2016-10-05 00:06:24 UTC) #25
xidachen
4 years, 2 months ago (2016-10-05 00:07:46 UTC) #26
Message was sent while issue was closed.
On 2016/10/05 00:06:24, Ken Russell wrote:
> LGTM after the fact.
> 
>
https://codereview.chromium.org/2376743002/diff/160001/content/test/gpu/gpu_t...
> File content/test/gpu/gpu_tests/pixel_expectations.py (right):
> 
>
https://codereview.chromium.org/2376743002/diff/160001/content/test/gpu/gpu_t...
> content/test/gpu/gpu_tests/pixel_expectations.py:38:
> self.Fail('Pixel_OffscreenCanvasUnaccelerated2DGPUCompositingWorker',
> bug=563858)
> >80 cols

Thanks Ken. I am watching the bots now, will remove these failure entries once
all reference images are generated.

Powered by Google App Engine
This is Rietveld 408576698