Chromium Code Reviews| Index: cc/paint/display_item_list.h |
| diff --git a/cc/paint/display_item_list.h b/cc/paint/display_item_list.h |
| index b48a19d803b0e75e7a26d3f885fac025171590f7..e029ff5c0362bb2b674512bd319c02865591b67b 100644 |
| --- a/cc/paint/display_item_list.h |
| +++ b/cc/paint/display_item_list.h |
| @@ -125,6 +125,9 @@ class CC_PAINT_EXPORT DisplayItemList |
| return paint_op_buffer_.HasDiscardableImages(); |
| } |
| + bool pixel_canvas_enabled() const { return pixel_canvas_enabled_; } |
| + void set_pixel_canvas_enabled(bool value) { pixel_canvas_enabled_ = value; } |
| + |
| private: |
| FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, AsValueWithNoOps); |
| FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, AsValueWithOps); |
| @@ -169,6 +172,12 @@ class CC_PAINT_EXPORT DisplayItemList |
| // Finalize(). |
| bool retain_visual_rects_ = false; |
| + // Set true if we are using pixel canvas. This mode allows us to records all |
| + // canvas draw commands in pixel aligned measurements and scale elements using |
| + // the corner points. Use compositor switch --enable-pixel-canvas-recording to |
|
oshima
2017/06/15 22:59:12
remove the reference to command line
malaykeshav
2017/06/16 20:41:57
Done
|
| + // enable this mode. |
| + bool pixel_canvas_enabled_ = false; |
| + |
| friend class base::RefCountedThreadSafe<DisplayItemList>; |
| FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, BytesUsed); |
| DISALLOW_COPY_AND_ASSIGN(DisplayItemList); |