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

Unified Diff: cc/resources/picture_pile_base.h

Issue 683543002: cc: Make picture pile base thread safe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: cc/resources/picture_pile_base.h
diff --git a/cc/resources/picture_pile_base.h b/cc/resources/picture_pile_base.h
index bb9116c63f748bbb42398a95021851767d1dc4cf..07540cbf37f508d4ad23ac037ce6def09f641aab 100644
--- a/cc/resources/picture_pile_base.h
+++ b/cc/resources/picture_pile_base.h
@@ -26,7 +26,8 @@ class Value;
namespace cc {
-class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
+class CC_EXPORT PicturePileBase
+ : public base::RefCountedThreadSafe<PicturePileBase> {
public:
PicturePileBase();
explicit PicturePileBase(const PicturePileBase* other);
@@ -136,7 +137,7 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
private:
void SetBufferPixels(int buffer_pixels);
- friend class base::RefCounted<PicturePileBase>;
+ friend class base::RefCountedThreadSafe<PicturePileBase>;
DISALLOW_COPY_AND_ASSIGN(PicturePileBase);
};
« 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