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

Issue 2849643002: Implement ImageData::CropRect() (Closed)

Created:
3 years, 7 months ago by zakerinasab
Modified:
3 years, 6 months ago
Reviewers:
fserb, Justin Novosad
CC:
ajuma+watch-canvas_chromium.org, blink-reviews, blink-reviews-html_chromium.org, Rik, chromium-reviews, dglazkov+blink, dshwang, haraken
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement ImageData::CropRect() This change implements ImageData::CropRect() that crops the image data object to the given rectangle and flips if needed. BUG=716136 Review-Url: https://codereview.chromium.org/2849643002 Cr-Commit-Position: refs/heads/master@{#476329} Committed: https://chromium.googlesource.com/chromium/src/+/455eee4814157429627353c6fdce0f2c6412bb0d

Patch Set 1 : Adding MakeSubset() #

Patch Set 2 : Adding MakeCopy() #

Total comments: 2

Patch Set 3 : Addressing comments #

Patch Set 4 : Adding flipping to ImageData::CopyRect() #

Total comments: 4

Patch Set 5 : Rebaseline #

Total comments: 2

Patch Set 6 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -71 lines) Patch
M third_party/WebKit/Source/core/html/ImageData.h View 1 2 3 4 3 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageData.cpp View 1 2 3 4 5 3 chunks +50 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageDataTest.cpp View 1 2 3 3 chunks +156 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp View 1 2 3 4 1 chunk +8 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (12 generated)
zakerinasab
This CL is originally extracted from https://codereview.chromium.org/2845193002 for easier review and landing.
3 years, 7 months ago (2017-04-27 20:10:15 UTC) #4
zakerinasab
New CL uploaded. ImageData::MakeCopy() added with the respective unit test.
3 years, 7 months ago (2017-04-28 13:56:21 UTC) #6
fserb
https://codereview.chromium.org/2849643002/diff/20001/third_party/WebKit/Source/core/html/ImageData.h File third_party/WebKit/Source/core/html/ImageData.h (right): https://codereview.chromium.org/2849643002/diff/20001/third_party/WebKit/Source/core/html/ImageData.h#newcode114 third_party/WebKit/Source/core/html/ImageData.h:114: ImageData* MakeCopy(); I don't know what use case you ...
3 years, 7 months ago (2017-04-28 14:56:54 UTC) #7
blink-reviews
Good suggestions. On Fri, Apr 28, 2017 at 10:56 AM, <fserb@chromium.org> wrote: > > https://codereview.chromium.org/2849643002/diff/20001/ ...
3 years, 7 months ago (2017-04-28 14:57:37 UTC) #8
chromium-reviews
Good suggestions. On Fri, Apr 28, 2017 at 10:56 AM, <fserb@chromium.org> wrote: > > https://codereview.chromium.org/2849643002/diff/20001/ ...
3 years, 7 months ago (2017-04-28 14:57:38 UTC) #9
zakerinasab
New CL uploaded addressing fserb@ comments. https://codereview.chromium.org/2849643002/diff/20001/third_party/WebKit/Source/core/html/ImageData.h File third_party/WebKit/Source/core/html/ImageData.h (right): https://codereview.chromium.org/2849643002/diff/20001/third_party/WebKit/Source/core/html/ImageData.h#newcode114 third_party/WebKit/Source/core/html/ImageData.h:114: ImageData* MakeCopy(); On ...
3 years, 7 months ago (2017-04-28 15:40:49 UTC) #10
fserb
lgtm https://codereview.chromium.org/2849643002/diff/60001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2849643002/diff/60001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode380 third_party/WebKit/Source/core/html/ImageData.cpp:380: unsigned data_size = 4 * dst_rect.Width() * dst_rect.Height(); ...
3 years, 7 months ago (2017-04-28 18:54:03 UTC) #12
zakerinasab
https://codereview.chromium.org/2849643002/diff/60001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2849643002/diff/60001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode380 third_party/WebKit/Source/core/html/ImageData.cpp:380: unsigned data_size = 4 * dst_rect.Width() * dst_rect.Height(); On ...
3 years, 7 months ago (2017-05-01 14:24:39 UTC) #13
Justin Novosad
https://codereview.chromium.org/2849643002/diff/60001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2849643002/diff/60001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode380 third_party/WebKit/Source/core/html/ImageData.cpp:380: unsigned data_size = 4 * dst_rect.Width() * dst_rect.Height(); Are ...
3 years, 7 months ago (2017-05-02 19:00:54 UTC) #14
zakerinasab
https://codereview.chromium.org/2849643002/diff/60001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2849643002/diff/60001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode380 third_party/WebKit/Source/core/html/ImageData.cpp:380: unsigned data_size = 4 * dst_rect.Width() * dst_rect.Height(); On ...
3 years, 7 months ago (2017-05-03 14:45:55 UTC) #15
Justin Novosad
https://codereview.chromium.org/2849643002/diff/80001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2849643002/diff/80001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode394 third_party/WebKit/Source/core/html/ImageData.cpp:394: dst_index = flip_y ? (dst_rect.Height() - i - 1) ...
3 years, 6 months ago (2017-05-30 19:45:22 UTC) #16
zakerinasab
New CL uploaded. Comments addressed. https://codereview.chromium.org/2849643002/diff/80001/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2849643002/diff/80001/third_party/WebKit/Source/core/html/ImageData.cpp#newcode394 third_party/WebKit/Source/core/html/ImageData.cpp:394: dst_index = flip_y ? ...
3 years, 6 months ago (2017-05-30 20:06:16 UTC) #17
zakerinasab
New CL uploaded. Comments addressed.
3 years, 6 months ago (2017-05-30 20:06:17 UTC) #18
Justin Novosad
lgtm
3 years, 6 months ago (2017-05-31 18:46:03 UTC) #19
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/2849643002/100001
3 years, 6 months ago (2017-05-31 18:47:43 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/280731) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 6 months ago (2017-05-31 19:38:04 UTC) #24
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/2849643002/100001
3 years, 6 months ago (2017-06-01 15:09:50 UTC) #27
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 16:58:28 UTC) #30
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/455eee4814157429627353c6fdce...

Powered by Google App Engine
This is Rietveld 408576698