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

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

Issue 11031055: Introduce PlatformBitmap, which is a minimal helper class that wraps an SkBitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 161107)
+++ content/browser/renderer_host/backing_store_mac.mm (working copy)
@@ -167,13 +167,12 @@
}
bool BackingStoreMac::CopyFromBackingStore(const gfx::Rect& rect,
- skia::PlatformCanvas* output) {
+ skia::PlatformBitmap* output) {
// TODO(thakis): Make sure this works with HiDPI backing stores.
- if (!output->initialize(rect.width(), rect.height(), true))
+ if (!output->Allocate(rect.width(), rect.height(), true))
return false;
- skia::ScopedPlatformPaint scoped_platform_paint(output);
- CGContextRef temp_context = scoped_platform_paint.GetPlatformSurface();
+ CGContextRef temp_context = output->GetSurface();
gfx::ScopedCGContextSaveGState save_gstate(temp_context);
CGContextTranslateCTM(temp_context, 0.0, size().height());
CGContextScaleCTM(temp_context, 1.0, -1.0);
« no previous file with comments | « content/browser/renderer_host/backing_store_mac.h ('k') | content/browser/renderer_host/backing_store_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698