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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.cpp

Issue 2624133007: Revert of Implement color management for ImageData (patchset #11 id:440001 of https://codereview.ch… (Closed)
Patch Set: Double check Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmap.h ('k') | third_party/WebKit/Source/core/html/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/ImageBitmap.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index d5f6e8af1790a049ad772ed2c5e34db56f804efc..3b9f60ce89b56834d199b20feb614fb467623ba8 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -4,7 +4,6 @@
#include "core/frame/ImageBitmap.h"
-#include "core/html/Float32ImageData.h"
#include "core/html/HTMLCanvasElement.h"
#include "core/html/HTMLVideoElement.h"
#include "core/html/ImageData.h"
@@ -758,8 +757,6 @@ static sk_sp<SkImage> scaleSkImage(sk_sp<SkImage> skImage,
resizedPixels.release().leakRef());
}
-// TODO(zakerinasab): Fix this and the constructor from Float32ImageData
-// when the CL for Float32ImageData landed.
ImageBitmap::ImageBitmap(ImageData* data,
Optional<IntRect> cropRect,
const ImageBitmapOptions& options) {
@@ -908,10 +905,6 @@ ImageBitmap::ImageBitmap(ImageData* data,
m_image = StaticBitmapImage::create(std::move(skImage));
}
-ImageBitmap::ImageBitmap(Float32ImageData* data,
- Optional<IntRect> cropRect,
- const ImageBitmapOptions& options) {}
-
ImageBitmap::ImageBitmap(ImageBitmap* bitmap,
Optional<IntRect> cropRect,
const ImageBitmapOptions& options) {
@@ -996,12 +989,6 @@ ImageBitmap* ImageBitmap::create(ImageData* data,
return new ImageBitmap(data, cropRect, options);
}
-ImageBitmap* ImageBitmap::create(Float32ImageData* data,
- Optional<IntRect> cropRect,
- const ImageBitmapOptions& options) {
- return new ImageBitmap(data, cropRect, options);
-}
-
ImageBitmap* ImageBitmap::create(ImageBitmap* bitmap,
Optional<IntRect> cropRect,
const ImageBitmapOptions& options) {
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmap.h ('k') | third_party/WebKit/Source/core/html/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698