Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1900)

Unified Diff: chrome/browser/ui/cocoa/tabpose_window.mm

Issue 10869031: mac: Use ScopedCGContextSaveGState in a few more places (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/backing_store_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tabpose_window.mm
diff --git a/chrome/browser/ui/cocoa/tabpose_window.mm b/chrome/browser/ui/cocoa/tabpose_window.mm
index 796c7127d2feab4a3a6d134bbfacdbfed6830714..056519ab0c0fcd8f676c432daf3b86c62a397b17 100644
--- a/chrome/browser/ui/cocoa/tabpose_window.mm
+++ b/chrome/browser/ui/cocoa/tabpose_window.mm
@@ -330,7 +330,7 @@ void ThumbnailLoader::LoadThumbnail() {
rwh->CopyFromBackingStoreToCGContext(destRect, context);
} else if (thumbnail_) {
// No cache hit, but the renderer returned a thumbnail to us.
- gfx::ScopedCGContextSaveGState CGContextSaveGState(context);
+ gfx::ScopedCGContextSaveGState save_gstate(context);
CGContextSetInterpolationQuality(context, kCGInterpolationHigh);
CGContextDrawImage(context, destRect, thumbnail_.get());
}
« no previous file with comments | « no previous file | content/browser/renderer_host/backing_store_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698