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

Unified Diff: webkit/tools/test_shell/webwidget_host_win.cc

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Addressing comments. 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/webwidget_host_win.cc
===================================================================
--- webkit/tools/test_shell/webwidget_host_win.cc (revision 85672)
+++ webkit/tools/test_shell/webwidget_host_win.cc (working copy)
@@ -251,13 +251,13 @@
// Scroll the canvas if necessary
scroll_rect_ = client_rect.Intersect(scroll_rect_);
if (!scroll_rect_.IsEmpty()) {
- HDC hdc = canvas_->beginPlatformPaint();
+ HDC hdc = skia::BeginPlatformPaint(canvas_.get());
RECT damaged_rect, r = scroll_rect_.ToRECT();
ScrollDC(hdc, scroll_dx_, scroll_dy_, NULL, &r, NULL, &damaged_rect);
PaintRect(gfx::Rect(damaged_rect));
- canvas_->endPlatformPaint();
+ skia::EndPlatformPaint(canvas_.get());
}
ResetScrollRect();
@@ -279,10 +279,8 @@
// Paint to the screen
PAINTSTRUCT ps;
BeginPaint(view_, &ps);
- canvas_->getTopPlatformDevice().drawToHDC(ps.hdc,
- ps.rcPaint.left,
- ps.rcPaint.top,
- &ps.rcPaint);
+ skia::DrawToNativeContext(&canvas_, ps.hdc, ps.rcPaint.left,
+ ps.rcPaint.top, &ps.rcPaint);
EndPaint(view_, &ps);
// Draw children
« skia/ext/platform_device.cc ('K') | « webkit/tools/test_shell/webwidget_host_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698