Index: ash/utility/partial_screenshot_controller.cc |
diff --git a/ash/utility/partial_screenshot_controller.cc b/ash/utility/partial_screenshot_controller.cc |
index 76841a621bd6486693182f3cbdab3a830d39f30a..466432c57a31ecd0a0271cf0846d4e6a06d56fa2 100644 |
--- a/ash/utility/partial_screenshot_controller.cc |
+++ b/ash/utility/partial_screenshot_controller.cc |
@@ -10,6 +10,7 @@ |
#include "ash/shell.h" |
#include "ash/shell_window_ids.h" |
#include "base/stl_util.h" |
+#include "ui/compositor/paint_context.h" |
#include "ui/events/event_handler.h" |
#include "ui/gfx/canvas.h" |
#include "ui/wm/core/cursor_manager.h" |
@@ -56,10 +57,11 @@ class PartialScreenshotController::PartialScreenshotLayer |
private: |
// ui::LayerDelegate: |
- void OnPaintLayer(gfx::Canvas* canvas) override { |
+ void OnPaintLayer(const ui::PaintContext& context) override { |
if (region_.IsEmpty()) |
return; |
+ gfx::Canvas* canvas = context.canvas(); |
// Screenshot area representation: black rectangle with white |
// rectangle inside. To avoid capturing these rectangles when mouse |
// release, they should be outside of the actual capturing area. |