Route VR and startup GL state through backend
This commit is contained in:
@@ -2246,6 +2246,35 @@ void rejects_incomplete_generic_capability_dispatch(pp::tests::Harness& h)
|
||||
PP_EXPECT(h, status.code == pp::foundation::StatusCode::invalid_argument);
|
||||
}
|
||||
|
||||
void queries_generic_capability_state(pp::tests::Harness& h)
|
||||
{
|
||||
const auto blend = pp::renderer::gl::query_opengl_capability_state(
|
||||
0x0BE2U,
|
||||
pp::renderer::gl::OpenGlCapabilityStateQueryDispatch {
|
||||
.is_enabled = record_is_enabled,
|
||||
});
|
||||
const auto depth = pp::renderer::gl::query_opengl_capability_state(
|
||||
0x0B71U,
|
||||
pp::renderer::gl::OpenGlCapabilityStateQueryDispatch {
|
||||
.is_enabled = record_is_enabled,
|
||||
});
|
||||
|
||||
PP_EXPECT(h, blend.ok());
|
||||
PP_EXPECT(h, blend.value());
|
||||
PP_EXPECT(h, depth.ok());
|
||||
PP_EXPECT(h, !depth.value());
|
||||
}
|
||||
|
||||
void rejects_incomplete_generic_capability_state_query(pp::tests::Harness& h)
|
||||
{
|
||||
const auto result = pp::renderer::gl::query_opengl_capability_state(
|
||||
0x0BE2U,
|
||||
pp::renderer::gl::OpenGlCapabilityStateQueryDispatch {});
|
||||
|
||||
PP_EXPECT(h, !result.ok());
|
||||
PP_EXPECT(h, result.status().code == pp::foundation::StatusCode::invalid_argument);
|
||||
}
|
||||
|
||||
void applies_render_platform_hints(pp::tests::Harness& h)
|
||||
{
|
||||
recorded_state_calls.clear();
|
||||
@@ -4435,6 +4464,8 @@ int main()
|
||||
harness.run("rejects_incomplete_scissor_test_dispatch", rejects_incomplete_scissor_test_dispatch);
|
||||
harness.run("applies_generic_capability_dispatch", applies_generic_capability_dispatch);
|
||||
harness.run("rejects_incomplete_generic_capability_dispatch", rejects_incomplete_generic_capability_dispatch);
|
||||
harness.run("queries_generic_capability_state", queries_generic_capability_state);
|
||||
harness.run("rejects_incomplete_generic_capability_state_query", rejects_incomplete_generic_capability_state_query);
|
||||
harness.run("applies_render_platform_hints", applies_render_platform_hints);
|
||||
harness.run("rejects_incomplete_render_platform_hint_dispatch", rejects_incomplete_render_platform_hint_dispatch);
|
||||
harness.run("applies_debug_output_states", applies_debug_output_states);
|
||||
|
||||
Reference in New Issue
Block a user