| Index: ui/gfx/ozone/impl/hardware_display_controller_ozone.cc
|
| diff --git a/ui/gfx/ozone/impl/hardware_display_controller_ozone.cc b/ui/gfx/ozone/impl/hardware_display_controller_ozone.cc
|
| index c8c64592a9aa6082a1a229267eae17802cf523d3..3f0a2ca00da0152e61e505715031292252d3323d 100644
|
| --- a/ui/gfx/ozone/impl/hardware_display_controller_ozone.cc
|
| +++ b/ui/gfx/ozone/impl/hardware_display_controller_ozone.cc
|
| @@ -56,7 +56,7 @@ HardwareDisplayControllerOzone::~HardwareDisplayControllerOzone() {
|
|
|
| bool
|
| HardwareDisplayControllerOzone::BindSurfaceToController(
|
| - SoftwareSurfaceOzone* surface) {
|
| + scoped_ptr<SoftwareSurfaceOzone> surface) {
|
| CHECK(state_ == UNINITIALIZED);
|
|
|
| // Register the buffers.
|
| @@ -75,7 +75,7 @@ HardwareDisplayControllerOzone::BindSurfaceToController(
|
| surface->bitmaps_[i]->set_framebuffer(fb_id);
|
| }
|
|
|
| - surface_.reset(surface);
|
| + surface_.reset(surface.release());
|
| state_ = SURFACE_INITIALIZED;
|
| return true;
|
| }
|
|
|