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

Unified Diff: cc/paint/display_item_list.cc

Issue 2914863003: Use SaveLayerAlpha bounds when doing Save-Draw-Restore optimization (Closed)
Patch Set: savebounds . 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 | « no previous file | cc/paint/paint_op_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/display_item_list.cc
diff --git a/cc/paint/display_item_list.cc b/cc/paint/display_item_list.cc
index b947403a73883fdc2ee0c6d6b05d2d1b6771fccc..cd3583bda8c17540813e47bdbfbbd535731e0797 100644
--- a/cc/paint/display_item_list.cc
+++ b/cc/paint/display_item_list.cc
@@ -183,7 +183,8 @@ static bool MergeAndDrawIfPossible(const CompositingDisplayItem& save_item,
if (!op->IsDrawOp())
return false;
- op->RasterWithAlpha(canvas, save_item.alpha);
+ SkRect bounds = save_item.has_bounds ? save_item.bounds : PaintOp::kUnsetRect;
+ op->RasterWithAlpha(canvas, bounds, save_item.alpha);
return true;
}
« no previous file with comments | « no previous file | cc/paint/paint_op_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698