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

Unified Diff: content/browser/web_contents/aura/overscroll_navigation_overlay.cc

Issue 1057873004: Pass a ui::PaintContext from ui::Layer to layer delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer-paintcontext: mac 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: content/browser/web_contents/aura/overscroll_navigation_overlay.cc
diff --git a/content/browser/web_contents/aura/overscroll_navigation_overlay.cc b/content/browser/web_contents/aura/overscroll_navigation_overlay.cc
index c0c4a41a09bd5d71e102296e40d713ed2eae7a08..344007e6e6b982177d3ed6919fa2ed2430614cbb 100644
--- a/content/browser/web_contents/aura/overscroll_navigation_overlay.cc
+++ b/content/browser/web_contents/aura/overscroll_navigation_overlay.cc
@@ -15,6 +15,7 @@
#include "ui/base/layout.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_animation_observer.h"
+#include "ui/compositor/paint_context.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/image_png_rep.h"
@@ -57,7 +58,8 @@ class ImageLayerDelegate : public ui::LayerDelegate {
private:
// Overridden from ui::LayerDelegate:
- void OnPaintLayer(gfx::Canvas* canvas) override {
+ void OnPaintLayer(const ui::PaintContext& context) override {
+ gfx::Canvas* canvas = context.canvas();
if (image_.IsEmpty()) {
canvas->DrawColor(SK_ColorWHITE);
} else {
« no previous file with comments | « content/browser/web_contents/aura/gesture_nav_simple.cc ('k') | content/browser/web_contents/aura/shadow_layer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698