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

Unified Diff: chrome/browser/ui/views/location_bar/page_action_image_view.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/location_bar/page_action_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/page_action_image_view.cc b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
index baa895b60cab2e6aa8c0a21d0f4affa2375a6ed2..92f29c2c5d78973d29d2b53338de4daaad6090ab 100644
--- a/chrome/browser/ui/views/location_bar/page_action_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "extensions/browser/extension_registry.h"
#include "ui/accessibility/ax_view_state.h"
+#include "ui/compositor/paint_context.h"
#include "ui/events/event.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/image.h"
@@ -107,7 +108,7 @@ void PageActionImageView::UpdateVisibility(content::WebContents* contents) {
SetVisible(true);
}
-void PageActionImageView::PaintChildren(const PaintContext& context) {
+void PageActionImageView::PaintChildren(const ui::PaintContext& context) {
View::PaintChildren(context);
int tab_id = SessionTabHelper::IdForTab(GetCurrentWebContents());
if (tab_id >= 0) {

Powered by Google App Engine
This is Rietveld 408576698