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

Unified Diff: cc/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/software_renderer.cc ('k') | cc/texture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture.h
diff --git a/cc/texture.h b/cc/texture.h
deleted file mode 100644
index cd9df1dfe9a5f19c1352c60e31f1b2862065187c..0000000000000000000000000000000000000000
--- a/cc/texture.h
+++ /dev/null
@@ -1,43 +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_TEXTURE_H_
-#define CC_TEXTURE_H_
-
-#include "cc/cc_export.h"
-#include "cc/resource_provider.h"
-#include "third_party/khronos/GLES2/gl2.h"
-#include "ui/gfx/size.h"
-
-namespace cc {
-
-class CC_EXPORT Texture {
-public:
- Texture() : m_id(0) { }
- Texture(unsigned id, gfx::Size size, GLenum format)
- : m_id(id)
- , m_size(size)
- , m_format(format) { }
-
- ResourceProvider::ResourceId id() const { return m_id; }
- const gfx::Size& size() const { return m_size; }
- GLenum format() const { return m_format; }
-
- void setId(ResourceProvider::ResourceId id) { m_id = id; }
- void setDimensions(const gfx::Size&, GLenum format);
-
- size_t bytes() const;
-
- static size_t bytesPerPixel(GLenum format);
- static size_t memorySizeBytes(const gfx::Size&, GLenum format);
-
-private:
- ResourceProvider::ResourceId m_id;
- gfx::Size m_size;
- GLenum m_format;
-};
-
-}
-
-#endif // CC_TEXTURE_H_
« no previous file with comments | « cc/software_renderer.cc ('k') | cc/texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698