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

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

Issue 2692343008: Convert gfx::internal::ImageStorage RefCountedThreadSafe (Closed)
Patch Set: Created 3 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.cc
diff --git a/ui/gfx/image/image.cc b/ui/gfx/image/image.cc
index 12254c17def66a5b46fb45db8257732cf14af173..d49c3119ba890279f813d9218630f72cb0096c8d 100644
--- a/ui/gfx/image/image.cc
+++ b/ui/gfx/image/image.cc
@@ -340,7 +340,7 @@ class ImageRepCocoa : public ImageRep {
// The Storage class acts similarly to the pixels in a SkBitmap: the Image
// class holds a refptr instance of Storage, which in turn holds all the
// ImageReps. This way, the Image can be cheaply copied.
-class ImageStorage : public base::RefCounted<ImageStorage> {
+class ImageStorage : public base::RefCountedThreadSafe<ImageStorage> {
public:
ImageStorage(Image::RepresentationType default_type)
: default_representation_type_(default_type)
@@ -367,7 +367,7 @@ class ImageStorage : public base::RefCounted<ImageStorage> {
#endif // defined(OS_MACOSX) && !defined(OS_IOS)
private:
- friend class base::RefCounted<ImageStorage>;
+ friend class base::RefCountedThreadSafe<ImageStorage>;
~ImageStorage() {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698