|
Support general raster matrix for RasterSource and DisplayItemList
This CL is a prerequisite for making picture layer tiling to support tiling
in general space. Today we only raster in contents space, which is always
a linear scale of the layer space. To improve raster quality, it is best to
raster in target (render surface) space when possible. A follow-up CL will
be written to utilize this capability to raster layers that have fractional
translation transform.
The following API has been changed:
1. RasterSource::PlaybackToCanvas() no longer takes canvas_bitmap_rect (tile
extent), canvas_playback_rect (damage rect), and contents_scale. Instead,
the tile size will be extracted from the canvas size directly, and tile
offset should be applied to canvas matrix by the caller. Likewise, the
damage rect and contents scale should be applied to canvas clip and canvas
matrix by the caller respectively.
2. DisplayItemList::Raster() no longer takes canvas_target_playback_rect (cull
rect), and contents_scale. Again, those should be applied to canvas clip
and canvas matrix by the caller directly.
3. DisplayItem::Raster() no longer takes canvas_target_playback_rect (cull
rect). Use SkCanvas::quickReject() instead.
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/772e085e184f7036e8714d45db38a97906cd7073
Cr-Commit-Position: refs/heads/master@{#401817}
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+145 lines, -186 lines) |
Patch |
 |
M |
cc/layers/picture_layer_impl_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/playback/clip_display_item.h
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/clip_display_item.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/clip_path_display_item.h
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/clip_path_display_item.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/compositing_display_item.h
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/compositing_display_item.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/display_item.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/playback/display_item_list.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/playback/display_item_list.cc
|
View
|
1
2
|
3 chunks |
+21 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/playback/drawing_display_item.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/playback/drawing_display_item.cc
|
View
|
1
|
1 chunk |
+2 lines, -10 lines |
0 comments
|
Download
|
 |
M |
cc/playback/filter_display_item.h
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/filter_display_item.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/float_clip_display_item.h
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/float_clip_display_item.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/raster_source.h
|
View
|
1
2
|
2 chunks |
+14 lines, -19 lines |
0 comments
|
Download
|
 |
M |
cc/playback/raster_source.cc
|
View
|
1
2
3
|
3 chunks |
+102 lines, -113 lines |
3 comments
|
Download
|
 |
M |
cc/playback/transform_display_item.h
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/playback/transform_display_item.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_raster_source.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_raster_source.cc
|
View
|
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_pixeltest_masks.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 29 (13 generated)
|