summaryrefslogtreecommitdiffstats
path: root/chrome/browser/aeropeek_manager.cc
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-26 17:05:48 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-26 17:05:48 +0000
commitee8d6fd30b022ac2c87b7a190c954e7bb3c9b21e (patch)
tree959eb9ecadf9963d3b94719002b3b17fe96d4b92 /chrome/browser/aeropeek_manager.cc
parenta79f126570ba6a23d60f5583c34d562ae75a6038 (diff)
downloadchromium_src-ee8d6fd30b022ac2c87b7a190c954e7bb3c9b21e.zip
chromium_src-ee8d6fd30b022ac2c87b7a190c954e7bb3c9b21e.tar.gz
chromium_src-ee8d6fd30b022ac2c87b7a190c954e7bb3c9b21e.tar.bz2
Clean up calls like "gfx::Rect(0, 0, size().width(), size().height()".
The caller can use the much shorter "gfx::Rect(size())", since gfx::Rect has a constructor that just takes a Size. BUG=none TEST=none Review URL: http://codereview.chromium.org/2204001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48283 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/aeropeek_manager.cc')
-rw-r--r--chrome/browser/aeropeek_manager.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/aeropeek_manager.cc b/chrome/browser/aeropeek_manager.cc
index b93f5ad..e0296c8 100644
--- a/chrome/browser/aeropeek_manager.cc
+++ b/chrome/browser/aeropeek_manager.cc
@@ -1216,8 +1216,7 @@ bool AeroPeekManager::GetTabPreview(int tab_id, SkBitmap* preview) {
// Create a copy of this BackingStore image.
// This code is just copied from "thumbnail_generator.cc".
skia::PlatformCanvas canvas;
- if (!backing_store->CopyFromBackingStore(gfx::Rect(gfx::Point(0, 0),
- backing_store->size()),
+ if (!backing_store->CopyFromBackingStore(gfx::Rect(backing_store->size()),
&canvas))
return false;