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

Unified Diff: ui/views/bubble/bubble_frame_view.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Update tests Created 3 years, 5 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: ui/views/bubble/bubble_frame_view.cc
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
index 079300c90f2f8a8bad141d0cacb92f7ac96379d2..f732344012811dd04b484bef2be5daf5c3c0b884 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -13,7 +13,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/resource/resource_bundle.h"
-#include "ui/compositor/paint_context.h"
+#include "ui/compositor/paint_info.h"
#include "ui/compositor/paint_recorder.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
@@ -398,11 +398,11 @@ void BubbleFrameView::OnPaint(gfx::Canvas* canvas) {
// Border comes after children.
}
-void BubbleFrameView::PaintChildren(const ui::PaintContext& context) {
- NonClientFrameView::PaintChildren(context);
+void BubbleFrameView::PaintChildren(const ui::PaintInfo& paint_info) {
+ NonClientFrameView::PaintChildren(paint_info);
ui::PaintCache paint_cache;
- ui::PaintRecorder recorder(context, size(), &paint_cache);
+ ui::PaintRecorder recorder(paint_info, &paint_cache);
OnPaintBorder(recorder.canvas());
}

Powered by Google App Engine
This is Rietveld 408576698