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

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: pass SkPixmap by pointer to MakeBitmapOpaque 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 46bb7be9d230e22aa84dff30ff9952cc16e9fbdf..438966142cafd32a7cd52d9240323db58afbe492 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1376,8 +1376,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);
}
}
@@ -1385,8 +1385,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);
}
}
« no previous file with comments | « 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