Add color settings to ImageData and ImageBitmap serialization

Desktop / Chromium - Reza.Zakerinasab [chromium.org] - 13 July 2017 12:50 EDT

This CL adds color settings to ImageData and ImageBitmap serialization code.

Bug: 670703, 671356, 735976 Change-Id: I854723eb8fa563bdd8755a002f182092b3f903b3 Reviewed-on: https://chromium-review.googlesource.com/552822 Commit-Queue: Mohammad Reza Zakerinasab

2b0e6a5 Add color settings to ImageData and ImageBitmap serialization
third_party/WebKit/Source/bindings/bindings.gni | 2 +
.../core/v8/serialization/SerializationTag.h | 14 +-
.../v8/serialization/SerializedColorParams.cpp | 137 +++++++++++++
.../core/v8/serialization/SerializedColorParams.h | 87 +++++++++
.../core/v8/serialization/SerializedScriptValue.h | 4 +-
.../v8/serialization/V8ScriptValueDeserializer.cpp | 116 ++++++++---
.../v8/serialization/V8ScriptValueDeserializer.h | 16 ++
.../v8/serialization/V8ScriptValueSerializer.cpp | 28 ++-
.../v8/serialization/V8ScriptValueSerializer.h | 11 ++
.../serialization/V8ScriptValueSerializerTest.cpp | 216 +++++++++++++++++++++
third_party/WebKit/Source/core/html/ImageData.cpp | 65 ++++++-
third_party/WebKit/Source/core/html/ImageData.h | 12 +-
.../WebKit/Source/core/imagebitmap/ImageBitmap.cpp | 61 ++++--
.../WebKit/Source/core/imagebitmap/ImageBitmap.h | 14 +-
.../Source/platform/graphics/CanvasColorParams.cpp | 26 +++
.../Source/platform/graphics/CanvasColorParams.h | 1 +
.../public/web/WebSerializedScriptValueVersion.h | 2 +-
17 files changed, 747 insertions(+), 65 deletions(-)

Upstream: git.chromium.org


  • Share