| Index: ui/gfx/compositor/test_compositor_host_win.cc
|
| ===================================================================
|
| --- ui/gfx/compositor/test_compositor_host_win.cc (revision 100773)
|
| +++ ui/gfx/compositor/test_compositor_host_win.cc (working copy)
|
| @@ -11,13 +11,14 @@
|
| namespace ui {
|
|
|
| class TestCompositorHostWin : public TestCompositorHost,
|
| - public ui::WindowImpl {
|
| + public WindowImpl,
|
| + public CompositorDelegate {
|
| public:
|
| TestCompositorHostWin(const gfx::Rect& bounds,
|
| TestCompositorHostDelegate* delegate)
|
| : delegate_(delegate) {
|
| Init(NULL, bounds);
|
| - compositor_ = ui::Compositor::Create(hwnd(), GetSize());
|
| + compositor_ = ui::Compositor::Create(this, hwnd(), GetSize());
|
| }
|
|
|
| virtual ~TestCompositorHostWin() {
|
| @@ -39,6 +40,13 @@
|
| return compositor_;
|
| }
|
|
|
| + // Overridden from CompositorDelegate:
|
| + virtual void ScheduleCompositorPaint() OVERRIDE {
|
| + RECT rect;
|
| + ::GetClientRect(hwnd(), &rect);
|
| + InvalidateRect(hwnd(), &rect, FALSE);
|
| + }
|
| +
|
| private:
|
| BEGIN_MSG_MAP_EX(TestCompositorHostWin)
|
| MSG_WM_PAINT(OnPaint)
|
|
|