diff options
author | achaulk <achaulk@chromium.org> | 2015-06-10 10:01:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-10 17:02:07 +0000 |
commit | f89f594219da597c20b749fee195977052c6f709 (patch) | |
tree | f66bfd03b24b36698dd800323e86a160bd20e051 /cc/surfaces/surface_aggregator_unittest.cc | |
parent | 20a7d9f7cf570609d5314fbc6ab3b1514b9e3308 (diff) | |
download | chromium_src-f89f594219da597c20b749fee195977052c6f709.zip chromium_src-f89f594219da597c20b749fee195977052c6f709.tar.gz chromium_src-f89f594219da597c20b749fee195977052c6f709.tar.bz2 |
cc: Rework overlays to not use the ResourceProvider and pass texture size
Instead of querying the ResourceProvider, the size & overlay flag are
stored in the quads directly. This eliminates the lookups that were
otherwise required
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
TBR=jam (approved interface change)
Review URL: https://codereview.chromium.org/1142343008
Cr-Commit-Position: refs/heads/master@{#333748}
Diffstat (limited to 'cc/surfaces/surface_aggregator_unittest.cc')
-rw-r--r-- | cc/surfaces/surface_aggregator_unittest.cc | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/cc/surfaces/surface_aggregator_unittest.cc b/cc/surfaces/surface_aggregator_unittest.cc index ac81b3b..981a573 100644 --- a/cc/surfaces/surface_aggregator_unittest.cc +++ b/cc/surfaces/surface_aggregator_unittest.cc @@ -1352,19 +1352,10 @@ void SubmitFrameWithResources(ResourceId* resource_ids, const float vertex_opacity[4] = {0.f, 0.f, 1.f, 1.f}; bool flipped = false; bool nearest_neighbor = false; - quad->SetAll(sqs, - rect, - opaque_rect, - visible_rect, - needs_blending, - resource_ids[i], - premultiplied_alpha, - uv_top_left, - uv_bottom_right, - background_color, - vertex_opacity, - flipped, - nearest_neighbor); + quad->SetAll(sqs, rect, opaque_rect, visible_rect, needs_blending, + resource_ids[i], gfx::Size(), false, premultiplied_alpha, + uv_top_left, uv_bottom_right, background_color, vertex_opacity, + flipped, nearest_neighbor); } frame_data->render_pass_list.push_back(pass.Pass()); scoped_ptr<CompositorFrame> frame(new CompositorFrame); |