Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TemporaryChange -> AutoReset Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
index 319b850c289da370691b76a29254b4e6c6ede912..bb19152143cf4374c01403bb1210ffebc78b736f 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
@@ -9,6 +9,7 @@
#include "core/workers/WorkerThreadStartupData.h"
#include "modules/EventTargetModules.h"
#include "modules/compositorworker/CompositorWorkerThread.h"
+#include "wtf/AutoReset.h"
#include <memory>
namespace blink {
@@ -72,7 +73,7 @@ void CompositorWorkerGlobalScope::cancelAnimationFrame(int id)
bool CompositorWorkerGlobalScope::executeAnimationFrameCallbacks(double highResTimeMs)
{
- TemporaryChange<bool> temporaryChange(m_executingAnimationFrameCallbacks, true);
+ AutoReset<bool> temporaryChange(&m_executingAnimationFrameCallbacks, true);
m_callbackCollection.executeCallbacks(highResTimeMs, highResTimeMs);
return !m_callbackCollection.isEmpty();
}

Powered by Google App Engine
This is Rietveld 408576698