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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 1053143002: Make View::Paint use ui::PaintRecorder to access PaintContext's canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: paintrecorder: . Created 5 years, 9 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
Index: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index 0b4b7e6db92b0df461b75a915ed9bf9e73cf6dd9..d6d02a9ce754b6d9f6683b15b34a88d31327258e 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -38,6 +38,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/list_selection_model.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/compositor/paint_context.h"
#include "ui/gfx/animation/animation_container.h"
#include "ui/gfx/animation/throb_animation.h"
#include "ui/gfx/canvas.h"
@@ -1240,7 +1241,7 @@ void TabStrip::Layout() {
DoLayout();
}
-void TabStrip::PaintChildren(const PaintContext& context) {
+void TabStrip::PaintChildren(const ui::PaintContext& context) {
gfx::Canvas* canvas = context.canvas();
// The view order doesn't match the paint order (tabs_ contains the tab
// ordering). Additionally we need to paint the tabs that are closing in
@@ -1982,7 +1983,7 @@ TabStrip::FindClosingTabResult TabStrip::FindClosingTab(const Tab* tab) {
return FindClosingTabResult(tabs_closing_map_.end(), Tabs::iterator());
}
-void TabStrip::PaintClosingTabs(int index, const PaintContext& context) {
+void TabStrip::PaintClosingTabs(int index, const ui::PaintContext& context) {
if (tabs_closing_map_.find(index) == tabs_closing_map_.end())
return;

Powered by Google App Engine
This is Rietveld 408576698