Chromium Code Reviews| Index: chromecast/base/cast_resource.h |
| diff --git a/chromecast/base/cast_resource.h b/chromecast/base/cast_resource.h |
| index cd248d77edc26872e426c5c2a42ef54a2aac1e0a..b0245b26b06311d204fd0a7e82489ff1cd62f0ad 100644 |
| --- a/chromecast/base/cast_resource.h |
| +++ b/chromecast/base/cast_resource.h |
| @@ -53,6 +53,10 @@ class CastResource { |
| }; |
| void SetCastResourceClient(Client* client); |
| + // Called to initialize resources after OEM has granted them, and before |
| + // they start getting used by consumers. Implementation must be synchronous |
| + // since consumers will start using the resource immediately afterwards. |
| + virtual void InitializeResource(Resource resource) = 0; |
|
derekjchow1
2015/12/15 22:40:35
What thread does this get called on? If this gets
yucliu1
2015/12/15 23:05:58
Probably we can make a contract here: InitializeRe
esum
2015/12/17 08:28:12
Agreed it should be made asynchronous, but I would
halliwell
2015/12/17 14:46:31
Calling VideoPlane synchronously is fine. I'm ok
|
| // Called to release resources. Implementation should call |
| // Client::OnResourceReleased when resource is released on its side. |
| virtual void ReleaseResource(Resource resource) = 0; |