summaryrefslogtreecommitdiffstats
path: root/cc/debug
diff options
context:
space:
mode:
authorhendrikw <hendrikw@chromium.org>2015-10-19 16:45:09 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-19 23:46:01 +0000
commitc7014b2e5b584ddd51e54189cb3e1a5f6970c502 (patch)
treebfd1f978e9cfe06ee933241d3e1bdc95715b04d9 /cc/debug
parent44429f23f3899d52c9493c114ae9b62e1ddeb7af (diff)
downloadchromium_src-c7014b2e5b584ddd51e54189cb3e1a5f6970c502.zip
chromium_src-c7014b2e5b584ddd51e54189cb3e1a5f6970c502.tar.gz
chromium_src-c7014b2e5b584ddd51e54189cb3e1a5f6970c502.tar.bz2
cc: Remove the base RasterSource
We only have one raster source now, we can remove the base class. Also, the helper is no longer needed because we only have one implementation now. Change-Id: I97c63f37a039ea31fa8eaa7b0c3e4f0e8bb6f8bf BUG=536104 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1405883002 Cr-Commit-Position: refs/heads/master@{#354915}
Diffstat (limited to 'cc/debug')
-rw-r--r--cc/debug/rasterize_and_record_benchmark_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/debug/rasterize_and_record_benchmark_impl.cc b/cc/debug/rasterize_and_record_benchmark_impl.cc
index d798dc6..305cbc5 100644
--- a/cc/debug/rasterize_and_record_benchmark_impl.cc
+++ b/cc/debug/rasterize_and_record_benchmark_impl.cc
@@ -24,7 +24,7 @@ namespace {
const int kDefaultRasterizeRepeatCount = 100;
-void RunBenchmark(RasterSource* raster_source,
+void RunBenchmark(DisplayListRasterSource* raster_source,
const gfx::Rect& content_rect,
float contents_scale,
size_t repeat_count,
@@ -47,7 +47,7 @@ void RunBenchmark(RasterSource* raster_source,
bitmap.allocPixels(SkImageInfo::MakeN32Premul(content_rect.width(),
content_rect.height()));
SkCanvas canvas(bitmap);
- RasterSource::SolidColorAnalysis analysis;
+ DisplayListRasterSource::SolidColorAnalysis analysis;
raster_source->PerformSolidColorAnalysis(content_rect, contents_scale,
&analysis);
@@ -178,7 +178,7 @@ void RasterizeAndRecordBenchmarkImpl::RunOnLayer(PictureLayerImpl* layer) {
tiling_set->AddTiling(1.f, layer->GetRasterSource());
tiling->set_resolution(HIGH_RESOLUTION);
tiling->CreateAllTilesForTesting();
- RasterSource* raster_source = tiling->raster_source();
+ DisplayListRasterSource* raster_source = tiling->raster_source();
for (PictureLayerTiling::CoverageIterator it(tiling, 1.f,
layer->visible_layer_rect());
it; ++it) {
@@ -203,7 +203,7 @@ void RasterizeAndRecordBenchmarkImpl::RunOnLayer(PictureLayerImpl* layer) {
rasterize_results_.total_best_time += min_time;
}
- const RasterSource* layer_raster_source = layer->GetRasterSource();
+ const DisplayListRasterSource* layer_raster_source = layer->GetRasterSource();
rasterize_results_.total_memory_usage +=
layer_raster_source->GetPictureMemoryUsage();
}