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

Unified Diff: cc/resources/resource.h

Issue 1144523003: Rename cc::ResourceProvider::ResourceId to cc::ResourceId and move it to its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: cc/resources/resource.h
diff --git a/cc/resources/resource.h b/cc/resources/resource.h
index edafaefcfa363303711ebf8c61582cb7011944b1..e94b12108a5e6764ed51063748ad8dfcddebd484 100644
--- a/cc/resources/resource.h
+++ b/cc/resources/resource.h
@@ -19,7 +19,7 @@ class CC_EXPORT Resource {
size_(size),
format_(format) {}
- ResourceProvider::ResourceId id() const { return id_; }
+ ResourceId id() const { return id_; }
gfx::Size size() const { return size_; }
ResourceFormat format() const { return format_; }
size_t bytes() const;
@@ -31,14 +31,14 @@ class CC_EXPORT Resource {
}
protected:
- void set_id(ResourceProvider::ResourceId id) { id_ = id; }
+ void set_id(ResourceId id) { id_ = id; }
void set_dimensions(const gfx::Size& size, ResourceFormat format) {
size_ = size;
format_ = format;
}
private:
- ResourceProvider::ResourceId id_;
+ ResourceId id_;
gfx::Size size_;
ResourceFormat format_;

Powered by Google App Engine
This is Rietveld 408576698