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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp

Issue 2904143002: color: Perform color transform in ImageBufferSurface (Closed)
Patch Set: Created 3 years, 7 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/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp b/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp
index fa52e6943b06ae5519dfb976f45c2c00129d054e..2b79255105165022731727f5b94f9ac04c44e86d 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp
@@ -30,6 +30,7 @@
#include "platform/graphics/gpu/AcceleratedImageBufferSurface.h"
+#include "platform/RuntimeEnabledFeatures.h"
#include "platform/graphics/gpu/SharedGpuContext.h"
#include "platform/graphics/skia/SkiaUtils.h"
#include "platform/wtf/PtrUtil.h"
@@ -62,7 +63,12 @@ AcceleratedImageBufferSurface::AcceleratedImageBufferSurface(
if (!surface_)
return;
- canvas_ = WTF::WrapUnique(new SkiaPaintCanvas(surface_->getCanvas()));
+ canvas_ = WTF::WrapUnique(new SkiaPaintCanvas(
+ surface_->getCanvas(),
+ RuntimeEnabledFeatures::colorCorrectRenderingEnabled() &&
Justin Novosad 2017/05/29 14:45:35 Why is this needed? This calss is not used for ras
ccameron 2017/05/29 15:27:17 This looked like the right behavior for offscreen
+ color_params.UsesOutputSpaceBlending()
+ ? color_params.GetSkColorSpace()
+ : nullptr));
Clear();
// Always save an initial frame, to support resetting the top level matrix

Powered by Google App Engine
This is Rietveld 408576698