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

Unified Diff: cc/trees/layer_tree_host_pixeltest_tiles.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/trees/layer_tree_host_pixeltest_masks.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_pixeltest_tiles.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_tiles.cc b/cc/trees/layer_tree_host_pixeltest_tiles.cc
index f0dcb95a0b77b7f128df3d8a34365880fac88251..e2fc6d64670c09f16622fa0da0d088217aec0858 100644
--- a/cc/trees/layer_tree_host_pixeltest_tiles.cc
+++ b/cc/trees/layer_tree_host_pixeltest_tiles.cc
@@ -113,7 +113,7 @@ class BlueYellowClient : public ContentLayerClient {
PaintRecorder recorder;
PaintCanvas* canvas =
- recorder.beginRecording(gfx::RectToSkRect(gfx::Rect(size_)));
+ recorder.beginRecording(gfx::RectToSkRect(PaintableRegion()));
gfx::Rect top(0, 0, size_.width(), size_.height() / 2);
gfx::Rect bottom(0, size_.height() / 2, size_.width(), size_.height() / 2);
@@ -129,7 +129,8 @@ class BlueYellowClient : public ContentLayerClient {
canvas->drawRect(gfx::RectToSkRect(yellow_rect), flags);
display_list->CreateAndAppendDrawingItem<DrawingDisplayItem>(
- PaintableRegion(), recorder.finishRecordingAsPicture());
+ PaintableRegion(), recorder.finishRecordingAsPicture(),
+ gfx::RectToSkRect(PaintableRegion()));
display_list->Finalize();
return display_list;
}
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_masks.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698