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

Unified Diff: cc/test/fake_content_layer_client.cc

Issue 2894843002: Revert of Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: rebase TestExpectations 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 69be32e062da002bc9cab9040c6376ad95054a60..ca0541d0de584244edf788d091ef956e6eed82e7 100644
--- a/cc/test/fake_content_layer_client.cc
+++ b/cc/test/fake_content_layer_client.cc
@@ -60,8 +60,7 @@ FakeContentLayerClient::PaintContentsToDisplayList(
recorder.beginRecording(gfx::RectFToSkRect(draw_rect));
canvas->drawRect(gfx::RectFToSkRect(draw_rect), flags);
display_list->CreateAndAppendDrawingItem<DrawingDisplayItem>(
- ToEnclosingRect(draw_rect), recorder.finishRecordingAsPicture(),
- gfx::RectFToSkRect(draw_rect));
+ ToEnclosingRect(draw_rect), recorder.finishRecordingAsPicture());
}
for (ImageVector::const_iterator it = draw_images_.begin();
@@ -70,12 +69,11 @@ FakeContentLayerClient::PaintContentsToDisplayList(
display_list->CreateAndAppendPairedBeginItem<TransformDisplayItem>(
it->transform);
}
- PaintCanvas* canvas =
- recorder.beginRecording(gfx::RectToSkRect(PaintableRegion()));
+ PaintCanvas* canvas = recorder.beginRecording(
+ it->image.sk_image()->width(), it->image.sk_image()->height());
canvas->drawImage(it->image, it->point.x(), it->point.y(), &it->flags);
display_list->CreateAndAppendDrawingItem<DrawingDisplayItem>(
- PaintableRegion(), recorder.finishRecordingAsPicture(),
- gfx::RectToSkRect(PaintableRegion()));
+ PaintableRegion(), recorder.finishRecordingAsPicture());
if (!it->transform.IsIdentity()) {
display_list->CreateAndAppendPairedEndItem<EndTransformDisplayItem>();
}
@@ -91,8 +89,7 @@ FakeContentLayerClient::PaintContentsToDisplayList(
recorder.beginRecording(gfx::RectToSkRect(draw_rect));
canvas->drawIRect(gfx::RectToSkIRect(draw_rect), flags);
display_list->CreateAndAppendDrawingItem<DrawingDisplayItem>(
- draw_rect, recorder.finishRecordingAsPicture(),
- gfx::RectToSkRect(draw_rect));
+ draw_rect, recorder.finishRecordingAsPicture());
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