Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3205)

Unified Diff: content/renderer/pepper/pepper_compositor_host.cc

Issue 601293003: [Pepper][Compositor] Fix the compositor stops updating texture issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_compositor_host.cc
diff --git a/content/renderer/pepper/pepper_compositor_host.cc b/content/renderer/pepper/pepper_compositor_host.cc
index e372b1b01c7f6d5448a91cd683e9f1c5f9e2086e..dbc371faf3784b3bc72fd91c9456dbc5e7410c7c 100644
--- a/content/renderer/pepper/pepper_compositor_host.cc
+++ b/content/renderer/pepper/pepper_compositor_host.cc
@@ -258,7 +258,8 @@ void PepperCompositorHost::UpdateLayer(
cc::SingleReleaseCallback::Create(
base::Bind(&PepperCompositorHost::ResourceReleased,
weak_factory_.GetWeakPtr(),
- new_layer->common.resource_id)));;
+ new_layer->common.resource_id)));
+ texture_layer->SetNeedsDisplay();
danakj 2014/09/25 20:25:20 Can you add a TODO that you should get a damage re
Peng 2014/09/25 20:37:52 Done.
}
texture_layer->SetPremultipliedAlpha(new_layer->texture->premult_alpha);
gfx::RectF rect = PP_ToGfxRectF(new_layer->texture->source_rect);
@@ -290,6 +291,7 @@ void PepperCompositorHost::UpdateLayer(
weak_factory_.GetWeakPtr(),
new_layer->common.resource_id,
base::Passed(&image_shm))));
+ image_layer->SetNeedsDisplay();
danakj 2014/09/25 20:25:20 Can you add a TODO that you should get a damage re
Peng 2014/09/25 20:37:52 Done.
// ImageData is always premultiplied alpha.
image_layer->SetPremultipliedAlpha(true);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698