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

Unified Diff: ui/views/view.cc

Issue 1432443004: Remove SkDevice and SkBaseDevice outside skia/ext/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove commented-out code Created 5 years, 1 month 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
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 0fc755972d6d57de055a7ea9d31fa11733eaf13b..81f0a920116d6a36c08b713aa57d949880e495c2 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1365,8 +1365,8 @@ void View::OnPaint(gfx::Canvas* canvas) {
void View::OnPaintBackground(gfx::Canvas* canvas) {
if (background_.get()) {
TRACE_EVENT2("views", "View::OnPaintBackground",
- "width", canvas->sk_canvas()->getDevice()->width(),
- "height", canvas->sk_canvas()->getDevice()->height());
+ "width", canvas->sk_canvas()->getBaseLayerSize().width(),
+ "height", canvas->sk_canvas()->getBaseLayerSize().height());
background_->Paint(canvas, this);
}
}
@@ -1374,8 +1374,8 @@ void View::OnPaintBackground(gfx::Canvas* canvas) {
void View::OnPaintBorder(gfx::Canvas* canvas) {
if (border_.get()) {
TRACE_EVENT2("views", "View::OnPaintBorder",
- "width", canvas->sk_canvas()->getDevice()->width(),
- "height", canvas->sk_canvas()->getDevice()->height());
+ "width", canvas->sk_canvas()->getBaseLayerSize().width(),
+ "height", canvas->sk_canvas()->getBaseLayerSize().height());
border_->Paint(*this, canvas);
}
}
« ui/base/clipboard/clipboard_win.cc ('K') | « ui/ozone/platform/drm/gpu/drm_window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698