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

Issue 2440213003: Minor clean up in transferToImageBitmap API (Closed)

Created:
4 years, 2 months ago by xidachen
Modified:
4 years, 1 month ago
CC:
chromium-reviews, dshwang, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, haraken, dglazkov+blink, Rik, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Minor clean up in transferToImageBitmap API The transferToImageBitmap is an API in OffscreenCanvas. This API could throw exception in certain cases, which means that the OffscreenCanvas::transferToImageBitmap() method has a ExceptionState& parameter. In our current implementation, we do all the exception check in the above method. However, we still pass the ExceptionState& parameter to the CanvasRenderingContext::transferToImageBitmap() method, and this method is overriden by OffscreenCanvasRenderingContext2D, WebGLRenderingContext, and WebGL2RenderingContext. So this method in all these sub-classes also take a ExceptionState& parameter but do nothing with it. We should not need to pass this parameter to CanvasRenderingContext::transferToImageBitmap. TBR=kbr@chromium.org, zmo@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/f92c285443e7186ad66ef8a77ae6a73ea55240da Cr-Commit-Position: refs/heads/master@{#427188}

Patch Set 1 #

Messages

Total messages: 18 (11 generated)
xidachen
PTAL
4 years, 2 months ago (2016-10-22 14:03:58 UTC) #3
Justin Novosad
lgtm
4 years, 1 month ago (2016-10-24 17:54:51 UTC) #4
Justin Novosad
On 2016/10/24 17:54:51, Justin Novosad wrote: > lgtm Changes in webGL are trivial. you can ...
4 years, 1 month ago (2016-10-24 17:56:13 UTC) #5
Ken Russell (switch to Gerrit)
On 2016/10/24 17:56:13, Justin Novosad wrote: > On 2016/10/24 17:54:51, Justin Novosad wrote: > > ...
4 years, 1 month ago (2016-10-24 18:14:38 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/2440213003/1
4 years, 1 month ago (2016-10-25 00:30:18 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-25 00:35:14 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 00:37:07 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f92c285443e7186ad66ef8a77ae6a73ea55240da
Cr-Commit-Position: refs/heads/master@{#427188}

Powered by Google App Engine
This is Rietveld 408576698