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

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: Syncing merge conflicts. 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
« no previous file with comments | « webkit/tools/test_shell/webwidget_host_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/webwidget_host_win.cc
===================================================================
--- webkit/tools/test_shell/webwidget_host_win.cc (revision 86706)
+++ 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();
+ skia::ScopedPlatformPaint scoped_platform_paint(canvas_.get());
+ HDC hdc = scoped_platform_paint.GetPlatformSurface();
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();
}
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_.get(), ps.hdc, ps.rcPaint.left,
+ ps.rcPaint.top, &ps.rcPaint);
EndPaint(view_, &ps);
// Draw children
« no previous file with comments | « 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