Skip to content

Commit d5d6bd2

Browse files
authored
Fix suspicious typo "painted" to "paint" (#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.
1 parent 2cf1181 commit d5d6bd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flow/scene_update_context.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ SceneUpdateContext::Frame::~Frame() {
306306
std::move(paint_layers_));
307307
}
308308

309-
void SceneUpdateContext::Frame::AddPaintedLayer(Layer* layer) {
309+
void SceneUpdateContext::Frame::AddPaintLayer(Layer* layer) {
310310
FML_DCHECK(layer->needs_painting());
311311
paint_layers_.push_back(layer);
312312
paint_bounds_.join(layer->paint_bounds());

flow/scene_update_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class SceneUpdateContext {
102102
float elevation);
103103
~Frame();
104104

105-
void AddPaintedLayer(Layer* layer);
105+
void AddPaintLayer(Layer* layer);
106106

107107
private:
108108
const SkRRect& rrect_;

0 commit comments

Comments
 (0)