| 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());
|
|
|