Index: ash/wm/boot_splash_screen_chromeos.cc |
diff --git a/ash/wm/boot_splash_screen_chromeos.cc b/ash/wm/boot_splash_screen_chromeos.cc |
index 04d66c3014118477270649762f8d40677bb0f902..0c3cb541c5f0a46192e4637f7caadafd1ed861e6 100644 |
--- a/ash/wm/boot_splash_screen_chromeos.cc |
+++ b/ash/wm/boot_splash_screen_chromeos.cc |
@@ -11,6 +11,7 @@ |
#include "ui/compositor/layer.h" |
#include "ui/compositor/layer_type.h" |
#include "ui/compositor/paint_context.h" |
+#include "ui/compositor/paint_recorder.h" |
#include "ui/compositor/scoped_layer_animation_settings.h" |
#include "ui/gfx/canvas.h" |
@@ -36,8 +37,9 @@ class BootSplashScreen::CopyHostContentLayerDelegate |
// to create a zero-copy texture (when possible): |
// https://codereview.chromium.org/10543125 |
#if defined(USE_X11) |
+ ui::PaintRecorder recorder(context); |
ui::CopyAreaToCanvas(host_->GetAcceleratedWidget(), host_->GetBounds(), |
- gfx::Point(), context.canvas()); |
+ gfx::Point(), recorder.canvas()); |
#else |
// TODO(spang): Figure out what to do here. |
NOTIMPLEMENTED(); |