| Index: ui/gfx/compositor/compositor_win.cc
|
| diff --git a/ui/gfx/compositor/compositor_win.cc b/ui/gfx/compositor/compositor_win.cc
|
| index 3c0a2ff8663ec89b3ede2e7f4aeae47dd3e0509d..78de43e01b24c59ffed18a28777a1b29c0bfa707 100644
|
| --- a/ui/gfx/compositor/compositor_win.cc
|
| +++ b/ui/gfx/compositor/compositor_win.cc
|
| @@ -86,7 +86,7 @@ class ViewTexture : public Texture {
|
| // D3D 10 Compositor implementation.
|
| class CompositorWin : public Compositor {
|
| public:
|
| - CompositorWin(gfx::AcceleratedWidget widget,
|
| + CompositorWin(CompositorOwner* owner,
|
| const gfx::Size& size);
|
|
|
| void Init();
|
| @@ -321,10 +321,10 @@ void ViewTexture::CreateVertexBufferForRegion(const gfx::Rect& bounds) {
|
| vertex_buffer_.Receive()));
|
| }
|
|
|
| -CompositorWin::CompositorWin(gfx::AcceleratedWidget widget,
|
| +CompositorWin::CompositorWin(CompositorOwner* owner,
|
| const gfx::Size& size)
|
| - : Compositor(size),
|
| - host_(widget),
|
| + : Compositor(owner, size),
|
| + host_(owner->GetAcceleratedWidget()),
|
| technique_(NULL) {
|
| }
|
|
|
| @@ -796,9 +796,9 @@ ID3D10Buffer* CompositorWin::CreateVertexBufferForRegion(
|
| } // namespace
|
|
|
| // static
|
| -Compositor* Compositor::Create(gfx::AcceleratedWidget widget,
|
| +Compositor* Compositor::Create(CompositorOwner* owner,
|
| const gfx::Size& size) {
|
| - CompositorWin* compositor = new CompositorWin(widget, size);
|
| + CompositorWin* compositor = new CompositorWin(owner, size);
|
| compositor->Init();
|
| return compositor;
|
| }
|
|
|