зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio DONTBUILD
Updated with rustfmt 1.4.18-stable (8157a3f 2020-07-15) # ignore-this-changeset Depends on D105158 Differential Revision: https://phabricator.services.mozilla.com/D105159
This commit is contained in:
Родитель
949eae05a3
Коммит
eb4a1abeb2
|
@ -31,15 +31,18 @@ use nsstring::nsAString;
|
|||
use num_cpus;
|
||||
use program_cache::{remove_disk_cache, WrProgramCache};
|
||||
use rayon;
|
||||
use webrender::sw_compositor::SwCompositor;
|
||||
use tracy_rs::register_thread_with_profiler;
|
||||
use webrender::sw_compositor::SwCompositor;
|
||||
use webrender::{
|
||||
api::units::*, api::*, render_api::*, set_profiler_hooks, AsyncPropertySampler, AsyncScreenshotHandle, Compositor,
|
||||
CompositorCapabilities, CompositorConfig, CompositorSurfaceTransform, DebugFlags, Device, NativeSurfaceId,
|
||||
NativeSurfaceInfo, NativeTileId, PartialPresentCompositor, PipelineInfo, ProfilerHooks, RecordedFrameHandle,
|
||||
Renderer, RendererOptions, RendererStats, SceneBuilderHooks, ShaderPrecacheFlags, Shaders, SharedShaders,
|
||||
TextureCacheConfig, UploadMethod, ONE_TIME_USAGE_HINT, host_utils::{thread_started, thread_stopped},
|
||||
MappableCompositor, MappedTileInfo, SWGLCompositeSurfaceInfo,
|
||||
api::units::*,
|
||||
api::*,
|
||||
host_utils::{thread_started, thread_stopped},
|
||||
render_api::*,
|
||||
set_profiler_hooks, AsyncPropertySampler, AsyncScreenshotHandle, Compositor, CompositorCapabilities,
|
||||
CompositorConfig, CompositorSurfaceTransform, DebugFlags, Device, MappableCompositor, MappedTileInfo,
|
||||
NativeSurfaceId, NativeSurfaceInfo, NativeTileId, PartialPresentCompositor, PipelineInfo, ProfilerHooks,
|
||||
RecordedFrameHandle, Renderer, RendererOptions, RendererStats, SWGLCompositeSurfaceInfo, SceneBuilderHooks,
|
||||
ShaderPrecacheFlags, Shaders, SharedShaders, TextureCacheConfig, UploadMethod, ONE_TIME_USAGE_HINT,
|
||||
};
|
||||
use wr_malloc_size_of::MallocSizeOfOps;
|
||||
|
||||
|
@ -1071,7 +1074,9 @@ pub extern "C" fn wr_thread_pool_new(low_priority: bool) -> *mut WrThreadPool {
|
|||
.thread_name(move |idx| format!("WRWorker{}#{}", priority_tag, idx))
|
||||
.num_threads(num_threads)
|
||||
.start_handler(move |idx| {
|
||||
unsafe { wr_register_thread_local_arena(); }
|
||||
unsafe {
|
||||
wr_register_thread_local_arena();
|
||||
}
|
||||
let name = format!("WRWorker{}#{}", priority_tag, idx);
|
||||
register_thread_with_profiler(name.clone());
|
||||
thread_started(&name);
|
||||
|
@ -1340,11 +1345,7 @@ impl Compositor for WrCompositor {
|
|||
}
|
||||
}
|
||||
|
||||
fn start_compositing(
|
||||
&mut self,
|
||||
dirty_rects: &[DeviceIntRect],
|
||||
opaque_rects: &[DeviceIntRect],
|
||||
) {
|
||||
fn start_compositing(&mut self, dirty_rects: &[DeviceIntRect], opaque_rects: &[DeviceIntRect]) {
|
||||
unsafe {
|
||||
wr_compositor_start_compositing(
|
||||
self.0,
|
||||
|
|
Загрузка…
Ссылка в новой задаче