diff options
author | reed <reed@google.com> | 2015-08-07 16:34:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-07 23:35:52 +0000 |
commit | 9595b1115dff82e3b63bb7977d70afdbf55de7f2 (patch) | |
tree | c4f850cefe2939ce16efcd181f6dea02c6954226 /components/favicon_base | |
parent | b73a94c3c7b65a9b7e1ae597bff0ce386d6a1e43 (diff) | |
download | chromium_src-9595b1115dff82e3b63bb7977d70afdbf55de7f2.zip chromium_src-9595b1115dff82e3b63bb7977d70afdbf55de7f2.tar.gz chromium_src-9595b1115dff82e3b63bb7977d70afdbf55de7f2.tar.bz2 |
don't use deprecated SkRect* src-rect parameter type
mechanical change. either:
- turn 2 parameter version (bitmap, rect) into 3 (bitmap, rect, NULL)
or
- change &srcRect into srcRect
BUG=
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
TBR=
NOTRY=True
-- win_chromium_rel_ng failure is not related to this CL
Review URL: https://codereview.chromium.org/1278013002
Cr-Commit-Position: refs/heads/master@{#342479}
Diffstat (limited to 'components/favicon_base')
-rw-r--r-- | components/favicon_base/favicon_util.cc | 2 | ||||
-rw-r--r-- | components/favicon_base/select_favicon_frames.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/favicon_base/favicon_util.cc b/components/favicon_base/favicon_util.cc index 3f1196e..c176740 100644 --- a/components/favicon_base/favicon_util.cc +++ b/components/favicon_base/favicon_util.cc @@ -123,7 +123,7 @@ SkBitmap ResizeBitmapByDownsamplingIfPossible( SkCanvas canvas(bitmap); canvas.drawBitmapRect( - best_bitmap, SkRect::MakeIWH(desired_size, desired_size)); + best_bitmap, SkRect::MakeIWH(desired_size, desired_size), NULL); return bitmap; } return skia::ImageOperations::Resize(best_bitmap, diff --git a/components/favicon_base/select_favicon_frames.cc b/components/favicon_base/select_favicon_frames.cc index f53e839..52eb6f6 100644 --- a/components/favicon_base/select_favicon_frames.cc +++ b/components/favicon_base/select_favicon_frames.cc @@ -42,7 +42,7 @@ SkBitmap SampleNearestNeighbor(const SkBitmap& contents, int desired_size) { { SkCanvas canvas(bitmap); canvas.drawBitmapRect( - contents, SkRect::MakeIWH(desired_size, desired_size)); + contents, SkRect::MakeIWH(desired_size, desired_size), NULL); } return bitmap; |