Index: cc/output/context_provider.h |
diff --git a/cc/output/context_provider.h b/cc/output/context_provider.h |
index 0c1310b2ef66d8fb3610ea8f9965004b333be64e..e6e8e95a2d45b1b75dd5672d1bad2f9a256535e6 100644 |
--- a/cc/output/context_provider.h |
+++ b/cc/output/context_provider.h |
@@ -74,6 +74,10 @@ class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> { |
// Sets a callback to be called when the context is lost. This should be |
// called from the same thread that the context is bound to. To avoid races, |
// it should be called before BindToCurrentThread(). |
+ // Implementation note: Implementations must avoid post-tasking the provided |
+ // |lost_context_callback| directly as clients expect the method to not be |
+ // called once they call SetLostContextCallback() again with a different |
+ // callback. |
typedef base::Closure LostContextCallback; |
virtual void SetLostContextCallback( |
const LostContextCallback& lost_context_callback) = 0; |