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

Unified Diff: cc/CCDirectRenderer.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/CCDebugBorderDrawQuad.cpp ('k') | cc/CCFontAtlas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCDirectRenderer.h
diff --git a/cc/CCDirectRenderer.h b/cc/CCDirectRenderer.h
index dfa34ef05f70366c0d23b22b8887e8b1c0b99054..73e6dc685377a53c808385f534aa9c0f48b9e563 100644
--- a/cc/CCDirectRenderer.h
+++ b/cc/CCDirectRenderer.h
@@ -49,8 +49,10 @@ protected:
class CachedTexture : public CCScopedTexture {
public:
- static scoped_ptr<CachedTexture> create(CCResourceProvider* resourceProvider) { return scoped_ptr<CachedTexture>(new CachedTexture(resourceProvider)); }
- virtual ~CachedTexture() { }
+ static scoped_ptr<CachedTexture> create(CCResourceProvider* resourceProvider) {
+ return make_scoped_ptr(new CachedTexture(resourceProvider));
+ }
+ virtual ~CachedTexture() {}
bool isComplete() const { return m_isComplete; }
void setIsComplete(bool isComplete) { m_isComplete = isComplete; }
@@ -98,6 +100,6 @@ private:
DISALLOW_COPY_AND_ASSIGN(CCDirectRenderer);
};
-}
+} // namespace cc
-#endif // CCDirectRenderer_h
+#endif // CCDirectRenderer_h
« no previous file with comments | « cc/CCDebugBorderDrawQuad.cpp ('k') | cc/CCFontAtlas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698