| 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];
|
| }
|
|
|