Chromium Code Reviews| Index: athena/content/content_proxy.cc |
| diff --git a/athena/content/content_proxy.cc b/athena/content/content_proxy.cc |
| index 2c962e7c72c3d46fe8f4592cba5928a50b979140..72c8a8d957c1e097948aee54ddc0d65ccaa528c5 100644 |
| --- a/athena/content/content_proxy.cc |
| +++ b/athena/content/content_proxy.cc |
| @@ -157,12 +157,15 @@ void ContentProxy::CreateProxyContent() { |
| kAlpha_8_SkColorType); |
| } |
| -void ContentProxy::OnContentImageRead(bool success, const SkBitmap& bitmap) { |
| +void ContentProxy::OnContentImageRead( |
| + const SkBitmap& bitmap, |
| + const content::ReadbackResponse& response) { |
| // Now we can hide the content. Note that after hiding we are freeing memory |
| // and if something goes wrong we will end up with an empty page. |
| HideOriginalContent(); |
| - if (!success || bitmap.empty() || bitmap.isNull()) |
| + if ((response != content::READBACK_SUCCESS) || bitmap.empty() || |
|
oshima
2014/11/10 19:36:01
nit: nuke extra ()
sivag
2014/11/11 04:32:57
Done.
|
| + bitmap.isNull()) |
| return; |
| // While we are encoding the image, we keep the current image as reference |