layers:Separate state update from addCmd()
authorTobin Ehlis <tobine@google.com>
Mon, 19 Dec 2016 22:59:16 +0000 (15:59 -0700)
committerTobin Ehlis <tobine@google.com>
Fri, 23 Dec 2016 17:00:06 +0000 (10:00 -0700)
commit29f880e9c3c837307e7a19c0ef7275448d483e04
treed51d81f2d649085e0d5b4264c7a044e586ed6006
parent721fd90455fea285e09f133f97fb58535d13db83
layers:Separate state update from addCmd()

Update addCmd() function to only perform validation and rename it to
ValidateCmd(). Separate out the state update of last_cmd in cmd buffer
to new UpdateCmdBufferLastCmd() function.

Made sure that everywhere ValidateCmd() is called now also calls
UpdateCmdBufferLastCmd(). Currently just calling them back-to-back but
will continue with further updates that put the ValidateCmd() call into
the PreCallValidate*() function and the UpdateCmdBufferLastCmd() into
the PostCallRecord*() function.

Also included some comments on work that needs to be done while
breaking up CmdDraw() for pre/post functions.
layers/core_validation.cpp