| Index: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
|
| index 7e6ca635ef63af01b6d6daaa8e4590e6a95d6b37..7d693289215a57779c35e59a33a41e9f9b66208c 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
|
| @@ -26,7 +26,6 @@
|
|
|
| #include "platform/graphics/BitmapImage.h"
|
|
|
| -#include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/Timer.h"
|
| #include "platform/geometry/FloatRect.h"
|
| #include "platform/graphics/BitmapImageMetrics.h"
|
| @@ -46,16 +45,6 @@
|
|
|
| namespace blink {
|
|
|
| -namespace {
|
| -
|
| -ColorBehavior DefaultColorBehavior() {
|
| - if (RuntimeEnabledFeatures::colorCorrectRenderingEnabled())
|
| - return ColorBehavior::Tag();
|
| - return ColorBehavior::TransformToGlobalTarget();
|
| -}
|
| -
|
| -} // namespace
|
| -
|
| PassRefPtr<BitmapImage> BitmapImage::CreateWithOrientationForTesting(
|
| const SkBitmap& bitmap,
|
| ImageOrientation orientation) {
|
| @@ -159,8 +148,7 @@ sk_sp<SkImage> BitmapImage::DecodeAndCacheFrame(size_t index) {
|
|
|
| // We are caching frame snapshots. This is OK even for partially decoded
|
| // frames, as they are cleared by dataChanged() when new data arrives.
|
| - sk_sp<SkImage> image =
|
| - source_.CreateFrameAtIndex(index, DefaultColorBehavior());
|
| + sk_sp<SkImage> image = source_.CreateFrameAtIndex(index);
|
| cached_frame_ = image;
|
| cached_frame_index_ = index;
|
|
|
|
|