cc: Avoid use of uninit values in the GLRenderer::draw_cache_.
commit19ec4d0cd192630a821c6f4c03053223e6197710
authordanakj <danakj@chromium.org>
Thu, 6 Nov 2014 16:35:57 +0000 (6 08:35 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 6 Nov 2014 16:36:20 +0000 (6 16:36 +0000)
tree1dcf75bff3939aa895163fdaeb18c4393f9c9835
parent4627b84b85bf0158988085189bf27dcfd11f0054
cc: Avoid use of uninit values in the GLRenderer::draw_cache_.

If the context is lost/unable to be made current, then the
binding.program_id will be 0. This will mean we compare against the
other members of the draw_cache_ to see if we should flush it, but
we only initialize the program_id in the cache.

R=enne, piman@chromium.org
BUG=411160

Review URL: https://codereview.chromium.org/706623002

Cr-Commit-Position: refs/heads/master@{#303036}
cc/output/gl_renderer.cc
cc/output/gl_renderer_draw_cache.cc