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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp

Issue 2925623003: color: Remove unneeded ColorBehavior parameters from ImageSource (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | third_party/WebKit/Source/platform/graphics/ImageSource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/ImageSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698