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

Unified Diff: ui/views/view.cc

Issue 2825783002: views: Remove the canvas bounds from View traces. (Closed)
Patch Set: viewtraces: . Created 3 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 | « no previous file | 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 83192d8c93df41d122c633fa68f89130182ba0cb..6b231e9b15dc3498c65ef3322b7443069520cd7d 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1552,19 +1552,15 @@ void View::OnPaint(gfx::Canvas* canvas) {
}
void View::OnPaintBackground(gfx::Canvas* canvas) {
- if (background_.get()) {
- TRACE_EVENT2("views", "View::OnPaintBackground",
- "width", canvas->sk_canvas()->getBaseLayerSize().width(),
- "height", canvas->sk_canvas()->getBaseLayerSize().height());
+ if (background_) {
+ TRACE_EVENT0("views", "View::OnPaintBackground");
background_->Paint(canvas, this);
}
}
void View::OnPaintBorder(gfx::Canvas* canvas) {
- if (border_.get()) {
- TRACE_EVENT2("views", "View::OnPaintBorder",
- "width", canvas->sk_canvas()->getBaseLayerSize().width(),
- "height", canvas->sk_canvas()->getBaseLayerSize().height());
+ if (border_) {
+ TRACE_EVENT0("views", "View::OnPaintBorder");
border_->Paint(*this, canvas);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698