// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/platform/graphics/canvas_color_params.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/blink/renderer/platform/graphics/color_correction_test_utils.h" #include "third_party/blink/renderer/platform/testing/task_environment.h" #include "ui/gfx/color_space.h" namespace blink { // When drawing a color managed canvas, the target SkColorSpace is obtained by // calling CanvasColorParams::GetSkColorSpace(). When drawing media to the // canvas, the target gfx::ColorSpace is returned by CanvasColorParams:: // GetStorageGfxColorSpace(). This test verifies that the two different color // spaces are approximately the same for different CanvasColorParam objects. TEST(CanvasColorParamsTest, MatchSkColorSpaceWithGfxColorSpace) { … } } // namespace blink