cc: Stop taking in SharedQuadState* when copying DrawQuad
When copying DrawQuad to a RenderPass, the SharedQuadState should already be on that RenderPass. Do not take SharedQuadState* as input parameter for copying DrawQuad, use the last SharedQuadState on the RenderPass instead. This not only avoids invalid SharedQuadState* being passed in, but also reinforce that SharedQuadState and DrawQuad are appended in order so it satisifies assumption for future implementation of iterator after SharedQuadState id. R=danakj@chromium.org Bug: 739429 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel Change-Id: I63fc2ca7a250fb8f6f9056473e0c6ab046652018 Reviewed-on: https://chromium-review.googlesource.com/597228Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
danakj <danakj@chromium.org> Commit-Queue: weiliangc <weiliangc@chromium.org> Cr-Commit-Position: refs/heads/master@{#491509}
Showing
Please register or sign in to comment