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

Unified Diff: chrome/browser/ui/views/frame/top_container_view.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 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/frame/top_container_view.cc
diff --git a/chrome/browser/ui/views/frame/top_container_view.cc b/chrome/browser/ui/views/frame/top_container_view.cc
index 0f9f816ac922d67a404e43e162e6fa9172aac85f..686c73a0d3f35de82e2189bd013d94a4ef9c062a 100644
--- a/chrome/browser/ui/views/frame/top_container_view.cc
+++ b/chrome/browser/ui/views/frame/top_container_view.cc
@@ -7,7 +7,7 @@
#include "chrome/browser/ui/views/frame/browser_frame.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/immersive_mode_controller.h"
-#include "ui/compositor/paint_context.h"
+#include "ui/views/paint_info.h"
TopContainerView::TopContainerView(BrowserView* browser_view)
: browser_view_(browser_view) {
@@ -20,7 +20,7 @@ const char* TopContainerView::GetClassName() const {
return "TopContainerView";
}
-void TopContainerView::PaintChildren(const ui::PaintContext& context) {
+void TopContainerView::PaintChildren(const views::PaintInfo& paint_info) {
if (browser_view_->immersive_mode_controller()->IsRevealed()) {
// Top-views depend on parts of the frame (themes, window title, window
// controls) being painted underneath them. Clip rect has already been set
@@ -28,10 +28,10 @@ void TopContainerView::PaintChildren(const ui::PaintContext& context) {
// invalidation info, as we're painting something outside of the normal
// parent-child relationship, so invalidations are no longer in the correct
// space to compare.
- browser_view_->frame()->GetFrameView()->Paint(ui::PaintContext(
- context, ui::PaintContext::CLONE_WITHOUT_INVALIDATION));
+ browser_view_->frame()->GetFrameView()->Paint(
+ views::PaintInfo::ClonePaintInfo(paint_info));
}
- View::PaintChildren(context);
+ View::PaintChildren(paint_info);
}
void TopContainerView::ChildPreferredSizeChanged(views::View* child) {
« no previous file with comments | « chrome/browser/ui/views/frame/top_container_view.h ('k') | chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698