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

Unified Diff: cc/test/FakeWebCompositorOutputSurface.h

Issue 11047032: cc: Use syntax sugar 'make_scoped_ptr' in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « cc/CCYUVVideoDrawQuad.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/FakeWebCompositorOutputSurface.h
diff --git a/cc/test/FakeWebCompositorOutputSurface.h b/cc/test/FakeWebCompositorOutputSurface.h
index c056faf26ccd96e2bafa20d9dd1b3ccbee844bf0..179576f54cb09e27e6b772a9252679c9c54eea5d 100644
--- a/cc/test/FakeWebCompositorOutputSurface.h
+++ b/cc/test/FakeWebCompositorOutputSurface.h
@@ -18,12 +18,12 @@ class FakeWebCompositorOutputSurface : public WebCompositorOutputSurface {
public:
static inline scoped_ptr<FakeWebCompositorOutputSurface> create(PassOwnPtr<WebGraphicsContext3D> context3D)
{
- return scoped_ptr<FakeWebCompositorOutputSurface>(new FakeWebCompositorOutputSurface(context3D));
+ return make_scoped_ptr(new FakeWebCompositorOutputSurface(context3D));
}
static inline scoped_ptr<FakeWebCompositorOutputSurface> createSoftware(PassOwnPtr<WebCompositorSoftwareOutputDevice> softwareDevice)
{
- return scoped_ptr<FakeWebCompositorOutputSurface>(new FakeWebCompositorOutputSurface(softwareDevice));
+ return make_scoped_ptr(new FakeWebCompositorOutputSurface(softwareDevice));
}
virtual bool bindToClient(WebCompositorOutputSurfaceClient* client) OVERRIDE
« no previous file with comments | « cc/CCYUVVideoDrawQuad.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698