diff options
author | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 00:57:51 +0000 |
---|---|---|
committer | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 00:57:51 +0000 |
commit | f9b57529346b1863e52b663702083a616922e0a1 (patch) | |
tree | b63cb90f6cfb6339daaeb8b4046f27186dc7ccce /o3d | |
parent | ad02174ccfde818097757bef93c9ae6ea62c68bd (diff) | |
download | chromium_src-f9b57529346b1863e52b663702083a616922e0a1.zip chromium_src-f9b57529346b1863e52b663702083a616922e0a1.tar.gz chromium_src-f9b57529346b1863e52b663702083a616922e0a1.tar.bz2 |
Fixed uninitialized variables breaking Linux build after checkin of
http://codereview.chromium.org/652016 .
BUG=none
TEST=built and tested on Linux
TBR=gman
Review URL: http://codereview.chromium.org/661143
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40084 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d')
-rw-r--r-- | o3d/core/cross/gpu2d/path_processor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/o3d/core/cross/gpu2d/path_processor.cc b/o3d/core/cross/gpu2d/path_processor.cc index ccc31df..39f9065 100644 --- a/o3d/core/cross/gpu2d/path_processor.cc +++ b/o3d/core/cross/gpu2d/path_processor.cc @@ -312,7 +312,7 @@ class Segment { SkPoint get_interior_vertex(int index) const { DCHECK(index >= 0 && index < num_interior_vertices()); if (kind_ == kCubic) { - SkPoint res; + SkPoint res = { 0 }; if (triangulator_) { LocalTriangulator::Vertex* vertex = triangulator_->get_interior_vertex(index); @@ -635,8 +635,8 @@ void PathProcessor::BuildContours(const SkPath& path) { SkPoint pts[4]; SkPath::Verb verb; Contour* contour = NULL; - SkPoint cur_pt; - SkPoint move_to_pt; + SkPoint cur_pt = { 0 }; + SkPoint move_to_pt = { 0 }; do { verb = iter.next(pts); if (verb != SkPath::kMove_Verb) { |