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

Unified Diff: cc/resources/resource.h

Issue 2240873003: Fix a bug that prevents all reuse of ResourcePool resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | cc/resources/scoped_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource.h
diff --git a/cc/resources/resource.h b/cc/resources/resource.h
index b68b13650f3d0e217d1d74447628213ad1402635..20756423e07b87cd4199e135dc7cdae0c8662ef2 100644
--- a/cc/resources/resource.h
+++ b/cc/resources/resource.h
@@ -34,6 +34,9 @@ class CC_EXPORT Resource {
size_ = size;
format_ = format;
}
+ void set_color_space(const gfx::ColorSpace& color_space) {
+ color_space_ = color_space;
+ }
private:
ResourceId id_;
« no previous file with comments | « no previous file | cc/resources/scoped_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698