|
Include mask texture size in RenderPassDrawQuad
In order to support GL_TEXTURE_RECTANGLE_ARB, cc::GLRenderer needs to
know the size of the mask texture to unnormalize the texture
coordinates. This has already been done for TileDrawQuad.
As an optimization, rather than adding two more members onto the already
bloated RenderPassDrawQuad, turn mask_uv_rect into mask_uv_scale. The
position of the mask is now assumed to always be at the origin of the
quad's transform, which it always is in cc. This is equivalent to
saying that the mask is always attached to the owning layer of a render
surface (since that's what defines the transform origin of the render
surface).
By making this assumption, the old mask_uv_rect can be calculated in
a helper function from just quad->rect and quad->mask_uv_scale.
With this patch, mask_texture_size is currently unused, but its values
are unit tested.
Depends on https://codereview.chromium.org/652393002/
R=danakj@chromium.org,jamesr@chromium.org
BUG= 423533
Committed: https://crrev.com/f6f3fbba490a7529ddd9e82b979a966360e806ea
Cr-Commit-Position: refs/heads/master@{#299932}
Total comments: 26
Total comments: 8
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+278 lines, -144 lines) |
Patch |
 |
M |
cc/layers/delegated_renderer_layer_impl_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer_impl.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/layer_impl.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/layers/picture_layer_impl.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/picture_layer_impl.cc
|
View
|
1
2
|
2 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/layers/picture_layer_impl_unittest.cc
|
View
|
1
2
|
2 chunks |
+40 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/layers/render_surface_impl.cc
|
View
|
1
2
|
3 chunks |
+9 lines, -16 lines |
0 comments
|
Download
|
 |
M |
cc/layers/tiled_layer_impl.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/tiled_layer_impl.cc
|
View
|
1
2
|
1 chunk |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/layers/tiled_layer_impl_unittest.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer.cc
|
View
|
1
|
2 chunks |
+11 lines, -16 lines |
0 comments
|
Download
|
 |
M |
cc/output/renderer_pixeltest.cc
|
View
|
1
|
7 chunks |
+29 lines, -23 lines |
0 comments
|
Download
|
 |
M |
cc/output/software_renderer.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/quads/draw_quad_unittest.cc
|
View
|
|
9 chunks |
+25 lines, -14 lines |
0 comments
|
Download
|
 |
M |
cc/quads/render_pass_draw_quad.h
|
View
|
1
|
3 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/quads/render_pass_draw_quad.cc
|
View
|
1
2
|
6 chunks |
+22 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/quads/render_pass_unittest.cc
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator_test_helpers.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/render_pass_test_common.cc
|
View
|
1
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/test/render_pass_test_utils.cc
|
View
|
1
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl_unittest.cc
|
View
|
1
2
|
15 chunks |
+47 lines, -19 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_delegated.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/cc_messages.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/cc_messages_unittest.cc
|
View
|
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/converters/surfaces/surfaces_type_converters.cc
|
View
|
1
|
3 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/services/public/interfaces/surfaces/quads.mojom
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 18 (3 generated)
|