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

Unified Diff: cc/paint/paint_op_buffer.h

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 | « cc/paint/display_item_list.cc ('k') | cc/paint/paint_op_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/paint_op_buffer.h
diff --git a/cc/paint/paint_op_buffer.h b/cc/paint/paint_op_buffer.h
index bcc0c809964948ff2a01d000ed3a48018f6e598b..1f06d640e26d641c4d188fd13a21a6e23476569b 100644
--- a/cc/paint/paint_op_buffer.h
+++ b/cc/paint/paint_op_buffer.h
@@ -86,7 +86,9 @@ struct CC_PAINT_EXPORT PaintOp {
bool IsDrawOp() const;
// Only valid for draw ops.
- void RasterWithAlpha(SkCanvas* canvas, uint8_t alpha) const;
+ void RasterWithAlpha(SkCanvas* canvas,
+ const SkRect& bounds,
+ uint8_t alpha) const;
int CountSlowPaths() const { return 0; }
int CountSlowPathsFromFlags() const { return 0; }
« no previous file with comments | « cc/paint/display_item_list.cc ('k') | cc/paint/paint_op_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698