Skip to content

Commit

Permalink
Make SkIRect in ImageSkia::extractSubset const because it is const in…
Browse files Browse the repository at this point in the history
… SkBitmap::extractSubset

Bug=None
Test=Compiles

Review URL: https://chromiumcodereview.appspot.com/10513014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140492 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
pkotwicz@chromium.org committed Jun 5, 2012
1 parent c9585ae commit 2088082
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/gfx/image/image_skia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int ImageSkia::height() const {
return isNull() ? 0 : storage_->size().height();
}

bool ImageSkia::extractSubset(ImageSkia* dst, SkIRect& subset) const {
bool ImageSkia::extractSubset(ImageSkia* dst, const SkIRect& subset) const {
if (isNull())
return false;
SkBitmap dst_bitmap;
Expand Down
2 changes: 1 addition & 1 deletion ui/gfx/image/image_skia.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class UI_EXPORT ImageSkia {
// Operates on bitmap at index 0 if available.
// TODO(pkotwicz): This is temporary till conversion to gfx::ImageSkia is
// done.
bool extractSubset(ImageSkia* dst, SkIRect& subset) const;
bool extractSubset(ImageSkia* dst, const SkIRect& subset) const;

// Returns pointer to an SkBitmap contained by this object.
// TODO(pkotwicz): This is temporary till conversion to gfx::ImageSkia is
Expand Down

0 comments on commit 2088082

Please sign in to comment.