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

Unified Diff: ui/gfx/image/image.h

Issue 1769433002: gfx::Image: Refactor to avoid assuming scoped_ptr lifetime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment. Created 4 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 | « no previous file | ui/gfx/image/image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.h
diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
index 38a5ea9ac2502c95a51b8640fc547587d88207d4..fa7ed1f2695baac29e55a5aaa54535e1749563d9 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -184,8 +184,10 @@ class GFX_EXPORT Image {
RepresentationType rep_type, bool must_exist) const;
// Stores a representation into the map. A representation of that type must
- // not already be in the map.
- void AddRepresentation(scoped_ptr<internal::ImageRep> rep) const;
+ // not already be in the map. Returns a pointer to the representation stored
+ // inside the map.
+ internal::ImageRep* AddRepresentation(
+ scoped_ptr<internal::ImageRep> rep) const;
// Internal class that holds all the representations. This allows the Image to
// be cheaply copied.
« no previous file with comments | « no previous file | ui/gfx/image/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698