New issue
Advanced search Search tips
Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Feature

Blocking:
issue 563845



Sign in to add a comment

Implement transferControlToOffscreen

Project Member Reported by xidac...@chromium.org, Mar 29 2016

Issue description

This is part of the offscreen proposal:

partial interface HTMLCanvasElement {
  OffscreenCanvas transferControlToOffscreen();
};
 
Project Member

Comment 1 by bugdroid1@chromium.org, Apr 1 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/45e63d4ce6f4eb4c05fa27e1ece44ace00941924

commit 45e63d4ce6f4eb4c05fa27e1ece44ace00941924
Author: xidachen <xidachen@chromium.org>
Date: Fri Apr 01 17:59:41 2016

Implement HTMLCanvasElement's transferControlToOffscreen

To summarize, this function throws an exception when the canvas has an
associated context. A new OffscreenCanvas is created and it has a pointer
pointing to the originated canvas element.

A layout test is also added to make sure that there is no exception when
the original canvas doesn't have a context, and throws an exception when
the canvas does have a context.

BUG= 598753 

Review URL: https://codereview.chromium.org/1836283002

Cr-Commit-Position: refs/heads/master@{#384627}

[add] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferControlToOffscreen-expected.txt
[add] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-transferControlToOffscreen.html
[modify] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/LayoutTests/webexposed/element-instance-property-listing-expected.txt
[modify] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp
[modify] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.h
[modify] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.idl
[add] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModuleTest.cpp
[modify] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/Source/modules/modules.gypi
[modify] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp
[modify] https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h

Status: Fixed (was: Assigned)

Sign in to add a comment