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

Unified Diff: cc/resource.h

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/raster_worker_pool.cc ('k') | cc/resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource.h
diff --git a/cc/resource.h b/cc/resource.h
deleted file mode 100644
index f8c21927c9281a69c1fcbaaafa6df6463e6f30e4..0000000000000000000000000000000000000000
--- a/cc/resource.h
+++ /dev/null
@@ -1,42 +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_RESOURCE_H_
-#define CC_RESOURCE_H_
-
-#include "cc/base/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 Resource {
- public:
- Resource() : id_(0) { }
- Resource(unsigned id, gfx::Size size, GLenum format)
- : id_(id), size_(size), format_(format) { }
-
- ResourceProvider::ResourceId id() const { return id_; }
- const gfx::Size& size() const { return size_; }
- GLenum format() const { return format_; }
-
- size_t bytes() const;
-
- static size_t BytesPerPixel(GLenum format);
- static size_t MemorySizeBytes(const gfx::Size& size, GLenum format);
-
- protected:
- void set_id(ResourceProvider::ResourceId id) { id_ = id; }
- void set_dimensions(const gfx::Size&, GLenum format);
-
- private:
- ResourceProvider::ResourceId id_;
- gfx::Size size_;
- GLenum format_;
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCE_H_
« no previous file with comments | « cc/raster_worker_pool.cc ('k') | cc/resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698