summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-07 22:51:50 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-07 22:51:50 +0000
commit16bf88e8016bf001d1e2787e08f5642f67c64d89 (patch)
tree5c7b2cf61393d947837fc3e81f987a8e5b987a53 /chrome/browser/ui
parent68f92592f08b67bf6e3517970218dc57cfe9ea74 (diff)
downloadchromium_src-16bf88e8016bf001d1e2787e08f5642f67c64d89.zip
chromium_src-16bf88e8016bf001d1e2787e08f5642f67c64d89.tar.gz
chromium_src-16bf88e8016bf001d1e2787e08f5642f67c64d89.tar.bz2
Revert 125473 - skia: Change MakeOpaque() function to take a gfx::Rect parameter.
BUG=100898 R=pkasting@chromium.org TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9581040 TBR=tfarina@chromium.org Review URL: https://chromiumcodereview.appspot.com/9621019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125478 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r--chrome/browser/ui/views/tabs/native_view_photobooth_win.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/ui/views/tabs/native_view_photobooth_win.cc b/chrome/browser/ui/views/tabs/native_view_photobooth_win.cc
index 2b8fdd5..71e3c41 100644
--- a/chrome/browser/ui/views/tabs/native_view_photobooth_win.cc
+++ b/chrome/browser/ui/views/tabs/native_view_photobooth_win.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -109,7 +109,9 @@ void NativeViewPhotoboothWin::PaintScreenshotIntoCanvas(
SRCCOPY);
// Windows screws up the alpha channel on all text it draws, and so we need
// to call makeOpaque _after_ the blit to correct for this.
- skia::MakeOpaque(canvas->GetSkCanvas(), target_bounds);
+ skia::MakeOpaque(canvas->GetSkCanvas(), target_bounds.x(),
+ target_bounds.y(), target_bounds.width(),
+ target_bounds.height());
ReleaseDC(current_hwnd_, source_dc);
canvas->EndPlatformPaint();
}