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

Unified Diff: cc/layers/picture_image_layer.cc

Issue 2812763002: paint: Introduce PaintImage that wraps SkImage in paint calls. (Closed)
Patch Set: update Created 3 years, 8 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 | cc/paint/BUILD.gn » ('j') | third_party/WebKit/Source/platform/graphics/Image.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_image_layer.cc
diff --git a/cc/layers/picture_image_layer.cc b/cc/layers/picture_image_layer.cc
index c219d8d906dd5ad27961f9027c2b39543d2c59b6..2cda24fd1d7e87f3bc54bbf44218ca1e9a7f78bb 100644
--- a/cc/layers/picture_image_layer.cc
+++ b/cc/layers/picture_image_layer.cc
@@ -75,7 +75,10 @@ scoped_refptr<DisplayItemList> PictureImageLayer::PaintContentsToDisplayList(
// Because Android WebView resourceless software draw mode rasters directly
// to the root canvas, this draw must use the kSrcOver_Mode so that
// transparent images blend correctly.
- canvas->drawImage(image_, 0, 0);
+ // TODO(vmpstr): Plumb animation type and completion states to here.
+ canvas->drawImage(PaintImage(image_, PaintImage::AnimationType::UNKNOWN,
+ PaintImage::CompletionState::UNKNOWN),
+ 0, 0);
display_list->CreateAndAppendDrawingItem<DrawingDisplayItem>(
PaintableRegion(), recorder.finishRecordingAsPicture());
« no previous file with comments | « no previous file | cc/paint/BUILD.gn » ('j') | third_party/WebKit/Source/platform/graphics/Image.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698