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

Unified Diff: cc/debug/rasterize_and_record_benchmark_impl.cc

Issue 362073002: cc: Remove all traces of SkPicture cloning. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark.cc ('k') | cc/output/direct_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/rasterize_and_record_benchmark_impl.cc
diff --git a/cc/debug/rasterize_and_record_benchmark_impl.cc b/cc/debug/rasterize_and_record_benchmark_impl.cc
index 0449e01553a7dcec7ce2f6b9d96f451060fde25d..036fdb820dd0c0f1d12ec4f474360ef26efe9f2e 100644
--- a/cc/debug/rasterize_and_record_benchmark_impl.cc
+++ b/cc/debug/rasterize_and_record_benchmark_impl.cc
@@ -38,9 +38,6 @@ class BenchmarkRasterTask : public Task {
// Overridden from Task:
virtual void RunOnWorkerThread() OVERRIDE {
- PicturePileImpl* picture_pile = picture_pile_->GetCloneForDrawingOnThread(
- RasterWorkerPool::GetPictureCloneIndexForCurrentThread());
-
// Parameters for LapTimer.
const int kTimeLimitMillis = 1;
const int kWarmupRuns = 0;
@@ -59,9 +56,9 @@ class BenchmarkRasterTask : public Task {
SkCanvas canvas(bitmap);
PicturePileImpl::Analysis analysis;
- picture_pile->AnalyzeInRect(
+ picture_pile_->AnalyzeInRect(
content_rect_, contents_scale_, &analysis, NULL);
- picture_pile->RasterToBitmap(
+ picture_pile_->RasterToBitmap(
&canvas, content_rect_, contents_scale_, NULL);
is_solid_color_ = analysis.is_solid_color;
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark.cc ('k') | cc/output/direct_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698