mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
When flutter/synchronization was first authored, we did not own fml (it was called fxl then). Now we do, so use a single spot for such utilities. The pipeline was meant to be a general purpose utility that was only ever used by the animator (it even has animator specific tracing), so move that to shell instead (where the animator resides).
15 lines
378 B
C++
15 lines
378 B
C++
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "flutter/shell/common/pipeline.h"
|
|
|
|
namespace flutter {
|
|
|
|
size_t GetNextPipelineTraceID() {
|
|
static std::atomic_size_t PipelineLastTraceID = {0};
|
|
return ++PipelineLastTraceID;
|
|
}
|
|
|
|
} // namespace flutter
|