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

Unified Diff: cc/blink/web_image_layer_impl.cc

Issue 583743002: [chromium] Pass SkBitmap by reference in WebImageLayer::setBitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed inline virtual function! 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 | « cc/blink/web_image_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_image_layer_impl.cc
diff --git a/cc/blink/web_image_layer_impl.cc b/cc/blink/web_image_layer_impl.cc
index b31d890dc2c618390850ece816ede74b0cea8259..818608d5c916984cacebb880a5c8c44d4308050d 100644
--- a/cc/blink/web_image_layer_impl.cc
+++ b/cc/blink/web_image_layer_impl.cc
@@ -26,6 +26,10 @@ blink::WebLayer* WebImageLayerImpl::layer() {
}
void WebImageLayerImpl::setBitmap(SkBitmap bitmap) {
+ setImageBitmap(bitmap);
+}
+
+void WebImageLayerImpl::setImageBitmap(const SkBitmap& bitmap) {
if (WebLayerImpl::UsingPictureLayer()) {
static_cast<cc::PictureImageLayer*>(layer_->layer())->SetBitmap(bitmap);
static_cast<WebLayerImplFixedBounds*>(layer_.get())
« no previous file with comments | « cc/blink/web_image_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698