Add ImageData::MakeCopy() and ImageData::MakeSubset() API |
||
Issue descriptionAs part of refactoring ImageBitmap, and to simplify the ImageBitmap constructor from ImageData, we need ImageData::MakeCopy() and ImageData::MakeSubset(). MakeCopy() returns a copy of ImageData and MakeSubset() crops the image data to the given rectangle.
,
Jun 1 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/455eee4814157429627353c6fdce0f2c6412bb0d commit 455eee4814157429627353c6fdce0f2c6412bb0d Author: zakerinasab <zakerinasab@chromium.org> Date: Thu Jun 01 16:58:14 2017 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} [modify] https://crrev.com/455eee4814157429627353c6fdce0f2c6412bb0d/third_party/WebKit/Source/core/html/ImageData.cpp [modify] https://crrev.com/455eee4814157429627353c6fdce0f2c6412bb0d/third_party/WebKit/Source/core/html/ImageData.h [modify] https://crrev.com/455eee4814157429627353c6fdce0f2c6412bb0d/third_party/WebKit/Source/core/html/ImageDataTest.cpp [modify] https://crrev.com/455eee4814157429627353c6fdce0f2c6412bb0d/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
,
Jun 1 2017
|
||
►
Sign in to add a comment |
||
Comment 1 Deleted