Namespaces

Records

Functions

  • bool IsEventSignalled (const zx::event & event, zx_signals_t signal)

    Synchronously checks whether the event has signalled any of the bits in

    |signal|.

    Defined at line 12 of file ../../src/ui/lib/escher/test/flib/util.cc

  • zx::event CopyEvent (const zx::event & event)

    Create a duplicate of the event.

    Defined at line 18 of file ../../src/ui/lib/escher/test/flib/util.cc

  • bool ComparePose (escher::hmd::Pose * p0, escher::hmd::Pose * p1, float epsilon)

    Returns true iff |a| and |b| are the same within optional |epsilon|.

    Defined at line 26 of file ../../src/ui/lib/escher/test/hmd/pose_buffer_latching_test.cc

  • glm::mat4 MatrixFromPose (const hmd::Pose & pose)

    Defined at line 53 of file ../../src/ui/lib/escher/test/hmd/pose_buffer_latching_test.cc

  • Escher * GetEscher ()

    Must call during tests, only if !VK_TESTS_SUPPRESSED().

    |escher::test::EscherEnvironment::RegisterGlobalTestEnvironment()| should be already called.

    (Generatlly this should be called before RUN_ALL_TESTS() is invoked in |run_all_unittests.cc|.)

    Defined at line 105 of file ../../src/ui/lib/escher/test/common/gtest_escher.cc

  • std::unique_ptr<Escher> CreateEscherWithProtectedMemoryEnabled ()

    This function must be called after we set up the global EscherEnvironment, i.e. inside test body

    functions.

    Defined at line 110 of file ../../src/ui/lib/escher/test/common/gtest_escher.cc

  • bool GlobalEscherUsesSwiftShader ()

    Checks if the global Escher environment uses SwiftShader as its physical

    device. This is used in macro SKIP_TEST_IF_ESCHER_USES_DEVICE().

    Defined at line 138 of file ../../src/ui/lib/escher/test/common/gtest_escher.cc

  • bool GlobalEscherUsesVirtualGpu ()

    Checks if the global Escher environment uses an Virtual GPU as its physical

    device (for example, on FEMU). This is used in macro

    SKIP_TEST_IF_ESCHER_USES_DEVICE().

    Defined at line 126 of file ../../src/ui/lib/escher/test/common/gtest_escher.cc

  • bool GlobalEscherUsesSoftwareGpu ()

    Defined at line 132 of file ../../src/ui/lib/escher/test/common/gtest_escher.cc