Run the command decoder buffer unittests against the passthrough command decoder.
Fix tracking of mapped buffers when the buffer is deleted or re-initialized.
BUG=602737
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I97800d542f41bc591d04a52af2653d35f1f8076d
Reviewed-on: https://chromium-review.googlesource.com/615802
Commit-Queue: Geoff Lang <[email protected]>
Reviewed-by: Antoine Labour <[email protected]>
Cr-Commit-Position: refs/heads/master@{#497049}
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn
index 71512b8..765673e 100644
--- a/gpu/BUILD.gn
+++ b/gpu/BUILD.gn
@@ -334,6 +334,12 @@
sources += [ "ipc/client/gpu_memory_buffer_impl_native_pixmap_unittest.cc" ]
}
+ # TODO(geofflang): Run passthrough command decoder unittests on more platforms
+ # once initialization of ANGLE's NULL context is supported
+ if ((is_win || (is_linux && !use_ozone)) && !is_asan) {
+ sources += [ "command_buffer/service/gles2_cmd_decoder_passthrough_unittest_buffers.cc" ]
+ }
+
configs += [
"//build/config:precompiled_headers",