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

Unified Diff: ui/gfx/ozone/dri/dri_surface_factory.cc

Issue 102563005: [Ozone] Rename GetVSyncProvider to CreateVSyncProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win Created 6 years, 11 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
« no previous file with comments | « ui/gfx/ozone/dri/dri_surface_factory.h ('k') | ui/gfx/ozone/impl/file_surface_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ozone/dri/dri_surface_factory.cc
diff --git a/ui/gfx/ozone/dri/dri_surface_factory.cc b/ui/gfx/ozone/dri/dri_surface_factory.cc
index 4c20137394220e0b8297ebdbc1cf77db0b2a0b8d..4db10cf7394489403825c2280d72ece61d56424f 100644
--- a/ui/gfx/ozone/dri/dri_surface_factory.cc
+++ b/ui/gfx/ozone/dri/dri_surface_factory.cc
@@ -237,10 +237,10 @@ SkCanvas* DriSurfaceFactory::GetCanvasForWidget(
return reinterpret_cast<DriSurface*>(w)->GetDrawableForWidget();
}
-gfx::VSyncProvider* DriSurfaceFactory::GetVSyncProvider(
+scoped_ptr<gfx::VSyncProvider> DriSurfaceFactory::CreateVSyncProvider(
gfx::AcceleratedWidget w) {
CHECK(state_ == INITIALIZED);
- return new DriVSyncProvider(controller_.get());
+ return scoped_ptr<VSyncProvider>(new DriVSyncProvider(controller_.get()));
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ui/gfx/ozone/dri/dri_surface_factory.h ('k') | ui/gfx/ozone/impl/file_surface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698