Skip to content

Commit

Permalink
libservo: Disable get_native_media_display_and_gl_context on ohos
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
  • Loading branch information
jschwe committed May 2, 2024
1 parent 381e834 commit ba2bd9a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/servo/lib.rs
Expand Up @@ -497,7 +497,7 @@ where
}
}

#[cfg(target_os = "linux")]
#[cfg(all(target_os = "linux", not(target_env = "ohos")))]
fn get_native_media_display_and_gl_context(
rendering_context: &RenderingContext,
) -> Option<(NativeDisplay, GlContext)> {
Expand Down Expand Up @@ -534,7 +534,10 @@ where
Some((native_display, gl_context))
}

#[cfg(not(any(target_os = "windows", target_os = "linux")))]
#[cfg(not(any(
target_os = "windows",
all(target_os = "linux", not(target_env = "ohos"))
)))]
fn get_native_media_display_and_gl_context(
_rendering_context: &RenderingContext,
) -> Option<(NativeDisplay, GlContext)> {
Expand Down

0 comments on commit ba2bd9a

Please sign in to comment.