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

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

Issue 2825183002: Plumb CanvasColorParams to canvas image classes (Closed)
Patch Set: Require both runtime flags Created 3 years, 8 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/RecordingImageBufferSurfaceTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
index 8430490d7de242e95d90aff362a052d736b72212..b37d903e2b1e73ee3e82c5eee201fd1322dfd0c5 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
@@ -32,12 +32,10 @@ class MockSurfaceFactory : public RecordingImageBufferFallbackSurfaceFactory {
virtual std::unique_ptr<ImageBufferSurface> CreateSurface(
const IntSize& size,
OpacityMode opacity_mode,
- sk_sp<SkColorSpace> color_space,
- SkColorType color_type) {
+ const CanvasColorParams& color_params) {
create_surface_count_++;
return WTF::WrapUnique(new UnacceleratedImageBufferSurface(
- size, opacity_mode, kInitializeImagePixels, std::move(color_space),
- color_type));
+ size, opacity_mode, kInitializeImagePixels, color_params));
}
virtual ~MockSurfaceFactory() {}
@@ -56,7 +54,7 @@ class RecordingImageBufferSurfaceTest : public Test {
surface_factory_ = surface_factory.get();
std::unique_ptr<RecordingImageBufferSurface> test_surface =
WTF::WrapUnique(new RecordingImageBufferSurface(
- IntSize(10, 10), std::move(surface_factory), kNonOpaque, nullptr));
+ IntSize(10, 10), std::move(surface_factory), kNonOpaque));
test_surface_ = test_surface.get();
// We create an ImageBuffer in order for the testSurface to be
// properly initialized with a GraphicsContext

Powered by Google App Engine
This is Rietveld 408576698