From d8224bff56774a06b02231bd8d4571b54d1e3cbc Mon Sep 17 00:00:00 2001 From: liyuqian Date: Fri, 18 Jan 2019 13:44:30 -0800 Subject: [PATCH] Fix suspicious typo "painted" to "paint" (flutter/engine#7530) Since it's adding to paint_layers_, I think the "painted" is a typo of "paint". It's also a misleading typo which mistakenly let people believe that the layer has already been painted. --- engine/src/flutter/flow/scene_update_context.cc | 2 +- engine/src/flutter/flow/scene_update_context.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/flow/scene_update_context.cc b/engine/src/flutter/flow/scene_update_context.cc index 89a474bcdf..e5e4bac42c 100644 --- a/engine/src/flutter/flow/scene_update_context.cc +++ b/engine/src/flutter/flow/scene_update_context.cc @@ -306,7 +306,7 @@ SceneUpdateContext::Frame::~Frame() { std::move(paint_layers_)); } -void SceneUpdateContext::Frame::AddPaintedLayer(Layer* layer) { +void SceneUpdateContext::Frame::AddPaintLayer(Layer* layer) { FML_DCHECK(layer->needs_painting()); paint_layers_.push_back(layer); paint_bounds_.join(layer->paint_bounds()); diff --git a/engine/src/flutter/flow/scene_update_context.h b/engine/src/flutter/flow/scene_update_context.h index 9d52e34fb4..22e39e63ac 100644 --- a/engine/src/flutter/flow/scene_update_context.h +++ b/engine/src/flutter/flow/scene_update_context.h @@ -102,7 +102,7 @@ class SceneUpdateContext { float elevation); ~Frame(); - void AddPaintedLayer(Layer* layer); + void AddPaintLayer(Layer* layer); private: const SkRRect& rrect_;