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

Unified Diff: cc/test/fake_content_layer_client.cc

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 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/paint/record_paint_canvas.cc ('k') | cc/test/solid_color_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_content_layer_client.cc
diff --git a/cc/test/fake_content_layer_client.cc b/cc/test/fake_content_layer_client.cc
index ca0541d0de584244edf788d091ef956e6eed82e7..69be32e062da002bc9cab9040c6376ad95054a60 100644
--- a/cc/test/fake_content_layer_client.cc
+++ b/cc/test/fake_content_layer_client.cc
@@ -60,7 +60,8 @@ FakeContentLayerClient::PaintContentsToDisplayList(
recorder.beginRecording(gfx::RectFToSkRect(draw_rect));
canvas->drawRect(gfx::RectFToSkRect(draw_rect), flags);
display_list->CreateAndAppendDrawingItem<DrawingDisplayItem>(
- ToEnclosingRect(draw_rect), recorder.finishRecordingAsPicture());
+ ToEnclosingRect(draw_rect), recorder.finishRecordingAsPicture(),
+ gfx::RectFToSkRect(draw_rect));
}
for (ImageVector::const_iterator it = draw_images_.begin();
@@ -69,11 +70,12 @@ FakeContentLayerClient::PaintContentsToDisplayList(
display_list->CreateAndAppendPairedBeginItem<TransformDisplayItem>(
it->transform);
}
- PaintCanvas* canvas = recorder.beginRecording(
- it->image.sk_image()->width(), it->image.sk_image()->height());
+ PaintCanvas* canvas =
+ recorder.beginRecording(gfx::RectToSkRect(PaintableRegion()));
canvas->drawImage(it->image, it->point.x(), it->point.y(), &it->flags);
display_list->CreateAndAppendDrawingItem<DrawingDisplayItem>(
- PaintableRegion(), recorder.finishRecordingAsPicture());
+ PaintableRegion(), recorder.finishRecordingAsPicture(),
+ gfx::RectToSkRect(PaintableRegion()));
if (!it->transform.IsIdentity()) {
display_list->CreateAndAppendPairedEndItem<EndTransformDisplayItem>();
}
@@ -89,7 +91,8 @@ FakeContentLayerClient::PaintContentsToDisplayList(
recorder.beginRecording(gfx::RectToSkRect(draw_rect));
canvas->drawIRect(gfx::RectToSkIRect(draw_rect), flags);
display_list->CreateAndAppendDrawingItem<DrawingDisplayItem>(
- draw_rect, recorder.finishRecordingAsPicture());
+ draw_rect, recorder.finishRecordingAsPicture(),
+ gfx::RectToSkRect(draw_rect));
draw_rect.Inset(1, 1);
}
}
« no previous file with comments | « cc/paint/record_paint_canvas.cc ('k') | cc/test/solid_color_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698