OSDN Git Service

Move the declaration of DrawCall after Renderer.
authorPeter Collingbourne <pcc@google.com>
Wed, 30 May 2018 19:53:07 +0000 (12:53 -0700)
committerPeter Collingbourne <pcc@google.com>
Wed, 30 May 2018 20:11:53 +0000 (20:11 +0000)
commit9dfb70f0f2ada3aa690df3f6b5d8e21f296fd6f0
tree246f59f631c9463e0b26ef38eeb0cdc55a39aec6
parent45fcfe8b73aa31efa444ae9ff2e215722f413e7c
Move the declaration of DrawCall after Renderer.

This allows compilers targeting the MS ABI to select the
correct inheritance model for the member function pointer field
DrawCall::setupPrimitives using the complete type of Renderer. It
will allow us to enable the new Clang flag -fcomplete-member-pointers
globally.

Bug: chromium:847724
Change-Id: Ied5859ec2f5d38b3ccf51608527506caec53f470
Reviewed-on: https://swiftshader-review.googlesource.com/19068
Tested-by: Peter Collingbourne <pcc@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Renderer/Renderer.hpp