Chromium Code Reviews| Index: cc/resources/video_resource_updater.cc |
| diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc |
| index 45f86b06a28e39de9c713b529661aa571c347dac..a0012783a049f597f207c84d8de5f177202f9c54 100644 |
| --- a/cc/resources/video_resource_updater.cc |
| +++ b/cc/resources/video_resource_updater.cc |
| @@ -365,7 +365,7 @@ void VideoResourceUpdater::ReturnTexture( |
| unsigned resource_id, |
| unsigned sync_point, |
| bool lost_resource) { |
| - if (!updater) { |
| + if (!updater.get()) { |
|
danakj
2013/06/04 14:01:14
Have you considered adding an operator bool() to r
akalin
2013/06/04 15:45:15
Yes, that will be done in a future CL, and a secon
danakj
2013/06/04 17:04:52
Great, thanks!
|
| // Resource was already deleted. |
| return; |
| } |
| @@ -379,7 +379,7 @@ void VideoResourceUpdater::RecycleResource( |
| RecycleResourceData data, |
| unsigned sync_point, |
| bool lost_resource) { |
| - if (!updater) { |
| + if (!updater.get()) { |
| // Resource was already deleted. |
| return; |
| } |