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

Issue 1631733003: Implementing ImageBitmap option imageOrientation of flipY (Closed)

Created:
4 years, 11 months ago by xidachen
Modified:
4 years, 10 months ago
Reviewers:
jbroman, Justin Novosad
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implementing option imageOrientation for createImageBitmap(ImageData) This CL implements the ImageBitmap option imageOrientation for the method createImageBitmap(ImageData) only. For createImageBitmap from other sources, there will be separate CLs to handle them. The whatwg wiki for the ImageBitmap options is here: https://wiki.whatwg.org/wiki/ImageBitmap_Options In the case of ImageData, the option none/topLeft should behave the same, which is "Do not change orientation". This is because ImageData does not contain any image media meta data. Similarly, For the option of flipY/topLeft, the behavior should be flip the image vertically. This CL also includes a layout test, which re-uses the existing test with the additional parameter of "flipY", and currently the layout test is for the ImageData as source only. BUG=249382 Committed: https://crrev.com/542c67487c8bac201e42f607f6f3727382831c97 Cr-Commit-Position: refs/heads/master@{#373274}

Patch Set 1 #

Total comments: 10

Patch Set 2 : support flipY and none at this moment #

Total comments: 2

Patch Set 3 : replace "flipY" by a static const char* #

Messages

Total messages: 24 (7 generated)
xidachen
PTAL.
4 years, 11 months ago (2016-01-25 21:40:04 UTC) #2
jbroman
Could you please link the draft spec either here or in the bug? It's not ...
4 years, 11 months ago (2016-01-26 16:16:49 UTC) #3
xidachen
On 2016/01/26 16:16:49, jbroman wrote: > Could you please link the draft spec either here ...
4 years, 11 months ago (2016-01-26 16:23:27 UTC) #5
jbroman
https://codereview.chromium.org/1631733003/diff/1/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-flipY.html File third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-flipY.html (right): https://codereview.chromium.org/1631733003/diff/1/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-flipY.html#newcode6 third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-flipY.html:6: <body> Would you mind also testing the other cases ...
4 years, 11 months ago (2016-01-26 17:03:37 UTC) #6
Justin Novosad
BTW, in the proposal, the dictionary attribute is called "imageOrientation". Calling it just "orientation" is ...
4 years, 10 months ago (2016-02-01 22:52:16 UTC) #7
jbroman
On 2016/02/01 at 22:52:16, junov wrote: > BTW, in the proposal, the dictionary attribute is ...
4 years, 10 months ago (2016-02-02 16:06:40 UTC) #8
jbroman
https://codereview.chromium.org/1631733003/diff/1/third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl File third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl (right): https://codereview.chromium.org/1631733003/diff/1/third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl#newcode8 third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl:8: ImageOrientation orientation = "topLeft"; As junov says, this is ...
4 years, 10 months ago (2016-02-02 16:06:53 UTC) #9
Justin Novosad
On 2016/02/02 16:06:53, jbroman wrote: > https://codereview.chromium.org/1631733003/diff/1/third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl > File third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl (right): > > https://codereview.chromium.org/1631733003/diff/1/third_party/WebKit/Source/core/imagebitmap/ImageBitmapOptions.idl#newcode8 > ...
4 years, 10 months ago (2016-02-02 18:46:31 UTC) #10
xidachen
Please take a look at PS#2. In this patch, we changed the code so that ...
4 years, 10 months ago (2016-02-03 02:17:20 UTC) #11
Justin Novosad
https://codereview.chromium.org/1631733003/diff/20001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/1631733003/diff/20001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode74 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:74: if (options.imageOrientation() == "flipY") Put this string value in ...
4 years, 10 months ago (2016-02-03 14:32:52 UTC) #12
xidachen
PTAL. https://codereview.chromium.org/1631733003/diff/20001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/1631733003/diff/20001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode74 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:74: if (options.imageOrientation() == "flipY") On 2016/02/03 14:32:52, Justin ...
4 years, 10 months ago (2016-02-03 15:29:51 UTC) #13
Justin Novosad
lgtm
4 years, 10 months ago (2016-02-03 15:32:37 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1631733003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1631733003/40001
4 years, 10 months ago (2016-02-03 15:34:41 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/98334) win_chromium_rel_ng on ...
4 years, 10 months ago (2016-02-03 15:38:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1631733003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1631733003/40001
4 years, 10 months ago (2016-02-03 16:48:50 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-03 18:06:57 UTC) #22
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 18:07:53 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/542c67487c8bac201e42f607f6f3727382831c97
Cr-Commit-Position: refs/heads/master@{#373274}

Powered by Google App Engine
This is Rietveld 408576698