mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1161731: Remove newline characters from the ends of NS_WARNING messages in /gfx and /layout. r=mstange
This commit is contained in:
parent
b307ff9995
commit
3899eae2cc
@ -206,7 +206,7 @@ DeviceManagerD3D9::Init()
|
||||
if (!mNv3DVUtils) {
|
||||
mNv3DVUtils = new Nv3DVUtils();
|
||||
if (!mNv3DVUtils) {
|
||||
NS_WARNING("Could not create a new instance of Nv3DVUtils.\n");
|
||||
NS_WARNING("Could not create a new instance of Nv3DVUtils.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -666,7 +666,7 @@ CompositorParent::CompositorParent(nsIWidget* aWidget,
|
||||
}
|
||||
|
||||
if (UseVsyncComposition()) {
|
||||
NS_WARNING("Enabling vsync compositor\n");
|
||||
NS_WARNING("Enabling vsync compositor");
|
||||
mCompositorScheduler = new CompositorVsyncScheduler(this, aWidget);
|
||||
} else {
|
||||
mCompositorScheduler = new CompositorSoftwareTimerScheduler(this);
|
||||
|
@ -497,7 +497,7 @@ gfxAndroidPlatform::CreateHardwareVsyncSource()
|
||||
VsyncSource::Display& display = vsyncSource->GetGlobalDisplay();
|
||||
display.EnableVsync();
|
||||
if (!display.IsVsyncEnabled()) {
|
||||
NS_WARNING("Error enabling gonk vsync. Falling back to software vsync\n");
|
||||
NS_WARNING("Error enabling gonk vsync. Falling back to software vsync");
|
||||
return gfxPlatform::CreateHardwareVsyncSource();
|
||||
}
|
||||
display.DisableVsync();
|
||||
|
@ -2344,7 +2344,7 @@ gfxPlatform::UsesOffMainThreadCompositing()
|
||||
already_AddRefed<mozilla::gfx::VsyncSource>
|
||||
gfxPlatform::CreateHardwareVsyncSource()
|
||||
{
|
||||
NS_WARNING("Hardware Vsync support not yet implemented. Falling back to software timers\n");
|
||||
NS_WARNING("Hardware Vsync support not yet implemented. Falling back to software timers");
|
||||
nsRefPtr<mozilla::gfx::VsyncSource> softwareVsync = new SoftwareVsyncSource();
|
||||
return softwareVsync.forget();
|
||||
}
|
||||
|
@ -482,7 +482,7 @@ public:
|
||||
// situations. According to the docs, it is compatible with all displays running on the computer
|
||||
// But if we have different monitors at different display rates, we may hit issues.
|
||||
if (CVDisplayLinkCreateWithActiveCGDisplays(&mDisplayLink) != kCVReturnSuccess) {
|
||||
NS_WARNING("Could not create a display link with all active displays. Retrying\n");
|
||||
NS_WARNING("Could not create a display link with all active displays. Retrying");
|
||||
CVDisplayLinkRelease(mDisplayLink);
|
||||
mDisplayLink = nullptr;
|
||||
|
||||
@ -586,7 +586,7 @@ gfxPlatformMac::CreateHardwareVsyncSource()
|
||||
VsyncSource::Display& primaryDisplay = osxVsyncSource->GetGlobalDisplay();
|
||||
primaryDisplay.EnableVsync();
|
||||
if (!primaryDisplay.IsVsyncEnabled()) {
|
||||
NS_WARNING("OS X Vsync source not enabled. Falling back to software vsync.\n");
|
||||
NS_WARNING("OS X Vsync source not enabled. Falling back to software vsync.");
|
||||
return gfxPlatform::CreateHardwareVsyncSource();
|
||||
}
|
||||
|
||||
|
@ -1319,7 +1319,7 @@ gfxUtils::WriteAsPNG(SourceSurface* aSurface, const char* aFile)
|
||||
}
|
||||
}
|
||||
if (!file) {
|
||||
NS_WARNING("Failed to open file to create PNG!\n");
|
||||
NS_WARNING("Failed to open file to create PNG!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -2135,7 +2135,7 @@ public:
|
||||
void ScheduleSoftwareVsync(TimeStamp aVsyncTimestamp)
|
||||
{
|
||||
MOZ_ASSERT(IsInVsyncThread());
|
||||
NS_WARNING("DwmComposition dynamically disabled, falling back to software timers\n");
|
||||
NS_WARNING("DwmComposition dynamically disabled, falling back to software timers");
|
||||
|
||||
TimeStamp nextVsync = aVsyncTimestamp + mSoftwareVsyncRate;
|
||||
TimeDuration delay = nextVsync - TimeStamp::Now();
|
||||
@ -2246,14 +2246,14 @@ gfxWindowsPlatform::CreateHardwareVsyncSource()
|
||||
{
|
||||
MOZ_RELEASE_ASSERT(NS_IsMainThread());
|
||||
if (!WinUtils::dwmIsCompositionEnabledPtr) {
|
||||
NS_WARNING("Dwm composition not available, falling back to software vsync\n");
|
||||
NS_WARNING("Dwm composition not available, falling back to software vsync");
|
||||
return gfxPlatform::CreateHardwareVsyncSource();
|
||||
}
|
||||
|
||||
BOOL dwmEnabled = false;
|
||||
WinUtils::dwmIsCompositionEnabledPtr(&dwmEnabled);
|
||||
if (!dwmEnabled) {
|
||||
NS_WARNING("DWM not enabled, falling back to software vsync\n");
|
||||
NS_WARNING("DWM not enabled, falling back to software vsync");
|
||||
return gfxPlatform::CreateHardwareVsyncSource();
|
||||
}
|
||||
|
||||
|
@ -859,7 +859,7 @@ CreateVsyncRefreshTimer()
|
||||
return;
|
||||
}
|
||||
|
||||
NS_WARNING("Enabling vsync refresh driver\n");
|
||||
NS_WARNING("Enabling vsync refresh driver");
|
||||
|
||||
if (XRE_IsParentProcess()) {
|
||||
// Make sure all vsync systems are ready.
|
||||
|
Loading…
Reference in New Issue
Block a user