mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Add back API hashes
This commit is contained in:
parent
e4362dad73
commit
14ef53cf57
2 changed files with 19 additions and 24 deletions
|
@ -1107,13 +1107,6 @@ pub struct _cef_browser_host_t {
|
|||
pub drag_source_system_drag_ended: Option<extern "C" fn(
|
||||
this: *mut cef_browser_host_t) -> ()>,
|
||||
|
||||
//
|
||||
// Instructs the browser to perform an accelerated composite. The appropriate
|
||||
// Direct3D or OpenGL state must have been set up before calling this
|
||||
// function.
|
||||
//
|
||||
pub composite: Option<extern "C" fn(this: *mut cef_browser_host_t) -> ()>,
|
||||
|
||||
//
|
||||
// Instructs the browser to initialize accelerated compositing. The
|
||||
// appropriate Direct3D or OpenGL state must have been set up before calling
|
||||
|
@ -1932,22 +1925,6 @@ impl CefBrowserHost {
|
|||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Instructs the browser to perform an accelerated composite. The appropriate
|
||||
// Direct3D or OpenGL state must have been set up before calling this
|
||||
// function.
|
||||
//
|
||||
pub fn composite(&self) -> () {
|
||||
if self.c_object.is_null() {
|
||||
panic!("called a CEF method on a null object")
|
||||
}
|
||||
unsafe {
|
||||
CefWrap::to_rust(
|
||||
((*self.c_object).composite.unwrap())(
|
||||
self.c_object))
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Instructs the browser to initialize accelerated compositing. The
|
||||
// appropriate Direct3D or OpenGL state must have been set up before calling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue