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

Unified Diff: cc/CCYUVVideoDrawQuad.cpp

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/CCTileDrawQuad.cpp ('k') | cc/test/FakeWebCompositorOutputSurface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCYUVVideoDrawQuad.cpp
diff --git a/cc/CCYUVVideoDrawQuad.cpp b/cc/CCYUVVideoDrawQuad.cpp
index 806d432b65fa5067817e5cc9a7cfd26d1af68cde..41d5490f31e0e5fe0b7bc637843094633c5b4506 100644
--- a/cc/CCYUVVideoDrawQuad.cpp
+++ b/cc/CCYUVVideoDrawQuad.cpp
@@ -10,7 +10,7 @@ namespace cc {
scoped_ptr<CCYUVVideoDrawQuad> CCYUVVideoDrawQuad::create(const CCSharedQuadState* sharedQuadState, const IntRect& quadRect, const CCVideoLayerImpl::FramePlane& yPlane, const CCVideoLayerImpl::FramePlane& uPlane, const CCVideoLayerImpl::FramePlane& vPlane)
{
- return scoped_ptr<CCYUVVideoDrawQuad>(new CCYUVVideoDrawQuad(sharedQuadState, quadRect, yPlane, uPlane, vPlane));
+ return make_scoped_ptr(new CCYUVVideoDrawQuad(sharedQuadState, quadRect, yPlane, uPlane, vPlane));
}
CCYUVVideoDrawQuad::CCYUVVideoDrawQuad(const CCSharedQuadState* sharedQuadState, const IntRect& quadRect, const CCVideoLayerImpl::FramePlane& yPlane, const CCVideoLayerImpl::FramePlane& uPlane, const CCVideoLayerImpl::FramePlane& vPlane)
@@ -27,4 +27,4 @@ const CCYUVVideoDrawQuad* CCYUVVideoDrawQuad::materialCast(const CCDrawQuad* qua
return static_cast<const CCYUVVideoDrawQuad*>(quad);
}
-}
+} // namespace cc
« no previous file with comments | « cc/CCTileDrawQuad.cpp ('k') | cc/test/FakeWebCompositorOutputSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698