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

Unified Diff: cc/scoped_resource.cc

Issue 11377055: cc: Rename Texture class to Resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 1 month 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/scoped_resource.h ('k') | cc/scoped_resource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scoped_resource.cc
diff --git a/cc/scoped_texture.cc b/cc/scoped_resource.cc
similarity index 72%
rename from cc/scoped_texture.cc
rename to cc/scoped_resource.cc
index 38fb7976e90e681d4e24f3ebab523dc5a2d67552..5729718282b0518885e1549a0cfd9304b657011d 100644
--- a/cc/scoped_texture.cc
+++ b/cc/scoped_resource.cc
@@ -4,22 +4,22 @@
#include "config.h"
-#include "cc/scoped_texture.h"
+#include "cc/scoped_resource.h"
namespace cc {
-ScopedTexture::ScopedTexture(ResourceProvider* resourceProvider)
+ScopedResource::ScopedResource(ResourceProvider* resourceProvider)
: m_resourceProvider(resourceProvider)
{
DCHECK(m_resourceProvider);
}
-ScopedTexture::~ScopedTexture()
+ScopedResource::~ScopedResource()
{
free();
}
-bool ScopedTexture::allocate(int pool, const gfx::Size& size, GLenum format, ResourceProvider::TextureUsageHint hint)
+bool ScopedResource::allocate(int pool, const gfx::Size& size, GLenum format, ResourceProvider::TextureUsageHint hint)
{
DCHECK(!id());
DCHECK(!size.IsEmpty());
@@ -34,7 +34,7 @@ bool ScopedTexture::allocate(int pool, const gfx::Size& size, GLenum format, Res
return id();
}
-void ScopedTexture::free()
+void ScopedResource::free()
{
if (id()) {
#ifndef NDEBUG
@@ -45,7 +45,7 @@ void ScopedTexture::free()
setId(0);
}
-void ScopedTexture::leak()
+void ScopedResource::leak()
{
setId(0);
}
« no previous file with comments | « cc/scoped_resource.h ('k') | cc/scoped_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698