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

Side by Side Diff: sky/engine/core/fetch/FontResource.cpp

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/fetch/FontResource.h ('k') | sky/engine/core/fetch/MemoryCache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Torch Mobile, Inc. 3 * Copyright (C) 2009 Torch Mobile, Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 , m_exceedsFontLoadWaitLimit(false) 72 , m_exceedsFontLoadWaitLimit(false)
73 , m_corsFailed(false) 73 , m_corsFailed(false)
74 , m_fontLoadWaitLimitTimer(this, &FontResource::fontLoadWaitLimitCallback) 74 , m_fontLoadWaitLimitTimer(this, &FontResource::fontLoadWaitLimitCallback)
75 { 75 {
76 } 76 }
77 77
78 FontResource::~FontResource() 78 FontResource::~FontResource()
79 { 79 {
80 } 80 }
81 81
82 void FontResource::trace(Visitor* visitor)
83 {
84 Resource::trace(visitor);
85 }
86
87 void FontResource::didScheduleLoad() 82 void FontResource::didScheduleLoad()
88 { 83 {
89 if (m_state == Unloaded) 84 if (m_state == Unloaded)
90 m_state = LoadScheduled; 85 m_state = LoadScheduled;
91 } 86 }
92 87
93 void FontResource::didUnscheduleLoad() 88 void FontResource::didUnscheduleLoad()
94 { 89 {
95 if (m_state == LoadScheduled) 90 if (m_state == LoadScheduled)
96 m_state = Unloaded; 91 m_state = Unloaded;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 164
170 void FontResource::checkNotify() 165 void FontResource::checkNotify()
171 { 166 {
172 m_fontLoadWaitLimitTimer.stop(); 167 m_fontLoadWaitLimitTimer.stop();
173 ResourceClientWalker<FontResourceClient> w(m_clients); 168 ResourceClientWalker<FontResourceClient> w(m_clients);
174 while (FontResourceClient* c = w.next()) 169 while (FontResourceClient* c = w.next())
175 c->fontLoaded(this); 170 c->fontLoaded(this);
176 } 171 }
177 172
178 } 173 }
OLDNEW
« no previous file with comments | « sky/engine/core/fetch/FontResource.h ('k') | sky/engine/core/fetch/MemoryCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698