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

Unified Diff: content/browser/renderer_host/backing_store_mac.mm

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Syncing merge conflicts. Created 9 years, 7 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
Index: content/browser/renderer_host/backing_store_mac.mm
===================================================================
--- content/browser/renderer_host/backing_store_mac.mm (revision 86706)
+++ content/browser/renderer_host/backing_store_mac.mm (working copy)
@@ -123,14 +123,14 @@
if (!output->initialize(rect.width(), rect.height(), true))
return false;
- CGContextRef temp_context = output->beginPlatformPaint();
+ skia::ScopedPlatformPaint scoped_platform_paint(output);
+ CGContextRef temp_context = scoped_platform_paint.GetPlatformSurface();
CGContextSaveGState(temp_context);
CGContextTranslateCTM(temp_context, 0.0, size().height());
CGContextScaleCTM(temp_context, 1.0, -1.0);
CGContextDrawLayerAtPoint(temp_context, CGPointMake(rect.x(), rect.y()),
cg_layer());
CGContextRestoreGState(temp_context);
- output->endPlatformPaint();
return true;
}
« no previous file with comments | « chrome/renderer/safe_browsing/phishing_thumbnailer.cc ('k') | content/browser/renderer_host/backing_store_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698