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

Unified Diff: cc/paint/record_paint_canvas.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/paint/paint_op_buffer_unittest.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/record_paint_canvas.cc
diff --git a/cc/paint/record_paint_canvas.cc b/cc/paint/record_paint_canvas.cc
index d9fc036514c6b5d766bd611febb73a46187a3b04..258b571bf123871612d53fb3f0cdc73c6169af6f 100644
--- a/cc/paint/record_paint_canvas.cc
+++ b/cc/paint/record_paint_canvas.cc
@@ -286,10 +286,11 @@ void RecordPaintCanvas::drawBitmap(const SkBitmap& bitmap,
// TODO(enne): Move into base class?
if (bitmap.drawsNothing())
return;
- drawImage(PaintImage(SkImage::MakeFromBitmap(bitmap),
- PaintImage::AnimationType::UNKNOWN,
- PaintImage::CompletionState::UNKNOWN),
- left, top, flags);
+ drawImage(
+ PaintImage(PaintImage::kNonLazyStableId, SkImage::MakeFromBitmap(bitmap),
+ PaintImage::AnimationType::UNKNOWN,
+ PaintImage::CompletionState::UNKNOWN),
+ left, top, flags);
}
void RecordPaintCanvas::drawText(const void* text,
« no previous file with comments | « cc/paint/paint_op_buffer_unittest.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698