diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-03 21:00:02 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-03 21:00:02 +0000 |
commit | 61076179916109d927541bd93cf888a7f858f645 (patch) | |
tree | a69b6fbff25bf30950be14a877900d0bc78ec679 /skia/ext/image_operations.cc | |
parent | ee0c66a87aeb76b5abc53278fabeb1403c860f46 (diff) | |
download | chromium_src-61076179916109d927541bd93cf888a7f858f645.zip chromium_src-61076179916109d927541bd93cf888a7f858f645.tar.gz chromium_src-61076179916109d927541bd93cf888a7f858f645.tar.bz2 |
Fix Coverity defects in skia/ext:
- Three uninit ctors, two dead codes, and a misuse of var args.
CID=100083, 101537, 17746, 9369, 9279, 9278
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8965060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/image_operations.cc')
-rw-r--r-- | skia/ext/image_operations.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/skia/ext/image_operations.cc b/skia/ext/image_operations.cc index 7808370..b193ef9 100644 --- a/skia/ext/image_operations.cc +++ b/skia/ext/image_operations.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -99,10 +99,6 @@ class ResizeFilter { int dest_width, int dest_height, const SkIRect& dest_subset); - // Returns the bounds in the input bitmap of data that is used in the output. - // The filter offsets are within this rectangle. - const SkIRect& src_depend() { return src_depend_; } - // Returns the filled filter values. const ConvolutionFilter1D& x_filter() { return x_filter_; } const ConvolutionFilter1D& y_filter() { return y_filter_; } @@ -167,9 +163,6 @@ class ResizeFilter { ImageOperations::ResizeMethod method_; - // Subset of source the filters will touch. - SkIRect src_depend_; - // Size of the filter support on one side only in the destination space. // See GetFilterSupport. float x_filter_support_; @@ -438,9 +431,6 @@ SkBitmap ImageOperations::ResizeSubpixel(const SkBitmap& source, b = SkGetPackedB32(src[2 * row_words]); a = SkGetPackedA32(src[1 * row_words]); break; - default: - NOTREACHED(); - break; } break; case SkFontHost::kBGR_LCDOrder: |