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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp

Issue 2727133002: Remove ColorBehavior argument to Image::imageForCurrentFrame (Closed)
Patch Set: Rebase Created 3 years, 9 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
Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
index 6414364aa00ec6dc026280e1ab8e2af25d218202..c8c3ba5f08bf0582f08dba571b32d7dfb8472587 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
@@ -1307,14 +1307,8 @@ TEST_F(CanvasRenderingContext2DTest, ImageBitmapColorSpaceConversion) {
ImageBitmapOptions options =
prepareBitmapOptionsAndSetRuntimeFlags(colorSpaceConversion);
ImageBitmap* imageBitmap = ImageBitmap::create(canvas, cropRect, options);
- // ColorBehavior::ignore() is used instead of
- // ColorBehavior::transformToTargetForTesting() to avoid color conversion to
- // display color profile, as we want to solely rely on the color correction
- // that happens in ImageBitmap create method.
SkImage* convertedImage =
- imageBitmap->bitmapImage()
- ->imageForCurrentFrame(ColorBehavior::ignore())
- .get();
+ imageBitmap->bitmapImage()->imageForCurrentFrame().get();
switch (colorSpaceConversion) {
case ColorSpaceConversion::NONE:

Powered by Google App Engine
This is Rietveld 408576698