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

Unified Diff: content/renderer/child_frame_compositing_helper.cc

Issue 2873003002: Add stable id to PaintImage. (Closed)
Patch Set: rebase Created 3 years, 7 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 | « cc/trees/layer_tree_host_pixeltest_masks.cc ('k') | media/renderers/skcanvas_video_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/child_frame_compositing_helper.cc
diff --git a/content/renderer/child_frame_compositing_helper.cc b/content/renderer/child_frame_compositing_helper.cc
index 78f1643b1ca34da8d5afce4b3c4f8979969d6d71..2549082e88a73d612d060f07dcd4dc664d7c09d7 100644
--- a/content/renderer/child_frame_compositing_helper.cc
+++ b/content/renderer/child_frame_compositing_helper.cc
@@ -192,7 +192,8 @@ void ChildFrameCompositingHelper::ChildFrameGone() {
web_layer_->Bounds().height > sad_bitmap->height()) {
scoped_refptr<cc::PictureImageLayer> sad_layer =
cc::PictureImageLayer::Create();
- sad_layer->SetImage(cc::PaintImage(SkImage::MakeFromBitmap(*sad_bitmap)));
+ sad_layer->SetImage(cc::PaintImage(cc::PaintImage::kNonLazyStableId,
+ SkImage::MakeFromBitmap(*sad_bitmap)));
sad_layer->SetBounds(
gfx::Size(sad_bitmap->width(), sad_bitmap->height()));
sad_layer->SetPosition(gfx::PointF(
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_masks.cc ('k') | media/renderers/skcanvas_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698