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

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: Remove unnecessary headers. 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 85672)
+++ 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::platform_util::GetBitmapContext(&canvas_->getTopDevice());
[NSGraphicsContext setCurrentContext:
[NSGraphicsContext graphicsContextWithGraphicsPort:bitmap_context
flipped:YES]];
@@ -221,7 +221,7 @@
int bitmap_width = CGBitmapContextGetWidth(bitmap_context);
CGRect bitmap_rect = { { 0, 0 },
{ bitmap_width, bitmap_height } };
- canvas_->getTopPlatformDevice().DrawToContext(
+ skia::platform_util::DrawToContext(&canvas_->getTopDevice(),
context, 0, client_rect.height() - bitmap_height, &bitmap_rect);
[view_ unlockFocus];

Powered by Google App Engine
This is Rietveld 408576698