Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: ui/gfx/ozone/impl/hardware_display_controller_ozone.cc

Issue 26849004: [Ozone] Adding a software rendering implementation of SurfaceFactoryOzone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated SSO unittest Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « ui/gfx/ozone/impl/hardware_display_controller_ozone.h ('k') | ui/gfx/ozone/impl/hardware_display_controller_ozone_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698