@@ -293,7 +293,7 @@ void Canvas::drawImage(const CanvasImage* image,
293293 if (!image)
294294 Dart_ThrowException (
295295 ToDart (" Canvas.drawImage called with non-genuine Image." ));
296- image_allocation_size_ += image->GetAllocationSize ();
296+ external_allocation_size_ += image->GetAllocationSize ();
297297 canvas_->drawImage (image->image (), x, y, paint.paint ());
298298}
299299
@@ -315,7 +315,7 @@ void Canvas::drawImageRect(const CanvasImage* image,
315315 ToDart (" Canvas.drawImageRect called with non-genuine Image." ));
316316 SkRect src = SkRect::MakeLTRB (src_left, src_top, src_right, src_bottom);
317317 SkRect dst = SkRect::MakeLTRB (dst_left, dst_top, dst_right, dst_bottom);
318- image_allocation_size_ += image->GetAllocationSize ();
318+ external_allocation_size_ += image->GetAllocationSize ();
319319 canvas_->drawImageRect (image->image (), src, dst, paint.paint (),
320320 SkCanvas::kFast_SrcRectConstraint );
321321}
@@ -341,7 +341,7 @@ void Canvas::drawImageNine(const CanvasImage* image,
341341 SkIRect icenter;
342342 center.round (&icenter);
343343 SkRect dst = SkRect::MakeLTRB (dst_left, dst_top, dst_right, dst_bottom);
344- image_allocation_size_ += image->GetAllocationSize ();
344+ external_allocation_size_ += image->GetAllocationSize ();
345345 canvas_->drawImageNine (image->image (), icenter, dst, paint.paint ());
346346}
347347
@@ -351,7 +351,7 @@ void Canvas::drawPicture(Picture* picture) {
351351 if (!picture)
352352 Dart_ThrowException (
353353 ToDart (" Canvas.drawPicture called with non-genuine Picture." ));
354- image_allocation_size_ += picture->GetAllocationSize ();
354+ external_allocation_size_ += picture->GetAllocationSize ();
355355 canvas_->drawPicture (picture->picture ().get ());
356356}
357357
@@ -380,7 +380,7 @@ void Canvas::drawVertices(const Vertices* vertices,
380380 if (!vertices)
381381 Dart_ThrowException (
382382 ToDart (" Canvas.drawVertices called with non-genuine Vertices." ));
383-
383+ external_allocation_size_ += vertices-> GetAllocationSize ();
384384 canvas_->drawVertices (vertices->vertices (), blend_mode, *paint.paint ());
385385}
386386
@@ -406,7 +406,7 @@ void Canvas::drawAtlas(const Paint& paint,
406406 static_assert (sizeof (SkRect) == sizeof (float ) * 4 ,
407407 " SkRect doesn't use floats." );
408408
409- image_allocation_size_ += atlas->GetAllocationSize ();
409+ external_allocation_size_ += atlas->GetAllocationSize ();
410410 canvas_->drawAtlas (
411411 skImage.get (), reinterpret_cast <const SkRSXform*>(transforms.data ()),
412412 reinterpret_cast <const SkRect*>(rects.data ()),
0 commit comments