forked from firka/flutter
Add SkSurface include to every file where it's used (flutter/engine#39304)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "flutter/display_list/display_list_flags.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkPoint.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/core/SkTextBlob.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "flutter/display_list/display_list_benchmarks.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
@@ -6,8 +6,11 @@
|
||||
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKS_GL_H_
|
||||
|
||||
#include "flutter/display_list/display_list_benchmarks_canvas_provider.h"
|
||||
|
||||
#include "flutter/testing/test_gl_surface.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "flutter/display_list/display_list_benchmarks.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include "flutter/display_list/display_list_benchmarks_canvas_provider.h"
|
||||
#include "flutter/testing/test_metal_surface.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include "flutter/display_list/display_list_benchmarks_software.h"
|
||||
#include "flutter/display_list/display_list_benchmarks.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include "flutter/testing/display_list_testing.h"
|
||||
#include "flutter/testing/testing.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
#include "flutter/fml/macros.h"
|
||||
#include "flutter/fml/time/time_delta.h"
|
||||
#include "flutter/fml/time/time_point.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#include "flutter/fml/macros.h"
|
||||
#include "flutter/testing/mock_canvas.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
#include "flutter/fml/logging.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/utils/SkNWayCanvas.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "flutter/display_list/display_list_canvas_recorder.h"
|
||||
#include "flutter/fml/macros.h"
|
||||
#include "flutter/fml/time/time_point.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#endif // IMPELLER_SUPPORTS_RENDERING
|
||||
#include "flutter/lib/ui/painting/image_encoding_skia.h"
|
||||
#include "third_party/skia/include/core/SkEncodedImageFormat.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/tonic/dart_persistent_value.h"
|
||||
#include "third_party/tonic/logging/dart_invoke.h"
|
||||
#include "third_party/tonic/typed_data/typed_list.h"
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
#include "flutter/shell/common/thread_host.h"
|
||||
#include "flutter/testing/testing.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
using testing::_;
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#include "flutter/vulkan/vulkan_skia_proc_table.h"
|
||||
#include "flutter/vulkan/vulkan_utilities.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
#if OS_FUCHSIA
|
||||
#define VULKAN_SO_PATH "libvulkan.so"
|
||||
#elif FML_OS_MACOSX
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "flutter/fml/macros.h"
|
||||
#include "flutter/fml/memory/weak_ptr.h"
|
||||
#include "flutter/shell/gpu/gpu_surface_gl_delegate.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/gpu/GrDirectContext.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -5,8 +5,11 @@
|
||||
#include "flutter/shell/gpu/gpu_surface_software.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
GPUSurfaceSoftware::GPUSurfaceSoftware(GPUSurfaceSoftwareDelegate* delegate,
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
#include "flutter/shell/gpu/gpu_surface_vulkan.h"
|
||||
|
||||
#include "flutter/fml/logging.h"
|
||||
#include "fml/trace_event.h"
|
||||
#include "include/core/SkColorSpace.h"
|
||||
#include "include/core/SkSize.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkColorSpace.h"
|
||||
#include "third_party/skia/include/core/SkSize.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "vulkan/vulkan_core.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include "flutter/vulkan/vulkan_backbuffer.h"
|
||||
#include "flutter/vulkan/vulkan_native_surface.h"
|
||||
#include "flutter/vulkan/vulkan_window.h"
|
||||
#include "include/core/SkRefCnt.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkRefCnt.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
|
||||
@@ -13,7 +13,9 @@
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "flutter/shell/platform/android/android_shell_holder.h"
|
||||
#include "flutter/shell/platform/android/jni/platform_view_android_jni.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkImage.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#include "flutter/shell/platform/android/jni/platform_view_android_jni.h"
|
||||
#include "flutter/shell/platform/android/surface/android_surface.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
class AndroidSurfaceSoftware final : public AndroidSurface,
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#define FML_USED_ON_EMBEDDER
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "flutter/shell/platform/android/external_view_embedder/external_view_embedder.h"
|
||||
|
||||
#include "flutter/flow/embedded_views.h"
|
||||
@@ -14,8 +15,10 @@
|
||||
#include "flutter/shell/platform/android/jni/jni_mock.h"
|
||||
#include "flutter/shell/platform/android/surface/android_surface.h"
|
||||
#include "flutter/shell/platform/android/surface/android_surface_mock.h"
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/gpu/GrDirectContext.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#import "flutter/shell/platform/darwin/ios/ios_context.h"
|
||||
#import "flutter/shell/platform/darwin/ios/ios_surface.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
@class CALayer;
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#include "flutter/fml/logging.h"
|
||||
#include "flutter/fml/platform/darwin/cf_utils.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/utils/mac/SkCGUtils.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "flutter/fml/thread.h"
|
||||
#include "third_party/dart/runtime/bin/elf_loader.h"
|
||||
#include "third_party/dart/runtime/include/dart_native_api.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
#if !defined(FLUTTER_NO_EXPORT)
|
||||
#if FML_OS_WIN
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#include "flutter/fml/logging.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
EmbedderRenderTarget::EmbedderRenderTarget(FlutterBackingStore backing_store,
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#include "flutter/shell/platform/embedder/embedder_external_view_embedder.h"
|
||||
#include "flutter/shell/platform/embedder/embedder_surface.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
class EmbedderSurfaceMetal final : public EmbedderSurface,
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
#include <utility>
|
||||
|
||||
#include "flutter/fml/trace_event.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkColorSpace.h"
|
||||
#include "third_party/skia/include/core/SkImageInfo.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/gpu/GrDirectContext.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "flutter/shell/platform/embedder/embedder_external_view_embedder.h"
|
||||
#include "flutter/shell/platform/embedder/embedder_surface.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
class EmbedderSurfaceSoftware final : public EmbedderSurface,
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#include "flutter/testing/assertions_skia.h"
|
||||
#include "flutter/testing/testing.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
// CREATE_NATIVE_ENTRY is leaky by design
|
||||
// NOLINTBEGIN(clang-analyzer-core.StackAddressEscape)
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include "flutter/fml/macros.h"
|
||||
#include "flutter/fml/memory/ref_ptr_internal.h"
|
||||
#include "flutter/shell/platform/embedder/embedder.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/gpu/GrDirectContext.h"
|
||||
|
||||
#ifdef SHELL_ENABLE_METAL
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "flutter/shell/platform/embedder/tests/embedder_test_context.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "flutter/shell/platform/embedder/tests/embedder_test_backingstore_producer.h"
|
||||
#include "flutter/shell/platform/embedder/tests/embedder_unittests_util.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
namespace testing {
|
||||
|
||||
|
||||
@@ -16,8 +16,10 @@
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "fuchsia/sysmem/cpp/fidl.h"
|
||||
#include "include/core/SkImageInfo.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkColorSpace.h"
|
||||
#include "third_party/skia/include/core/SkImageInfo.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
#include "../runtime/dart/utils/inlines.h"
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "flutter/vulkan/vulkan_skia_proc_table.h"
|
||||
#include "flutter_vma/flutter_skia_vma.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/gpu/GrBackendSemaphore.h"
|
||||
#include "third_party/skia/include/gpu/GrBackendSurface.h"
|
||||
#include "third_party/skia/include/gpu/vk/GrVkBackendContext.h"
|
||||
|
||||
@@ -24,8 +24,10 @@
|
||||
#include "flutter/shell/common/switches.h"
|
||||
#include "flutter/shell/common/thread_host.h"
|
||||
#include "flutter/shell/gpu/gpu_surface_software.h"
|
||||
|
||||
#include "third_party/dart/runtime/include/bin/dart_io_api.h"
|
||||
#include "third_party/dart/runtime/include/dart_api.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
#if defined(FML_OS_WIN)
|
||||
#include <combaseapi.h>
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include <cstdint>
|
||||
|
||||
#include "flutter/fml/macros.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/gpu/GrDirectContext.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include "flutter/fml/logging.h"
|
||||
#include "flutter/testing/test_metal_surface_impl.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
bool TestMetalSurface::PlatformSupportsMetal() {
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include "flutter/testing/test_metal_context.h"
|
||||
#include "flutter/testing/test_metal_surface.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
|
||||
namespace flutter {
|
||||
|
||||
class TestMetalSurfaceImpl : public TestMetalSurface {
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "flutter/vulkan/procs/vulkan_proc_table.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkColorSpace.h"
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/gpu/GrBackendSurface.h"
|
||||
#include "third_party/skia/include/gpu/GrDirectContext.h"
|
||||
#include "third_party/skia/include/gpu/vk/GrVkTypes.h"
|
||||
|
||||
@@ -11,13 +11,15 @@
|
||||
|
||||
#include "flutter/flutter_vma/flutter_skia_vma.h"
|
||||
#include "flutter/vulkan/vulkan_skia_proc_table.h"
|
||||
#include "third_party/skia/include/gpu/GrDirectContext.h"
|
||||
#include "vulkan_application.h"
|
||||
#include "vulkan_device.h"
|
||||
#include "vulkan_native_surface.h"
|
||||
#include "vulkan_surface.h"
|
||||
#include "vulkan_swapchain.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
#include "third_party/skia/include/gpu/GrDirectContext.h"
|
||||
|
||||
namespace vulkan {
|
||||
|
||||
VulkanWindow::VulkanWindow(fml::RefPtr<VulkanProcTable> proc_table,
|
||||
|
||||
Reference in New Issue
Block a user