forked from mirrors/gecko-dev
xpcom/threads/CPUUsageWatcher.cpp:43:23: error: unused variable 'kCPUCheckInterval' [-Werror,-Wunused-const-variable] xpcom/threads/CPUUsageWatcher.cpp:109:23: error: unused variable 'kCPUCheckInterval' [-Werror,-Wunused-const-variable] xpcom/threads/InputEventStatistics.cpp:18:5: error: use of undeclared identifier 'ClearOnShutdown' xpcom/threads/InputTaskManager.cpp:62:9: error: use of undeclared identifier 'InputEventStatistics' xpcom/threads/InputTaskManager.cpp:89:3: error: use of undeclared identifier 'InputEventStatistics' xpcom/threads/InputTaskManager.cpp:105:7: error: use of undeclared identifier 'nsRefreshDriver' xpcom/threads/InputTaskManager.cpp:124:9: error: use of undeclared identifier 'InputEventStatistics' xpcom/threads/MainThreadIdlePeriod.cpp:29:23: error: unused variable 'kMaxTimerThreadBoundClamp' [-Werror,-Wunused-const-variable] xpcom/threads/VsyncTaskManager.h:15:67: error: implicit instantiation of undefined template 'mozilla::StaticRefPtr<mozilla::VsyncTaskManager>' xpcom/threads/VsyncTaskManager.h:16:52: error: no viable overloaded '=' xpcom/threads/nsMemoryPressure.cpp:61:12: error: use of undeclared identifier 'nsIObserverService' xpcom/threads/nsMemoryPressure.cpp:61:37: error: use of undeclared identifier 'services' xpcom/threads/nsThreadManager.cpp:422:28: error: member access into incomplete type 'mozilla::ThreadEventTarget' xpcom/threads/nsThreadManager.cpp:661:5: error: use of undeclared identifier 'CrashReporter' xpcom/threads/nsThreadManager.cpp:662:59: error: expected ')' xpcom/threads/nsThreadManager.cpp:662:9: error: use of undeclared identifier 'CrashReporter' xpcom/threads/nsThreadManager.cpp:669:7: error: use of undeclared identifier 'CrashReporter' xpcom/threads/nsThreadManager.cpp:670:11: error: use of undeclared identifier 'CrashReporter' xpcom/threads/nsThreadManager.cpp:670:61: error: expected ')' xpcom/threads/nsThreadManager.cpp:672:7: error: use of undeclared identifier 'CrashReporter' xpcom/threads/nsThreadManager.cpp:673:11: error: use of undeclared identifier 'CrashReporter' xpcom/threads/nsThreadUtils.cpp:636:13: error: member access into incomplete type 'mozilla::Task' Differential Revision: https://phabricator.services.mozilla.com/D127041
26 lines
838 B
C++
26 lines
838 B
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_VsyncTaskManager_h
|
|
#define mozilla_VsyncTaskManager_h
|
|
|
|
#include "TaskController.h"
|
|
#include "mozilla/StaticPtr.h"
|
|
|
|
namespace mozilla {
|
|
class VsyncTaskManager : public TaskManager {
|
|
public:
|
|
static VsyncTaskManager* Get() { return gHighPriorityTaskManager.get(); }
|
|
static void Cleanup() { gHighPriorityTaskManager = nullptr; }
|
|
static void Init();
|
|
|
|
void WillRunTask() override;
|
|
|
|
private:
|
|
static StaticRefPtr<VsyncTaskManager> gHighPriorityTaskManager;
|
|
};
|
|
} // namespace mozilla
|
|
#endif
|