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

Unified Diff: cc/scoped_texture.h

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_unittest.cc ('k') | cc/scoped_texture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scoped_texture.h
diff --git a/cc/scoped_texture.h b/cc/scoped_texture.h
deleted file mode 100644
index 4fe1394d62096bf77ae5dd778d84d8fec6b02b3c..0000000000000000000000000000000000000000
--- a/cc/scoped_texture.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_SCOPED_TEXTURE_H_
-#define CC_SCOPED_TEXTURE_H_
-
-#include "base/basictypes.h"
-#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
-#include "cc/cc_export.h"
-#include "cc/texture.h"
-
-#ifndef NDEBUG
-#include "base/threading/platform_thread.h"
-#endif
-
-namespace cc {
-
-class CC_EXPORT ScopedTexture : protected Texture {
-public:
- static scoped_ptr<ScopedTexture> create(ResourceProvider* resourceProvider) { return make_scoped_ptr(new ScopedTexture(resourceProvider)); }
- virtual ~ScopedTexture();
-
- using Texture::id;
- using Texture::size;
- using Texture::format;
- using Texture::bytes;
-
- bool allocate(int pool, const gfx::Size&, GLenum format, ResourceProvider::TextureUsageHint);
- void free();
- void leak();
-
-protected:
- explicit ScopedTexture(ResourceProvider*);
-
-private:
- ResourceProvider* m_resourceProvider;
-
-#ifndef NDEBUG
- base::PlatformThreadId m_allocateThreadIdentifier;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(ScopedTexture);
-};
-
-}
-
-#endif // CC_SCOPED_TEXTURE_H_
« no previous file with comments | « cc/scoped_resource_unittest.cc ('k') | cc/scoped_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698