Commit b25533eb authored by penghuang's avatar penghuang Committed by Commit bot

[Pepper][Compositor] Fix the compositor stops updating texture issue.

BUG=417408

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

Cr-Commit-Position: refs/heads/master@{#296952}
parent 541f56f8
......@@ -258,7 +258,10 @@ void PepperCompositorHost::UpdateLayer(
cc::SingleReleaseCallback::Create(
base::Bind(&PepperCompositorHost::ResourceReleased,
weak_factory_.GetWeakPtr(),
new_layer->common.resource_id)));;
new_layer->common.resource_id)));
// TODO(penghuang): get a damage region from the application and
// pass it to SetNeedsDisplayRect().
texture_layer->SetNeedsDisplay();
}
texture_layer->SetPremultipliedAlpha(new_layer->texture->premult_alpha);
gfx::RectF rect = PP_ToGfxRectF(new_layer->texture->source_rect);
......@@ -290,6 +293,9 @@ void PepperCompositorHost::UpdateLayer(
weak_factory_.GetWeakPtr(),
new_layer->common.resource_id,
base::Passed(&image_shm))));
// TODO(penghuang): get a damage region from the application and
// pass it to SetNeedsDisplayRect().
image_layer->SetNeedsDisplay();
// ImageData is always premultiplied alpha.
image_layer->SetPremultipliedAlpha(true);
......
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