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

Unified Diff: views/widget/widget_win.cc

Issue 2862025: Canvas refactoring part 2.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 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 | « views/widget/widget_win.h ('k') | views/window/window_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget_win.cc
===================================================================
--- views/widget/widget_win.cc (revision 50452)
+++ views/widget/widget_win.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/string_util.h"
#include "base/win_util.h"
#include "gfx/canvas.h"
+#include "gfx/canvas_skia.h"
#include "gfx/native_theme_win.h"
#include "gfx/path.h"
#include "views/accessibility/view_accessibility.h"
@@ -1121,9 +1122,9 @@
}
void WidgetWin::SizeContents(const gfx::Size& window_size) {
- contents_.reset(new gfx::Canvas(window_size.width(),
- window_size.height(),
- false));
+ contents_.reset(new gfx::CanvasSkia(window_size.width(),
+ window_size.height(),
+ false));
}
void WidgetWin::PaintLayeredWindow() {
@@ -1134,7 +1135,7 @@
gfx::Rect dirty_rect = root_view_->GetScheduledPaintRect();
contents_->ClipRectInt(dirty_rect.x(), dirty_rect.y(), dirty_rect.width(),
dirty_rect.height());
- root_view_->ProcessPaint(contents_.get());
+ root_view_->ProcessPaint(contents_.get()->AsCanvas());
contents_->restore();
UpdateWindowFromContents(contents_->getTopPlatformDevice().getBitmapDC());
« no previous file with comments | « views/widget/widget_win.h ('k') | views/window/window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698