Commit 0110c9c7 authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

[piexwasm] Remove ImageRequestTask.colorSpace_ private member

After CL:2454591 the image request task's colorSpace_ member serves no
purpose: remove it.

Bug: 1132695
Change-Id: Ib8e5ff2b8ea4bab388cebd7c3b1cc6f31caa558c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454552
Auto-Submit: Noel Gordon <noel@chromium.org>
Commit-Queue: Alex Danilo <adanilo@chromium.org>
Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814563}
parent 765aa9b6
......@@ -60,14 +60,6 @@ function ImageRequestTask(id, cache, request, callback) {
*/
this.ifd_ = null;
/**
* The color space of the fetched image. Only RAW images provide a
* color space at this time, being 'sRgb' or 'adobeRgb'.
* @type {?string}
* @private
*/
this.colorSpace_ = null;
/**
* Used to download remote images using http:// or https:// protocols.
* @type {XMLHttpRequest}
......@@ -378,7 +370,6 @@ ImageRequestTask.prototype.downloadOriginal_ = function(onSuccess, onFailure) {
function(data) {
this.request_.orientation =
ImageOrientation.fromExifOrientation(data.orientation);
this.colorSpace_ = data.colorSpace;
this.ifd_ = data.ifd;
this.contentType_ = data.mimeType;
const blob = new Blob([data.thumbnail], {type: data.mimeType});
......@@ -605,8 +596,6 @@ ImageRequestTask.prototype.sendImageData_ = function(width, height, data) {
* @private
*/
ImageRequestTask.prototype.onImageLoad_ = function() {
this.colorSpace_ = this.colorSpace_ || 'sRgb';
// Perform processing if the url is not a data url, or if there are some
// operations requested.
let imageChanged = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment