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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp

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 | « third_party/WebKit/Source/platform/graphics/Image.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
index 2b13bd1747c820da67f00fc40da2db7a71ec8fb9..6b1d0816ba962f6e13d7bcfb9c5646d03ec979f8 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
@@ -524,8 +524,10 @@ void ImageBuffer::SetSurface(std::unique_ptr<ImageBufferSurface> surface) {
// TODO(vmpstr): Figure out actual values for this.
auto animation_type = PaintImage::AnimationType::UNKNOWN;
auto completion_state = PaintImage::CompletionState::UNKNOWN;
- surface->Canvas()->drawImage(
- PaintImage(std::move(image), animation_type, completion_state), 0, 0);
+ static PaintImage::Id unknown_stable_id = PaintImage::GetNextId();
+ surface->Canvas()->drawImage(PaintImage(unknown_stable_id, std::move(image),
+ animation_type, completion_state),
+ 0, 0);
surface->SetImageBuffer(this);
if (client_)
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698