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

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

Issue 6987019: Revert 86625 - This change implements a first pass in the effort to remove the dependency of Plat... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 86628)
+++ 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()) {
- skia::ScopedPlatformPaint scoped_platform_paint(canvas_.get());
- HDC hdc = scoped_platform_paint.GetPlatformSurface();
+ HDC hdc = canvas_->beginPlatformPaint();
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,8 +279,10 @@
// Paint to the screen
PAINTSTRUCT ps;
BeginPaint(view_, &ps);
- skia::DrawToNativeContext(canvas_.get(), ps.hdc, ps.rcPaint.left,
- ps.rcPaint.top, &ps.rcPaint);
+ canvas_->getTopPlatformDevice().drawToHDC(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