Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1880)

Unified Diff: cc/resources/picture_pile_impl_perftest.cc

Issue 666273002: cc: Added raster source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/resources/picture_pile_impl_perftest.cc
diff --git a/cc/resources/picture_pile_impl_perftest.cc b/cc/resources/picture_pile_impl_perftest.cc
index 7f12fd125a1a28c8e2222549ddda30dc90a3e563..4e890648e10d40e4c88a2fdc562d964577fa052b 100644
--- a/cc/resources/picture_pile_impl_perftest.cc
+++ b/cc/resources/picture_pile_impl_perftest.cc
@@ -33,10 +33,10 @@ class PicturePileImplPerfTest : public testing::Test {
// Content rect that will align with top-left tile at scale 1.0.
gfx::Rect content_rect(0, 0, kTileSize, kTileSize);
- PicturePileImpl::Analysis analysis;
+ RasterSource::SolidColorAnalysis analysis;
timer_.Reset();
do {
- pile->AnalyzeInRect(content_rect, contents_scale, &analysis);
+ pile->AnalyzeInRect(content_rect, contents_scale, &analysis, nullptr);
timer_.NextLap();
} while (!timer_.HasTimeLimitExpired());
@@ -57,10 +57,10 @@ class PicturePileImplPerfTest : public testing::Test {
FakeRenderingStatsInstrumentation rendering_stats_instrumentation;
timer_.Reset();
do {
- pile->RasterToBitmap(&canvas,
- content_rect,
- contents_scale,
- &rendering_stats_instrumentation);
+ pile->PlaybackToCanvas(&canvas,
+ content_rect,
+ contents_scale,
+ &rendering_stats_instrumentation);
timer_.NextLap();
} while (!timer_.HasTimeLimitExpired());

Powered by Google App Engine
This is Rietveld 408576698