Jason Simmons 4f85010d21
Do not attempt to drain the SkiaUnrefQueue in the destructor (#13237)
SkiaUnrefQueue should be empty at destruction time.  If the queue is nonempty,
then there will be a pending drain task that will hold a reference to the
queue.  The queue can only be destructed after the drain completes and the
reference is dropped.

Drains must only be done on the queue's task runner thread, which may not be
the thread where the queue is destructed.
2019-10-21 14:14:18 -07:00

81 lines
1.6 KiB
Plaintext

# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("testing_lib") {
testonly = true
sources = [
"$flutter_root/testing/assertions.h",
"$flutter_root/testing/testing.cc",
"$flutter_root/testing/testing.h",
"$flutter_root/testing/thread_test.cc",
"$flutter_root/testing/thread_test.h",
]
public_deps = [
"$flutter_root/fml",
"//third_party/googletest:gtest",
]
public_configs = [ "$flutter_root:config" ]
}
source_set("testing") {
testonly = true
sources = [
"$flutter_root/testing/run_all_unittests.cc",
]
public_deps = [
":testing_lib",
]
}
source_set("dart") {
testonly = true
sources = [
"$flutter_root/testing/test_dart_native_resolver.cc",
"$flutter_root/testing/test_dart_native_resolver.h",
]
public_deps = [
":testing",
"$flutter_root/runtime:libdart",
"//third_party/tonic",
]
}
source_set("skia") {
testonly = true
sources = [
"$flutter_root/testing/assertions_skia.h",
]
public_deps = [
":testing_lib",
"//third_party/skia",
]
}
if (current_toolchain == host_toolchain) {
source_set("opengl") {
testonly = true
configs += [ "//third_party/swiftshader_flutter:swiftshader_config" ]
sources = [
"$flutter_root/testing/test_gl_surface.cc",
"$flutter_root/testing/test_gl_surface.h",
]
deps = [
":skia",
"$flutter_root/fml",
"//third_party/swiftshader_flutter:swiftshader",
]
}
}