Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 63b7b7c

Browse files
committed
Address comments
1 parent cb0c0e5 commit 63b7b7c

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

impeller/renderer/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,6 @@ impeller_component("renderer_dart_unittests") {
160160
"../playground:playground_test",
161161
"//flutter/runtime:runtime",
162162
"//flutter/testing:fixture_test",
163-
"//flutter/testing:testing_lib",
163+
"//flutter/testing:testing",
164164
]
165165
}

impeller/renderer/renderer_dart_unittests.cc

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#include "gtest/gtest.h"
2727
#include "third_party/imgui/imgui.h"
2828

29+
#define FML_USED_ON_EMBEDDER
30+
2931
namespace impeller {
3032
namespace testing {
3133

@@ -37,10 +39,7 @@ class RendererDartTest : public PlaygroundTest,
3739
vm_ref_(flutter::DartVMRef::Create(settings_)) {
3840
fml::MessageLoop::EnsureInitializedForCurrentThread();
3941

40-
#pragma clang diagnostic push
41-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
4242
current_task_runner_ = fml::MessageLoop::GetCurrent().GetTaskRunner();
43-
#pragma clang diagnostic pop
4443

4544
isolate_ = CreateDartIsolate();
4645
assert(isolate_);
@@ -93,10 +92,3 @@ TEST_P(RendererDartTest, CanRunDartInPlaygroundFrame) {
9392

9493
} // namespace testing
9594
} // namespace impeller
96-
97-
int main(int argc, char** argv) {
98-
fml::InstallCrashHandler();
99-
testing::InitGoogleTest(&argc, argv);
100-
fml::CommandLine cmd = fml::CommandLineFromPlatformOrArgcArgv(argc, argv);
101-
return RUN_ALL_TESTS();
102-
}

lib/ui/gpu/context.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <memory>
99

10+
#include "flutter/fml/macros.h"
1011
#include "flutter/fml/memory/ref_counted.h"
1112
#include "flutter/lib/ui/dart_wrapper.h"
1213
#include "impeller/renderer/context.h"
@@ -27,6 +28,8 @@ class GpuContext : public RefCountedDartWrappable<GpuContext> {
2728

2829
private:
2930
std::shared_ptr<impeller::Context> context_;
31+
32+
FML_DISALLOW_COPY_AND_ASSIGN(GpuContext);
3033
};
3134

3235
} // namespace flutter

0 commit comments

Comments
 (0)