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

Unified Diff: views/widget/widget_win.cc

Issue 6879013: skia::PlatformCanvas is being deprecated. Going forward we will use gfx::Canvas wherever we need ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/root_view.cc ('k') | webkit/plugins/sad_plugin.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 82144)
+++ views/widget/widget_win.cc (working copy)
@@ -1077,25 +1077,25 @@
return;
// We need to clip to the dirty rect ourselves.
- layered_window_contents_->save(SkCanvas::kClip_SaveFlag);
+ layered_window_contents_->skia_canvas()->save(SkCanvas::kClip_SaveFlag);
layered_window_contents_->ClipRectInt(layered_window_invalid_rect_.x(),
layered_window_invalid_rect_.y(),
layered_window_invalid_rect_.width(),
layered_window_invalid_rect_.height());
GetRootView()->Paint(layered_window_contents_.get());
- layered_window_contents_->restore();
+ layered_window_contents_->skia_canvas()->restore();
RECT wr;
GetWindowRect(&wr);
SIZE size = {wr.right - wr.left, wr.bottom - wr.top};
POINT position = {wr.left, wr.top};
- HDC dib_dc = layered_window_contents_->beginPlatformPaint();
+ HDC dib_dc = layered_window_contents_->BeginPlatformPaint();
POINT zero = {0, 0};
BLENDFUNCTION blend = {AC_SRC_OVER, 0, layered_alpha_, AC_SRC_ALPHA};
UpdateLayeredWindow(hwnd(), NULL, &position, &size, dib_dc, &zero,
RGB(0xFF, 0xFF, 0xFF), &blend, ULW_ALPHA);
layered_window_invalid_rect_.SetRect(0, 0, 0, 0);
- layered_window_contents_->endPlatformPaint();
+ layered_window_contents_->EndPlatformPaint();
}
void WidgetWin::ClientAreaSizeChanged() {
@@ -1105,8 +1105,8 @@
std::max(0, static_cast<int>(r.bottom - r.top)));
delegate_->OnSizeChanged(s);
if (use_layered_buffer_) {
- layered_window_contents_.reset(
- new gfx::CanvasSkia(s.width(), s.height(), false));
+ layered_window_contents_.reset(new gfx::CanvasSkia);
+ layered_window_contents_->Init(s.width(), s.height(), false);
}
}
« no previous file with comments | « views/widget/root_view.cc ('k') | webkit/plugins/sad_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698