summaryrefslogtreecommitdiffstats
path: root/mojo
diff options
context:
space:
mode:
authorjam <jam@chromium.org>2015-08-10 10:39:37 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-10 17:40:22 +0000
commit12e1d68614142b8dbc9385db0258e1e239e524cf (patch)
tree999f74708417b7b5fb3eb5ac638cedc19ed5d390 /mojo
parent95703b99631af63f8923a4665b142fc5f23b8774 (diff)
downloadchromium_src-12e1d68614142b8dbc9385db0258e1e239e524cf.zip
chromium_src-12e1d68614142b8dbc9385db0258e1e239e524cf.tar.gz
chromium_src-12e1d68614142b8dbc9385db0258e1e239e524cf.tar.bz2
Fix crash in ContextProviderMojo due to uninitialized member variable.
Review URL: https://codereview.chromium.org/1273783005 Cr-Commit-Position: refs/heads/master@{#342644}
Diffstat (limited to 'mojo')
-rw-r--r--mojo/cc/context_provider_mojo.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/mojo/cc/context_provider_mojo.cc b/mojo/cc/context_provider_mojo.cc
index 0d27f71..5b0a640 100644
--- a/mojo/cc/context_provider_mojo.cc
+++ b/mojo/cc/context_provider_mojo.cc
@@ -12,7 +12,8 @@ namespace mojo {
ContextProviderMojo::ContextProviderMojo(
ScopedMessagePipeHandle command_buffer_handle)
- : command_buffer_handle_(command_buffer_handle.Pass()) {
+ : command_buffer_handle_(command_buffer_handle.Pass()),
+ context_(nullptr) {
// Enabled the CHROMIUM_image extension to use GpuMemoryBuffers. The
// implementation of which is used in CommandBufferDriver.
capabilities_.gpu.image = true;