mirror of
https://github.com/servo/servo.git
synced 2025-07-16 20:03:39 +01:00
Add Servo_StyleWorkerThreadCount.
This commit is contained in:
parent
00fe12d3ad
commit
0417022ecb
1 changed files with 6 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
#![allow(unsafe_code)]
|
#![allow(unsafe_code)]
|
||||||
|
|
||||||
use app_units::Au;
|
use app_units::Au;
|
||||||
use data::PerDocumentStyleData;
|
use data::{NUM_THREADS, PerDocumentStyleData};
|
||||||
use env_logger;
|
use env_logger;
|
||||||
use euclid::Size2D;
|
use euclid::Size2D;
|
||||||
use gecko_bindings::bindings::{RawGeckoDocument, RawGeckoElement, RawGeckoNode};
|
use gecko_bindings::bindings::{RawGeckoDocument, RawGeckoElement, RawGeckoNode};
|
||||||
|
@ -136,6 +136,11 @@ pub extern "C" fn Servo_RestyleDocument(doc: *mut RawGeckoDocument, raw_data: *m
|
||||||
restyle_subtree(node, raw_data);
|
restyle_subtree(node, raw_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub extern "C" fn Servo_StyleWorkerThreadCount() -> u32 {
|
||||||
|
*NUM_THREADS as u32
|
||||||
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn Servo_DropNodeData(data: *mut ServoNodeData) -> () {
|
pub extern "C" fn Servo_DropNodeData(data: *mut ServoNodeData) -> () {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue