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

Unified Diff: ui/gfx/platform_font.h

Issue 2695393003: Make FontListImpl RefCountedThreadSafe (Closed)
Patch Set: +PlatformFont 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 | « ui/gfx/font_list_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/platform_font.h
diff --git a/ui/gfx/platform_font.h b/ui/gfx/platform_font.h
index 48e14cf99608ad0fb52cae9b2ef6b2763cb99f2f..30a17f19b02e037672fee1a20d1321aaf03007bd 100644
--- a/ui/gfx/platform_font.h
+++ b/ui/gfx/platform_font.h
@@ -19,7 +19,8 @@ namespace gfx {
class Font;
struct FontRenderParams;
-class GFX_EXPORT PlatformFont : public base::RefCounted<PlatformFont> {
+class GFX_EXPORT PlatformFont
+ : public base::RefCountedThreadSafe<PlatformFont> {
public:
// Creates an appropriate PlatformFont implementation.
static PlatformFont* CreateDefault();
@@ -85,7 +86,7 @@ class GFX_EXPORT PlatformFont : public base::RefCounted<PlatformFont> {
virtual ~PlatformFont() {}
private:
- friend class base::RefCounted<PlatformFont>;
+ friend class base::RefCountedThreadSafe<PlatformFont>;
};
} // namespace gfx
« no previous file with comments | « ui/gfx/font_list_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698