| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/canvas2d/CanvasRenderingContext2D.h" | 5 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include "bindings/core/v8/V8Binding.h" | 8 #include "bindings/core/v8/V8Binding.h" |
| 9 #include "bindings/core/v8/V8BindingForTesting.h" | 9 #include "bindings/core/v8/V8BindingForTesting.h" |
| 10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| 11 #include "core/frame/FrameView.h" | 11 #include "core/frame/FrameView.h" |
| 12 #include "core/frame/ImageBitmap.h" | 12 #include "core/frame/ImageBitmap.h" |
| 13 #include "core/html/HTMLCanvasElement.h" | 13 #include "core/html/HTMLCanvasElement.h" |
| 14 #include "core/html/ImageData.h" | 14 #include "core/html/ImageData.h" |
| 15 #include "core/imagebitmap/ImageBitmapOptions.h" | 15 #include "core/imagebitmap/ImageBitmapOptions.h" |
| 16 #include "core/loader/EmptyClients.h" | 16 #include "core/loader/EmptyClients.h" |
| 17 #include "core/testing/DummyPageHolder.h" | 17 #include "core/testing/DummyPageHolder.h" |
| 18 #include "modules/canvas2d/CanvasGradient.h" | 18 #include "modules/canvas2d/CanvasGradient.h" |
| 19 #include "modules/canvas2d/CanvasPattern.h" | 19 #include "modules/canvas2d/CanvasPattern.h" |
| 20 #include "modules/webgl/WebGLRenderingContext.h" | 20 #include "modules/webgl/WebGLRenderingContext.h" |
| 21 #include "platform/graphics/Canvas2DImageBufferSurface.h" | 21 #include "platform/graphics/Canvas2DImageBufferSurface.h" |
| 22 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" | 22 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" |
| 23 #include "platform/graphics/RecordingImageBufferSurface.h" | 23 #include "platform/graphics/RecordingImageBufferSurface.h" |
| 24 #include "platform/graphics/StaticBitmapImage.h" | 24 #include "platform/graphics/StaticBitmapImage.h" |
| 25 #include "platform/graphics/UnacceleratedImageBufferSurface.h" | 25 #include "platform/graphics/UnacceleratedImageBufferSurface.h" |
| 26 #include "platform/graphics/test/FakeGLES2Interface.h" | 26 #include "platform/graphics/test/FakeGLES2Interface.h" |
| 27 #include "platform/graphics/test/FakeWebGraphicsContext3DProvider.h" | 27 #include "platform/graphics/test/FakeWebGraphicsContext3DProvider.h" |
| 28 #include "platform/loader/fetch/MemoryCache.h" | 28 #include "platform/loader/fetch/MemoryCache.h" |
| 29 #include "platform/wtf/PtrUtil.h" |
| 29 #include "testing/gmock/include/gmock/gmock.h" | 30 #include "testing/gmock/include/gmock/gmock.h" |
| 30 #include "testing/gtest/include/gtest/gtest.h" | 31 #include "testing/gtest/include/gtest/gtest.h" |
| 31 #include "third_party/skia/include/core/SkColorSpaceXform.h" | 32 #include "third_party/skia/include/core/SkColorSpaceXform.h" |
| 32 #include "third_party/skia/include/core/SkImage.h" | 33 #include "third_party/skia/include/core/SkImage.h" |
| 33 #include "third_party/skia/include/core/SkSurface.h" | 34 #include "third_party/skia/include/core/SkSurface.h" |
| 34 #include "wtf/PtrUtil.h" | |
| 35 | 35 |
| 36 using ::testing::Mock; | 36 using ::testing::Mock; |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| 42 gfx::ColorSpace AdobeRGBColorSpace() { | 42 gfx::ColorSpace AdobeRGBColorSpace() { |
| 43 return gfx::ColorSpace(gfx::ColorSpace::PrimaryID::ADOBE_RGB, | 43 return gfx::ColorSpace(gfx::ColorSpace::PrimaryID::ADOBE_RGB, |
| 44 gfx::ColorSpace::TransferID::GAMMA22); | 44 gfx::ColorSpace::TransferID::GAMMA22); |
| (...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 | 1379 |
| 1380 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled( | 1380 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled( |
| 1381 experimental_canvas_features_runtime_flag); | 1381 experimental_canvas_features_runtime_flag); |
| 1382 RuntimeEnabledFeatures::setColorCorrectRenderingEnabled( | 1382 RuntimeEnabledFeatures::setColorCorrectRenderingEnabled( |
| 1383 color_correct_rendering_runtime_flag); | 1383 color_correct_rendering_runtime_flag); |
| 1384 RuntimeEnabledFeatures::setColorCorrectRenderingDefaultModeEnabled( | 1384 RuntimeEnabledFeatures::setColorCorrectRenderingDefaultModeEnabled( |
| 1385 color_correct_rendering_default_mode_runtime_flag); | 1385 color_correct_rendering_default_mode_runtime_flag); |
| 1386 } | 1386 } |
| 1387 | 1387 |
| 1388 } // namespace blink | 1388 } // namespace blink |
| OLD | NEW |