Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 87dbbb5

Browse files
committed
1 << 20
1 parent db18ffa commit 87dbbb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flow/raster_cache.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,12 @@ void RasterCache::SetCheckboardCacheImages(bool checkerboard) {
299299

300300
void RasterCache::TraceStatsToTimeline() const {
301301
#if !FLUTTER_RELEASE
302-
constexpr double kBytesToMegaBytes = 1e-6;
302+
constexpr double kMegaBytes = (1 << 20);
303303
FML_TRACE_COUNTER("flutter", "RasterCache", reinterpret_cast<int64_t>(this),
304304
"LayerCount", layer_cache_.size(), "LayerMBytes",
305-
EstimateLayerCacheByteSize() * kBytesToMegaBytes,
305+
EstimateLayerCacheByteSize() / kMegaBytes,
306306
"PictureCount", picture_cache_.size(), "PictureMBytes",
307-
EstimatePictureCacheByteSize() * kBytesToMegaBytes);
307+
EstimatePictureCacheByteSize() / kMegaBytes);
308308

309309
#endif // !FLUTTER_RELEASE
310310
}

0 commit comments

Comments
 (0)