mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Apply lints from internal roll (#16509)
This commit is contained in:
parent
1daba53187
commit
826b2d46ef
@ -105,7 +105,7 @@ void MessageLoopTaskQueues::GetTasksToRunNow(
|
||||
if (top.GetTargetTime() > now) {
|
||||
break;
|
||||
}
|
||||
invocations.emplace_back(std::move(top.GetTask()));
|
||||
invocations.emplace_back(top.GetTask());
|
||||
queue_entries_.at(top_queue)->delayed_tasks.pop();
|
||||
if (type == FlushType::kSingle) {
|
||||
break;
|
||||
@ -149,7 +149,7 @@ void MessageLoopTaskQueues::AddTaskObserver(TaskQueueId queue_id,
|
||||
const fml::closure& callback) {
|
||||
std::lock_guard guard(queue_mutex_);
|
||||
FML_DCHECK(callback != nullptr) << "Observer callback must be non-null.";
|
||||
queue_entries_.at(queue_id)->task_observers[key] = std::move(callback);
|
||||
queue_entries_.at(queue_id)->task_observers[key] = callback;
|
||||
}
|
||||
|
||||
void MessageLoopTaskQueues::RemoveTaskObserver(TaskQueueId queue_id,
|
||||
|
||||
@ -135,7 +135,7 @@ class MessageLoopTaskQueues
|
||||
|
||||
bool HasPendingTasksUnlocked(TaskQueueId queue_id) const;
|
||||
|
||||
const DelayedTask& PeekNextTaskUnlocked(TaskQueueId queue_id,
|
||||
const DelayedTask& PeekNextTaskUnlocked(TaskQueueId owner,
|
||||
TaskQueueId& top_queue_id) const;
|
||||
|
||||
fml::TimePoint GetNextWakeTimeUnlocked(TaskQueueId queue_id) const;
|
||||
|
||||
@ -364,7 +364,7 @@ final class AccessibilityViewEmbedder {
|
||||
MotionEvent.PointerCoords originCoords = new MotionEvent.PointerCoords();
|
||||
event.getPointerCoords(i, originCoords);
|
||||
|
||||
pointerCoords[i] = new MotionEvent.PointerCoords((originCoords));
|
||||
pointerCoords[i] = new MotionEvent.PointerCoords(originCoords);
|
||||
pointerCoords[i].x -= displayBounds.left;
|
||||
pointerCoords[i].y -= displayBounds.top;
|
||||
}
|
||||
@ -399,7 +399,7 @@ final class AccessibilityViewEmbedder {
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
if (!(o instanceof ViewAndId)) return false;
|
||||
ViewAndId viewAndId = (ViewAndId) o;
|
||||
return id == viewAndId.id && view.equals(viewAndId.view);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user