Index: athena/content/content_proxy.cc |
diff --git a/athena/content/content_proxy.cc b/athena/content/content_proxy.cc |
index 2c962e7c72c3d46fe8f4592cba5928a50b979140..ca089b389937863ecce9814ab7cbb92c87e46021 100644 |
--- a/athena/content/content_proxy.cc |
+++ b/athena/content/content_proxy.cc |
@@ -157,12 +157,14 @@ void ContentProxy::CreateProxyContent() { |
kAlpha_8_SkColorType); |
} |
-void ContentProxy::OnContentImageRead(bool success, const SkBitmap& bitmap) { |
+void ContentProxy::OnContentImageRead(const SkBitmap& bitmap, |
+ 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() || |
+ bitmap.isNull()) |
return; |
// While we are encoding the image, we keep the current image as reference |