summaryrefslogtreecommitdiffstats
path: root/cc/layers/io_surface_layer_impl.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-26 19:13:44 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-26 19:13:44 +0000
commit3cf44c4f49de9b097ef29fedb16acf53879891a8 (patch)
treea4530a77b8133fca9610b31f45a36f5808e43c01 /cc/layers/io_surface_layer_impl.cc
parenta1735f77ca6fcdc31ac13a32b7a5da06840bd83f (diff)
downloadchromium_src-3cf44c4f49de9b097ef29fedb16acf53879891a8.zip
chromium_src-3cf44c4f49de9b097ef29fedb16acf53879891a8.tar.gz
chromium_src-3cf44c4f49de9b097ef29fedb16acf53879891a8.tar.bz2
cc: Initialize integer field in IOSurfaceLayerImpl.
Otherwise when we initalize the renderer, we may try to delete a resource that does not exist, or worse delete on that does. R=piman@chromium.org, piman BUG= Review URL: https://codereview.chromium.org/24686002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/io_surface_layer_impl.cc')
-rw-r--r--cc/layers/io_surface_layer_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/layers/io_surface_layer_impl.cc b/cc/layers/io_surface_layer_impl.cc
index e8c627b..04ff40a 100644
--- a/cc/layers/io_surface_layer_impl.cc
+++ b/cc/layers/io_surface_layer_impl.cc
@@ -21,7 +21,8 @@ IOSurfaceLayerImpl::IOSurfaceLayerImpl(LayerTreeImpl* tree_impl, int id)
: LayerImpl(tree_impl, id),
io_surface_id_(0),
io_surface_changed_(false),
- io_surface_texture_id_(0) {}
+ io_surface_texture_id_(0),
+ io_surface_resource_id_(0) {}
IOSurfaceLayerImpl::~IOSurfaceLayerImpl() {
if (!io_surface_texture_id_)