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

Unified Diff: Source/platform/graphics/GraphicsLayer.cpp

Issue 583733002: [blink] Pass SkBitmap by reference in WebImageLayer::setBitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Simplified blink side! 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 | public/platform/WebImageLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index d4cfec068531bfc6af789a6234b2ea02cd898210..c63976e57872473540af3693c2c8f09581c5a9c7 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -930,7 +930,7 @@ void GraphicsLayer::setContentsToImage(Image* image)
m_imageLayer = adoptPtr(Platform::current()->compositorSupport()->createImageLayer());
registerContentsLayer(m_imageLayer->layer());
}
- m_imageLayer->setBitmap(nativeImage->bitmap());
+ m_imageLayer->setImageBitmap(nativeImage->bitmap());
m_imageLayer->layer()->setOpaque(image->currentFrameKnownToBeOpaque());
updateContentsRect();
} else {
« no previous file with comments | « no previous file | public/platform/WebImageLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698