Rename GPU to raster thread in PerformanceOverlay (flutter/engine#17148)

Rename GPU to raster thread in PerformanceOverlay and update goldens.
This commit is contained in:
liyuqian 2020-03-24 21:43:16 -07:00 committed by GitHub
parent d968e224ca
commit a7073893f4
5 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ void PerformanceOverlayLayer::Paint(PaintContext& context) const {
VisualizeStopWatch(
*context.leaf_nodes_canvas, context.raster_time, x, y, width,
height - padding, options_ & kVisualizeRasterizerStatistics,
options_ & kDisplayRasterizerStatistics, "GPU", font_path_);
options_ & kDisplayRasterizerStatistics, "Raster", font_path_);
VisualizeStopWatch(*context.leaf_nodes_canvas, context.ui_time, x, y + height,
width, height - padding,

View File

@ -163,7 +163,7 @@ TEST_F(PerformanceOverlayLayerTest, SimpleRasterizerStatistics) {
layer->Paint(paint_context());
auto overlay_text = PerformanceOverlayLayer::MakeStatisticsText(
paint_context().raster_time, "GPU", "");
paint_context().raster_time, "Raster", "");
auto overlay_text_data = overlay_text->serialize(SkSerialProcs{});
SkPaint text_paint;
text_paint.setColor(SK_ColorGRAY);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB