Flutter Engine
Loading...
Searching...
No Matches
gpu_surface_noop_unittests.mm
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include <Foundation/Foundation.h>
6
#include <QuartzCore/QuartzCore.h>
7
8
#include "
flutter/shell/gpu/gpu_surface_noop.h
"
9
#include "gtest/gtest.h"
10
#include "impeller/entity/mtl/entity_shaders.h"
11
#include "impeller/entity/mtl/framebuffer_blend_shaders.h"
12
#include "impeller/entity/mtl/modern_shaders.h"
13
#include "
impeller/renderer/backend/metal/context_mtl.h
"
14
15
namespace
flutter
{
16
namespace
testing {
17
18
TEST
(
GPUSurfaceNoop
, InvalidImpellerContextCreatesCausesSurfaceToBeInvalid) {
19
auto
surface
= std::make_shared<GPUSurfaceNoop>();
20
21
EXPECT_TRUE(
surface
->IsValid());
22
}
23
24
}
// namespace testing
25
}
// namespace flutter
flutter::GPUSurfaceNoop
A rendering surface that accepts rendering intent but does not render anything.
Definition
gpu_surface_noop.h:19
surface
VkSurfaceKHR surface
Definition
main.cc:65
gpu_surface_noop.h
flutter::testing::TEST
TEST(NativeAssetsManagerTest, NoAvailableAssets)
Definition
native_assets_unittests.cc:68
flutter
Definition
asset_manager.cc:10
context_mtl.h
shell
gpu
gpu_surface_noop_unittests.mm
Generated on Thu Nov 6 2025 16:11:25 for Flutter Engine by
1.9.8