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

Unified Diff: webkit/tools/test_shell/mac/webwidget_host.mm

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix Linux/Mac compiles. 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: webkit/tools/test_shell/mac/webwidget_host.mm
===================================================================
--- webkit/tools/test_shell/mac/webwidget_host.mm (revision 85945)
+++ webkit/tools/test_shell/mac/webwidget_host.mm (working copy)
@@ -179,7 +179,7 @@
// make sure webkit draws into our bitmap, not the window
CGContextRef bitmap_context =
- canvas_->getTopPlatformDevice().GetBitmapContext();
+ skia::GetBitmapContext(&canvas_->getTopDevice());
[NSGraphicsContext setCurrentContext:
[NSGraphicsContext graphicsContextWithGraphicsPort:bitmap_context
flipped:YES]];
@@ -221,8 +221,8 @@
int bitmap_width = CGBitmapContextGetWidth(bitmap_context);
CGRect bitmap_rect = { { 0, 0 },
{ bitmap_width, bitmap_height } };
- canvas_->getTopPlatformDevice().DrawToContext(
- context, 0, client_rect.height() - bitmap_height, &bitmap_rect);
+ skia::DrawToNativeContext(canvas_.get(), context, 0,
+ client_rect.height() - bitmap_height, &bitmap_rect);
[view_ unlockFocus];
}

Powered by Google App Engine
This is Rietveld 408576698