Commit 92d9392f authored by hongbo.min@intel.com's avatar hongbo.min@intel.com

Forward along the lost_resource to layer client

Forward the boolean flag indicating if the resource is lost and let
canvas handle how to handle the lost resource, not simply ignore to
call mailboxReleased.

BUG=390960

Review URL: https://codereview.chromium.org/369823002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287686 0039d316-1c4b-4281-b951-d872f2087c98
parent b6dc7238
......@@ -113,7 +113,7 @@ void WebExternalTextureLayerImpl::DidReleaseMailbox(
WebExternalBitmapImpl* bitmap,
unsigned sync_point,
bool lost_resource) {
if (lost_resource || !layer) {
if (!layer) {
delete bitmap;
return;
}
......@@ -123,7 +123,7 @@ void WebExternalTextureLayerImpl::DidReleaseMailbox(
available_mailbox.syncPoint = sync_point;
if (bitmap)
layer->free_bitmaps_.push_back(bitmap);
layer->client_->mailboxReleased(available_mailbox);
layer->client_->mailboxReleased(available_mailbox, lost_resource);
}
} // namespace content
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment